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
This commit is contained in:
Nicolas Richard 2014-01-14 23:30:42 +01:00 committed by Bastien Guerry
parent 8b63edf8c6
commit dac696602d
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2014-01-14 Nicolas Richard <theonewiththeevillook@yahoo.fr>
* simple.el (define-alternatives): When creating the
COMMAND-alternatives variable, assign COMMAND as its definition
name so that `describe-variable' can relocate it.
2014-01-14 Matthew Leach <matthew@mattleach.net> (tiny change)
* font-lock.el (font-lock-keywords): Fix typo in docstring

View file

@ -7688,6 +7688,7 @@ ALTFUN - The function called to implement this alternative."
:type '(alist :key-type string :value-type function)
,@customizations)
(put ',varalt-sym 'definition-name ',command)
(defvar ,varimp-sym nil "Internal use only.")
(defun ,command (&optional arg)