From: Eli Zaretskii Date: Sat, 3 Mar 2018 12:54:15 +0000 (+0200) Subject: Improve commentary in simple,el X-Git-Tag: emacs-27.0.90~5564 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=282a68189a4721d6764126d435fc7cf57fad6440;p=emacs.git Improve commentary in simple,el * lisp/simple.el (next-error-last-buffer): Improve commentary. (Bug#20489) --- diff --git a/lisp/simple.el b/lisp/simple.el index edcb73ce2e1..60a00286f89 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -121,6 +121,11 @@ If non-nil, the value is passed directly to `recenter'." A buffer becomes most recent when its compilation, grep, or similar mode is started, or when it is used with \\[next-error] or \\[compile-goto-error].") + +;; next-error-last-buffer is made buffer-local to keep the reference +;; to the parent buffer used to navigate to the current buffer, so the +;; next call of next-buffer will use the same parent buffer to +;; continue navigation from it. (make-variable-buffer-local 'next-error-last-buffer) (defvar next-error-function nil