aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2013-07-15 02:49:22 +0200
committerJuanma Barranquero2013-07-15 02:49:22 +0200
commitb43f6451c82dd67e54fd2c30eb54b1ea1236c6e6 (patch)
treefba8bb40200bc1b6e71c45bcea6c3e98654ea299
parentb958c0ad58a129eca0e65bbdd72a135b5017d4a6 (diff)
downloademacs-b43f6451c82dd67e54fd2c30eb54b1ea1236c6e6.tar.gz
emacs-b43f6451c82dd67e54fd2c30eb54b1ea1236c6e6.zip
lisp/simple.el (define-alternatives): Rename from alternatives-define.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/simple.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 34154551fcd..6dcbb90b0f6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-07-15 Juanma Barranquero <lekktu@gmail.com>
2
3 * simple.el (define-alternatives): Rename from alternatives-define,
4 per RMS' suggestion.
5
12013-07-14 Juanma Barranquero <lekktu@gmail.com> 62013-07-14 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * desktop.el (desktop-restore-frames): Change default to t. 8 * desktop.el (desktop-restore-frames): Change default to t.
diff --git a/lisp/simple.el b/lisp/simple.el
index 3e3ff485c5e..bcce938df73 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -7437,19 +7437,19 @@ warning using STRING as the message.")
7437 7437
7438;;; Generic dispatcher commands 7438;;; Generic dispatcher commands
7439 7439
7440;; Macro `alternatives-define' is used to create generic commands. 7440;; Macro `define-alternatives' is used to create generic commands.
7441;; Generic commands are these (like web, mail, news, encrypt, irc, etc.) 7441;; Generic commands are these (like web, mail, news, encrypt, irc, etc.)
7442;; that can have different alternative implementations where choosing 7442;; that can have different alternative implementations where choosing
7443;; among them is exclusively a matter of user preference. 7443;; among them is exclusively a matter of user preference.
7444 7444
7445;; (alternatives-define COMMAND) creates a new interactive command 7445;; (define-alternatives COMMAND) creates a new interactive command
7446;; M-x COMMAND and a customizable variable COMMAND-alternatives. 7446;; M-x COMMAND and a customizable variable COMMAND-alternatives.
7447;; Typically, the user will not need to customize this variable; packages 7447;; Typically, the user will not need to customize this variable; packages
7448;; wanting to add alternative implementations should use 7448;; wanting to add alternative implementations should use
7449;; 7449;;
7450;; ;;;###autoload (push '("My impl name" . my-impl-symbol) COMMAND-alternatives 7450;; ;;;###autoload (push '("My impl name" . my-impl-symbol) COMMAND-alternatives
7451 7451
7452(defmacro alternatives-define (command &rest customizations) 7452(defmacro define-alternatives (command &rest customizations)
7453 "Define new command `COMMAND'. 7453 "Define new command `COMMAND'.
7454The variable `COMMAND-alternatives' will contain alternative 7454The variable `COMMAND-alternatives' will contain alternative
7455implementations of COMMAND, so that running `C-u M-x COMMAND' 7455implementations of COMMAND, so that running `C-u M-x COMMAND'