From 282a68189a4721d6764126d435fc7cf57fad6440 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 3 Mar 2018 14:54:15 +0200 Subject: [PATCH] Improve commentary in simple,el * lisp/simple.el (next-error-last-buffer): Improve commentary. (Bug#20489) --- lisp/simple.el | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5