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.
This commit is contained in:
parent
cab3f0a222
commit
7c81a0b9c6
2 changed files with 8 additions and 2 deletions
8
etc/NEWS
8
etc/NEWS
|
@ -439,7 +439,13 @@ additionally need to add `getSelection' to `xterm-extra-capabilities'.
|
||||||
*** `xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it).
|
*** `xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it).
|
||||||
|
|
||||||
---
|
---
|
||||||
** The `save-place' variable is replaced by `save-place-mode'.
|
** To turn on `save-place' mode globally, you must call `(save-place-mode 1)'.
|
||||||
|
In order to have the last place in every file saved it is no longer
|
||||||
|
sufficient to load the saveplace library and set the default value of
|
||||||
|
`save-place' to non-nil. You must explicitly call the function
|
||||||
|
`save-place-mode' with a positive argument instead. The `save-place'
|
||||||
|
variable is now an obsolete alias for `save-place-mode', which
|
||||||
|
replaces it.
|
||||||
|
|
||||||
** ERC
|
** ERC
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ the argument is positive.
|
||||||
To save places automatically in all files, put this in your init
|
To save places automatically in all files, put this in your init
|
||||||
file:
|
file:
|
||||||
|
|
||||||
\(setq-default save-place t)"
|
\(save-place-mode 1)"
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(if (not (or buffer-file-name (and (derived-mode-p 'dired-mode)
|
(if (not (or buffer-file-name (and (derived-mode-p 'dired-mode)
|
||||||
(boundp 'dired-subdir-alist)
|
(boundp 'dired-subdir-alist)
|
||||||
|
|
Loading…
Add table
Reference in a new issue