Commit f8754ca2 authored by Glenn Morris's avatar Glenn Morris
Browse files

(define-obsolete-variable-alias): Doc fix.

parent 1a9f2b77
...@@ -161,6 +161,15 @@ is equivalent to the following two lines of code: ...@@ -161,6 +161,15 @@ is equivalent to the following two lines of code:
\(defvaralias 'old-var 'new-var \"old-var's doc.\") \(defvaralias 'old-var 'new-var \"old-var's doc.\")
\(make-obsolete-variable 'old-var 'new-var \"22.1\") \(make-obsolete-variable 'old-var 'new-var \"22.1\")
If CURRENT-NAME is a defcustom (more generally, any variable
where OBSOLETE-NAME may be set, e.g. in a .emacs file, before the
alias is defined), then the define-obsolete-variable-alias
statement should be placed before the defcustom. 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).
Exceptions to this rule occur for define-obsolete-variable-alias
statements that are autoloaded, or in files dumped with Emacs.
See the docstrings of `defvaralias' and `make-obsolete-variable' or See the docstrings of `defvaralias' and `make-obsolete-variable' or
Info node `(elisp)Variable Aliases' for more details." Info node `(elisp)Variable Aliases' for more details."
(declare (doc-string 4)) (declare (doc-string 4))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment