aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-02-24 21:54:21 +0200
committerEli Zaretskii2016-02-24 21:54:21 +0200
commit7c81a0b9c68315511b98272d0aa40962d82f6e66 (patch)
tree250a43a4b445209761739d4c607653bdea26c08c
parentcab3f0a222412b1fd592b1c2f1e305fa245f9279 (diff)
downloademacs-7c81a0b9c68315511b98272d0aa40962d82f6e66.tar.gz
emacs-7c81a0b9c68315511b98272d0aa40962d82f6e66.zip
Improve documentation of 'save-place-mode'
* lisp/saveplace.el (toggle-save-place): Update the doc string wrt turning on 'save-place-mode' globally. * etc/NEWS: Mention the need to call 'save-place-mode' for turning on the mode in all buffers.
-rw-r--r--etc/NEWS8
-rw-r--r--lisp/saveplace.el2
2 files changed, 8 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index f3bb1a6f211..ae34a37b335 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -439,7 +439,13 @@ additionally need to add `getSelection' to `xterm-extra-capabilities'.
439*** `xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it). 439*** `xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it).
440 440
441--- 441---
442** The `save-place' variable is replaced by `save-place-mode'. 442** To turn on `save-place' mode globally, you must call `(save-place-mode 1)'.
443In order to have the last place in every file saved it is no longer
444sufficient to load the saveplace library and set the default value of
445`save-place' to non-nil. You must explicitly call the function
446`save-place-mode' with a positive argument instead. The `save-place'
447variable is now an obsolete alias for `save-place-mode', which
448replaces it.
443 449
444** ERC 450** ERC
445 451
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index c9148dcfc50..c27df150248 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -155,7 +155,7 @@ the argument is positive.
155To save places automatically in all files, put this in your init 155To save places automatically in all files, put this in your init
156file: 156file:
157 157
158\(setq-default save-place t)" 158\(save-place-mode 1)"
159 (interactive "P") 159 (interactive "P")
160 (if (not (or buffer-file-name (and (derived-mode-p 'dired-mode) 160 (if (not (or buffer-file-name (and (derived-mode-p 'dired-mode)
161 (boundp 'dired-subdir-alist) 161 (boundp 'dired-subdir-alist)