diff options
| author | Eli Zaretskii | 2018-10-01 10:45:33 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-10-01 10:45:33 +0300 |
| commit | 9c028d6965c7bb3024ada4f59be133b940438127 (patch) | |
| tree | c58f73f5c618bddcb7debad1fa573c7c781dd0d2 | |
| parent | 3a2b5a713f92ffba3bdb52725e98030ad5b43a67 (diff) | |
| download | emacs-9c028d6965c7bb3024ada4f59be133b940438127.tar.gz emacs-9c028d6965c7bb3024ada4f59be133b940438127.zip | |
* lisp/savehist.el (savehist-mode): Doc fix. (Bug#32889)
| -rw-r--r-- | lisp/savehist.el | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/lisp/savehist.el b/lisp/savehist.el index fbb5f533902..893590ce809 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el | |||
| @@ -172,13 +172,30 @@ minibuffer history.") | |||
| 172 | (define-minor-mode savehist-mode | 172 | (define-minor-mode savehist-mode |
| 173 | "Toggle saving of minibuffer history (Savehist mode). | 173 | "Toggle saving of minibuffer history (Savehist mode). |
| 174 | With a prefix argument ARG, enable Savehist mode if ARG is | 174 | With a prefix argument ARG, enable Savehist mode if ARG is |
| 175 | positive, and disable it otherwise. If called from Lisp, enable | 175 | positive, and disable it otherwise. If called from Lisp, |
| 176 | the mode if ARG is omitted or nil. | 176 | also enable the mode if ARG is omitted or nil. |
| 177 | 177 | ||
| 178 | When Savehist mode is enabled, minibuffer history is saved | 178 | When Savehist mode is enabled, minibuffer history is saved |
| 179 | periodically and when exiting Emacs. When Savehist mode is | 179 | to `savehist-file' periodically and when exiting Emacs. When |
| 180 | enabled for the first time in an Emacs session, it loads the | 180 | Savehist mode is enabled for the first time in an Emacs session, |
| 181 | previous minibuffer history from `savehist-file'. | 181 | it loads the previous minibuffer histories from `savehist-file'. |
| 182 | The variable `savehist-autosave-interval' controls the | ||
| 183 | periodicity of saving minibuffer histories. | ||
| 184 | |||
| 185 | If `savehist-save-minibuffer-history' is non-nil (the default), | ||
| 186 | all recorded minibuffer histories will be saved. You can arrange | ||
| 187 | for additional history variables to be saved and restored by | ||
| 188 | customizing `savehist-additional-variables', which by default is | ||
| 189 | an empty list. For example, to save the history of commands | ||
| 190 | invoked via \\[execute-extended-command], add `command-history' to the list in | ||
| 191 | `savehist-additional-variables'. | ||
| 192 | |||
| 193 | Alternatively, you could customize `savehist-save-minibuffer-history' | ||
| 194 | to nil, and add to `savehist-additional-variables' only those | ||
| 195 | history variables you want to save. | ||
| 196 | |||
| 197 | To ignore some history variables, add their symbols to the list | ||
| 198 | in `savehist-ignored-variables'. | ||
| 182 | 199 | ||
| 183 | This mode should normally be turned on from your Emacs init file. | 200 | This mode should normally be turned on from your Emacs init file. |
| 184 | Calling it at any other time replaces your current minibuffer | 201 | Calling it at any other time replaces your current minibuffer |