刚才跑测试的时候发现不一致,就顺便上网搜索了一下。以前似乎没人抱怨存在问题,直到以下帖子报告,然后就修复了。暂未发现有扩展受此影响。
- https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-07/msg01113.html
- https://emba.gnu.org/emacs/emacs/-/commit/0efb88150df56559e8d649e657902fb51ad43bc1
(with-temp-buffer
(emacs-lisp-mode)
(insert "(foo (bar))")
(goto-char (point-min))
(down-list 2)
(up-list 1)
(thing-at-point 'sexp))
;; => (bar) [28.0]
;; (bar) [27.1]
;; nil [26.1]
;; nil [25.1]