* simple.el (define-alternatives): Fix docstring by advising
authorBastien Guerry <bzg@gnu.org>
Fri, 17 Jan 2014 13:05:09 +0000 (14:05 +0100)
committerBastien Guerry <bzg@gnu.org>
Fri, 17 Jan 2014 13:05:09 +0000 (14:05 +0100)
developers to (defvar COMMAND-alternatives).

lisp/ChangeLog
lisp/simple.el

index 25c4e9e..e8057c3 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-17  Bastien Guerry  <bzg@gnu.org>
+
+       * simple.el (define-alternatives): Fix docstring by advising
+       developers to (defvar COMMAND-alternatives).
+
 2014-01-17  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-alignable-keywords): New constant.
index ff32d20..e69cbbd 100644 (file)
@@ -7666,8 +7666,10 @@ Running `C-u M-x COMMAND RET' prompts again for an alternative
 and overwrites the previous choice.
 
 The variable `COMMAND-alternatives' contains an alist with
-alternative implementations of COMMAND.  `define-alternatives'
-does not have any effect until this variable is set.
+alternative implementations of COMMAND.  Developers should
+use (defvar COMMAND-alternatives) to declare this variable
+after they write (define-alternatives COMMAND), otherwise
+the variable will not be handled by programs like etags.
 
 CUSTOMIZATIONS, if non-nil, should be composed of alternating
 `defcustom' keywords and values to add to the declaration of