diff options
| author | Nicolas Richard | 2014-01-14 23:30:42 +0100 |
|---|---|---|
| committer | Bastien Guerry | 2014-01-14 23:30:42 +0100 |
| commit | dac696602de6984ff8e4ce9d6bac9d51ab735cde (patch) | |
| tree | de928097683bb06775bdb9b6dd87fa9b9e9a2bf2 | |
| parent | 8b63edf8c6ce69677728bc41db67a330f8524ca7 (diff) | |
| download | emacs-dac696602de6984ff8e4ce9d6bac9d51ab735cde.tar.gz emacs-dac696602de6984ff8e4ce9d6bac9d51ab735cde.zip | |
simple.el (define-alternatives): Add 'definition-name to COMMAND-alternatives
* simple.el (define-alternatives): When creating the
COMMAND-alternatives variable, assign COMMAND as its definition
name so that `describe-variable' can relocate it.
See http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01340.html
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/simple.el | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7a14b857044..9255c5b82c1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-01-14 Nicolas Richard <theonewiththeevillook@yahoo.fr> | ||
| 2 | |||
| 3 | * simple.el (define-alternatives): When creating the | ||
| 4 | COMMAND-alternatives variable, assign COMMAND as its definition | ||
| 5 | name so that `describe-variable' can relocate it. | ||
| 6 | |||
| 1 | 2014-01-14 Matthew Leach <matthew@mattleach.net> (tiny change) | 7 | 2014-01-14 Matthew Leach <matthew@mattleach.net> (tiny change) |
| 2 | 8 | ||
| 3 | * font-lock.el (font-lock-keywords): Fix typo in docstring | 9 | * font-lock.el (font-lock-keywords): Fix typo in docstring |
diff --git a/lisp/simple.el b/lisp/simple.el index ceddfc6421a..ff32d204d17 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -7688,6 +7688,7 @@ ALTFUN - The function called to implement this alternative." | |||
| 7688 | :type '(alist :key-type string :value-type function) | 7688 | :type '(alist :key-type string :value-type function) |
| 7689 | ,@customizations) | 7689 | ,@customizations) |
| 7690 | 7690 | ||
| 7691 | (put ',varalt-sym 'definition-name ',command) | ||
| 7691 | (defvar ,varimp-sym nil "Internal use only.") | 7692 | (defvar ,varimp-sym nil "Internal use only.") |
| 7692 | 7693 | ||
| 7693 | (defun ,command (&optional arg) | 7694 | (defun ,command (&optional arg) |