Mercurial > emacs
diff lisp/savehist.el @ 94169:aa2d9460ed1e
(savehist-load): Add WHEN to obsolescence declaration.
Remove redundant obsolescence info in docstring.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 18 Apr 2008 10:33:52 +0000 |
parents | 0a47345ea1c3 |
children | 684b4c103223 |
line wrap: on
line diff
--- a/lisp/savehist.el Fri Apr 18 10:33:17 2008 +0000 +++ b/lisp/savehist.el Fri Apr 18 10:33:52 2008 +0000 @@ -228,13 +228,10 @@ (add-minor-mode 'savehist-mode "") (defun savehist-load () - "Obsolete function provided for transition from old versions of savehist. -Don't call this from new code, use (savehist-mode 1) instead. - -This function loads the variables stored in `savehist-file' and turns on -`savehist-mode'. If `savehist-file' is in the old format that doesn't -record the value of `savehist-minibuffer-history-variables', that value -is deducted from the contents of the file." + "Load the variables stored in `savehist-file' and turn on `savehist-mode'. +If `savehist-file' is in the old format that doesn't record +the value of `savehist-minibuffer-history-variables', that +value is deducted from the contents of the file." (savehist-mode 1) ;; Old versions of savehist distributed with XEmacs didn't save ;; savehist-minibuffer-history-variables. If that variable is nil @@ -251,7 +248,7 @@ ;; Collect VAR, i.e. (nth form 1). (push (nth 1 form) vars)) vars))))) -(make-obsolete 'savehist-load 'savehist-mode) +(make-obsolete 'savehist-load 'savehist-mode "22.1") (defun savehist-install () "Hook savehist into Emacs.