aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2018-10-03 09:25:26 -0700
committerGlenn Morris2018-10-03 09:25:26 -0700
commitf5621181111ba7cc58967ee9b1cfa08020d3e3ea (patch)
tree9099bea307086a6898f396d15709f004e2f5c27f /lisp
parenta773b0918ce15cbd657c1e77417b231ffb0363fb (diff)
parent9c028d6965c7bb3024ada4f59be133b940438127 (diff)
downloademacs-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.el5
-rw-r--r--lisp/savehist.el23
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.
313This is like `define-key', but it takes the definition from the
314specified menu item, and makes pure copies of as much as possible
315of 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
175When Savehist mode is enabled, minibuffer history is saved 175When Savehist mode is enabled, minibuffer history is saved
176periodically and when exiting Emacs. When Savehist mode is 176to `savehist-file' periodically and when exiting Emacs. When
177enabled for the first time in an Emacs session, it loads the 177Savehist mode is enabled for the first time in an Emacs session,
178previous minibuffer history from `savehist-file'. 178it loads the previous minibuffer histories from `savehist-file'.
179The variable `savehist-autosave-interval' controls the
180periodicity of saving minibuffer histories.
181
182If `savehist-save-minibuffer-history' is non-nil (the default),
183all recorded minibuffer histories will be saved. You can arrange
184for additional history variables to be saved and restored by
185customizing `savehist-additional-variables', which by default is
186an empty list. For example, to save the history of commands
187invoked via \\[execute-extended-command], add `command-history' to the list in
188`savehist-additional-variables'.
189
190Alternatively, you could customize `savehist-save-minibuffer-history'
191to nil, and add to `savehist-additional-variables' only those
192history variables you want to save.
193
194To ignore some history variables, add their symbols to the list
195in `savehist-ignored-variables'.
179 196
180This mode should normally be turned on from your Emacs init file. 197This mode should normally be turned on from your Emacs init file.
181Calling it at any other time replaces your current minibuffer 198Calling it at any other time replaces your current minibuffer