X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/b14e3e21ec6702d27257a1400681fc36ee10282f..52bedd34385bf6434d60d884b306e5883fb656d9:/lisp/savehist.el diff --git a/lisp/savehist.el b/lisp/savehist.el index f1060fb515..faeab324e5 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el @@ -1,4 +1,4 @@ -;;; savehist.el --- Save minibuffer history. +;;; savehist.el --- Save minibuffer history ;; Copyright (C) 1997, 2005-2011 Free Software Foundation, Inc. @@ -170,15 +170,19 @@ minibuffer history.") ;;;###autoload (define-minor-mode savehist-mode - "Toggle savehist-mode. -Positive ARG turns on `savehist-mode'. When on, savehist-mode causes -minibuffer history to be saved periodically and when exiting Emacs. -When turned on for the first time in an Emacs session, it causes the -previous minibuffer history to be loaded from `savehist-file'. + "Toggle saving of minibuffer history (Savehist mode). +With a prefix argument ARG, enable Savehist mode if ARG is +positive, and disable it otherwise. If called from Lisp, enable +the mode if ARG is omitted or nil. + +When Savehist mode is enabled, minibuffer history is saved +periodically and when exiting Emacs. When Savehist mode is +enabled for the first time in an Emacs session, it loads the +previous minibuffer history from `savehist-file'. This mode should normally be turned on from your Emacs init file. -Calling it at any other time replaces your current minibuffer histories, -which is probably undesirable." +Calling it at any other time replaces your current minibuffer +histories, which is probably undesirable." :global t (if (not savehist-mode) (savehist-uninstall) @@ -254,6 +258,10 @@ Normally invoked by calling `savehist-mode' to unset the minor mode." (cancel-timer savehist-timer)) (setq savehist-timer nil))) +;; From XEmacs? +(defvar print-readably) +(defvar print-string-length) + (defun savehist-save (&optional auto-save) "Save the values of minibuffer history variables. Unbound symbols referenced in `savehist-additional-variables' are ignored.