diff options
| author | Glenn Morris | 2018-10-03 09:25:26 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-10-03 09:25:26 -0700 |
| commit | f5621181111ba7cc58967ee9b1cfa08020d3e3ea (patch) | |
| tree | 9099bea307086a6898f396d15709f004e2f5c27f /lisp | |
| parent | a773b0918ce15cbd657c1e77417b231ffb0363fb (diff) | |
| parent | 9c028d6965c7bb3024ada4f59be133b940438127 (diff) | |
| download | emacs-f5621181111ba7cc58967ee9b1cfa08020d3e3ea.tar.gz emacs-f5621181111ba7cc58967ee9b1cfa08020d3e3ea.zip | |
Merge from origin/emacs-26
9c028d6 * lisp/savehist.el (savehist-mode): Doc fix. (Bug#32889)
3a2b5a7 ; * lisp/bindings.el (bindings--define-key): Doc fix. (Bug#3...
6a7a869 Org manual: Rewrite the Org Mobile section
# Conflicts:
# lisp/savehist.el
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/bindings.el | 5 | ||||
| -rw-r--r-- | lisp/savehist.el | 23 |
2 files changed, 24 insertions, 4 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el index 9797052725a..76383ad2cef 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -309,7 +309,10 @@ Normally nil in most modes, since there is no process to display.") | |||
| 309 | (make-variable-buffer-local 'mode-line-process) | 309 | (make-variable-buffer-local 'mode-line-process) |
| 310 | 310 | ||
| 311 | (defun bindings--define-key (map key item) | 311 | (defun bindings--define-key (map key item) |
| 312 | "Make as much as possible of the menus pure." | 312 | "Define KEY in keymap MAP according to ITEM from a menu. |
| 313 | This is like `define-key', but it takes the definition from the | ||
| 314 | specified menu item, and makes pure copies of as much as possible | ||
| 315 | of the menu's data." | ||
| 313 | (declare (indent 2)) | 316 | (declare (indent 2)) |
| 314 | (define-key map key | 317 | (define-key map key |
| 315 | (cond | 318 | (cond |
diff --git a/lisp/savehist.el b/lisp/savehist.el index e555450c209..329929be515 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el | |||
| @@ -173,9 +173,26 @@ minibuffer history.") | |||
| 173 | "Toggle saving of minibuffer history (Savehist mode). | 173 | "Toggle saving of minibuffer history (Savehist mode). |
| 174 | 174 | ||
| 175 | When Savehist mode is enabled, minibuffer history is saved | 175 | When Savehist mode is enabled, minibuffer history is saved |
| 176 | periodically and when exiting Emacs. When Savehist mode is | 176 | to `savehist-file' periodically and when exiting Emacs. When |
| 177 | enabled for the first time in an Emacs session, it loads the | 177 | Savehist mode is enabled for the first time in an Emacs session, |
| 178 | previous minibuffer history from `savehist-file'. | 178 | it loads the previous minibuffer histories from `savehist-file'. |
| 179 | The variable `savehist-autosave-interval' controls the | ||
| 180 | periodicity of saving minibuffer histories. | ||
| 181 | |||
| 182 | If `savehist-save-minibuffer-history' is non-nil (the default), | ||
| 183 | all recorded minibuffer histories will be saved. You can arrange | ||
| 184 | for additional history variables to be saved and restored by | ||
| 185 | customizing `savehist-additional-variables', which by default is | ||
| 186 | an empty list. For example, to save the history of commands | ||
| 187 | invoked via \\[execute-extended-command], add `command-history' to the list in | ||
| 188 | `savehist-additional-variables'. | ||
| 189 | |||
| 190 | Alternatively, you could customize `savehist-save-minibuffer-history' | ||
| 191 | to nil, and add to `savehist-additional-variables' only those | ||
| 192 | history variables you want to save. | ||
| 193 | |||
| 194 | To ignore some history variables, add their symbols to the list | ||
| 195 | in `savehist-ignored-variables'. | ||
| 179 | 196 | ||
| 180 | This mode should normally be turned on from your Emacs init file. | 197 | This mode should normally be turned on from your Emacs init file. |
| 181 | Calling it at any other time replaces your current minibuffer | 198 | Calling it at any other time replaces your current minibuffer |