diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-10-23 20:08:58 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-10-23 20:08:58 +0100 |
commit | 99e7cc0da652bf0f19f691d5de3b3ce7c15e8c39 (patch) | |
tree | e7c4921579cfeac379b649f27c2da78fed8aae48 /lisp/emacs-lisp/byte-run.el | |
parent | 3be93390fb6680d1e0c3256af72c86635a9eb327 (diff) | |
parent | 46f5d2867cf73a845d582eeb8929ae51b78eae55 (diff) | |
download | emacs-99e7cc0da652bf0f19f691d5de3b3ce7c15e8c39.tar.gz emacs-99e7cc0da652bf0f19f691d5de3b3ce7c15e8c39.tar.bz2 emacs-99e7cc0da652bf0f19f691d5de3b3ce7c15e8c39.zip |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
-rw-r--r-- | lisp/emacs-lisp/byte-run.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index df693ab1c83..042a26a2e31 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el @@ -442,7 +442,16 @@ ACCESS-TYPE if non-nil should specify the kind of access that will trigger (defmacro define-obsolete-variable-alias (obsolete-name current-name &optional when docstring) "Make OBSOLETE-NAME a variable alias for CURRENT-NAME and mark it obsolete. -This uses `defvaralias' and `make-obsolete-variable' (which see). + +WHEN should be a string indicating when the variable was first +made obsolete, for example a date or a release number. + +This macro evaluates all its parameters, and both OBSOLETE-NAME +and CURRENT-NAME should be symbols, so a typical usage would look like: + + (define-obsolete-variable-alias 'foo-thing 'bar-thing \"27.1\") + +This macro uses `defvaralias' and `make-obsolete-variable' (which see). See the Info node `(elisp)Variable Aliases' for more details. If CURRENT-NAME is a defcustom or a defvar (more generally, any variable @@ -456,9 +465,6 @@ dumped with Emacs). This is so that any user customizations are applied before the defcustom tries to initialize the variable (this is due to the way `defvaralias' works). -WHEN should be a string indicating when the variable was first -made obsolete, for example a date or a release number. - For the benefit of Customize, if OBSOLETE-NAME has any of the following properties, they are copied to CURRENT-NAME, if it does not already have them: |