mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Describe WHEN in all the define-obsolete- macros
* lisp/emacs-lisp/byte-run.el (define-obsolete-face-alias):
Say more verbosely what WHEN is (bug#21225).
(define-obsolete-function-alias): Describe the WHEN parameter.
(define-obsolete-variable-alias): Ditto.
(cherry picked from commit 247c388f16)
This commit is contained in:
parent
6b39501612
commit
25b4cf33dd
1 changed files with 8 additions and 2 deletions
|
|
@ -362,6 +362,9 @@ is equivalent to the following two lines of code:
|
||||||
\(defalias \\='old-fun \\='new-fun \"old-fun's doc.\")
|
\(defalias \\='old-fun \\='new-fun \"old-fun's doc.\")
|
||||||
\(make-obsolete \\='old-fun \\='new-fun \"22.1\")
|
\(make-obsolete \\='old-fun \\='new-fun \"22.1\")
|
||||||
|
|
||||||
|
If provided, WHEN should be a string indicating when the function
|
||||||
|
was first made obsolete, for example a date or a release number.
|
||||||
|
|
||||||
See the docstrings of `defalias' and `make-obsolete' for more details."
|
See the docstrings of `defalias' and `make-obsolete' for more details."
|
||||||
(declare (doc-string 4)
|
(declare (doc-string 4)
|
||||||
(advertised-calling-convention
|
(advertised-calling-convention
|
||||||
|
|
@ -404,6 +407,9 @@ dumped with Emacs). This is so that any user customizations are
|
||||||
applied before the defcustom tries to initialize the
|
applied before the defcustom tries to initialize the
|
||||||
variable (this is due to the way `defvaralias' works).
|
variable (this is due to the way `defvaralias' works).
|
||||||
|
|
||||||
|
If provided, WHEN should be a string indicating when the function
|
||||||
|
was first made obsolete, for example a date or a release number.
|
||||||
|
|
||||||
For the benefit of `custom-set-variables', if OBSOLETE-NAME has
|
For the benefit of `custom-set-variables', if OBSOLETE-NAME has
|
||||||
any of the following properties, they are copied to
|
any of the following properties, they are copied to
|
||||||
CURRENT-NAME, if it does not already have them:
|
CURRENT-NAME, if it does not already have them:
|
||||||
|
|
@ -428,8 +434,8 @@ CURRENT-NAME, if it does not already have them:
|
||||||
;; It only really affects M-x describe-face output.
|
;; It only really affects M-x describe-face output.
|
||||||
(defmacro define-obsolete-face-alias (obsolete-face current-face when)
|
(defmacro define-obsolete-face-alias (obsolete-face current-face when)
|
||||||
"Make OBSOLETE-FACE a face alias for CURRENT-FACE and mark it obsolete.
|
"Make OBSOLETE-FACE a face alias for CURRENT-FACE and mark it obsolete.
|
||||||
The string WHEN gives the Emacs version where OBSOLETE-FACE became
|
If provided, WHEN should be a string indicating when the function
|
||||||
obsolete."
|
was first made obsolete, for example a date or a release number."
|
||||||
`(progn
|
`(progn
|
||||||
(put ,obsolete-face 'face-alias ,current-face)
|
(put ,obsolete-face 'face-alias ,current-face)
|
||||||
;; Used by M-x describe-face.
|
;; Used by M-x describe-face.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue