diff options
| author | Glenn Morris | 2008-04-12 03:13:27 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-12 03:13:27 +0000 |
| commit | f8754ca2dea51bbcddb30dedc4c4d1e6383fa0c1 (patch) | |
| tree | 2deedf7c165dc7c997ea602be32307e65af90700 | |
| parent | 1a9f2b775ed169747f276708071df0f0a2a3d640 (diff) | |
| download | emacs-f8754ca2dea51bbcddb30dedc4c4d1e6383fa0c1.tar.gz emacs-f8754ca2dea51bbcddb30dedc4c4d1e6383fa0c1.zip | |
(define-obsolete-variable-alias): Doc fix.
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 855111b9f9b..06b28beab7e 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -161,6 +161,15 @@ is equivalent to the following two lines of code: | |||
| 161 | \(defvaralias 'old-var 'new-var \"old-var's doc.\") | 161 | \(defvaralias 'old-var 'new-var \"old-var's doc.\") |
| 162 | \(make-obsolete-variable 'old-var 'new-var \"22.1\") | 162 | \(make-obsolete-variable 'old-var 'new-var \"22.1\") |
| 163 | 163 | ||
| 164 | If CURRENT-NAME is a defcustom (more generally, any variable | ||
| 165 | where OBSOLETE-NAME may be set, e.g. in a .emacs file, before the | ||
| 166 | alias is defined), then the define-obsolete-variable-alias | ||
| 167 | statement should be placed before the defcustom. This is so that | ||
| 168 | any user customizations are applied before the defcustom tries to | ||
| 169 | initialize the variable (this is due to the way `defvaralias' works). | ||
| 170 | Exceptions to this rule occur for define-obsolete-variable-alias | ||
| 171 | statements that are autoloaded, or in files dumped with Emacs. | ||
| 172 | |||
| 164 | See the docstrings of `defvaralias' and `make-obsolete-variable' or | 173 | See the docstrings of `defvaralias' and `make-obsolete-variable' or |
| 165 | Info node `(elisp)Variable Aliases' for more details." | 174 | Info node `(elisp)Variable Aliases' for more details." |
| 166 | (declare (doc-string 4)) | 175 | (declare (doc-string 4)) |