summaryrefslogtreecommitdiff
path: root/doc/emacs
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2021-02-17 21:15:51 +0000
committerAlan Mackenzie <acm@muc.de>2021-02-17 21:15:51 +0000
commitfbc9c59b9eb02d49f426341ee32334784d224ce4 (patch)
tree63323149a1f37214d3f8c582cc142b66eddc4a71 /doc/emacs
parent6735bb3d22dc64f3fe42e4a7f439ea9d62f75b5a (diff)
downloademacs-fbc9c59b9eb02d49f426341ee32334784d224ce4.tar.gz
emacs-fbc9c59b9eb02d49f426341ee32334784d224ce4.tar.bz2
emacs-fbc9c59b9eb02d49f426341ee32334784d224ce4.zip
Make goto-line-history buffer local only when so customized
* lisp/simple.el (goto-line-history-local): New customizable option. (goto-line-history): Define this simply with defvar, not defvar-local. (goto-line-read-args): Handle goto-line-history-local, and changes to it. * doc/emacs/basic.texi (Moving Point): Add a paragraph about goto-line-history-local. * etc/NEWS: Add an item under "Editing Changes in Emacs 28.1".
Diffstat (limited to 'doc/emacs')
-rw-r--r--doc/emacs/basic.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi
index 8bf52d5dd30..4a34fd36c5d 100644
--- a/doc/emacs/basic.texi
+++ b/doc/emacs/basic.texi
@@ -331,6 +331,11 @@ a plain prefix argument. Alternatively, you can use the command
@code{goto-line-relative} to move point to the line relative to the
accessible portion of the narrowed buffer.
+@code{goto-line} has its own history list (@pxref{Minibuffer
+History}). You can have either a single list shared between all
+buffers (the default) or a separate list for each buffer, by
+customizing the user option @code{goto-line-history-local}.
+
@item M-g @key{TAB}
@kindex M-g TAB
@findex move-to-column