Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b43f6451
Commit
b43f6451
authored
Jul 15, 2013
by
Juanma Barranquero
Browse files
lisp/simple.el (define-alternatives): Rename from alternatives-define.
parent
b958c0ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/simple.el
lisp/simple.el
+3
-3
No files found.
lisp/ChangeLog
View file @
b43f6451
2013-07-15 Juanma Barranquero <lekktu@gmail.com>
* simple.el (define-alternatives): Rename from alternatives-define,
per RMS' suggestion.
2013-07-14 Juanma Barranquero <lekktu@gmail.com>
* desktop.el (desktop-restore-frames): Change default to t.
...
...
lisp/simple.el
View file @
b43f6451
...
...
@@ -7437,19 +7437,19 @@ warning using STRING as the message.")
;;; Generic dispatcher commands
;; Macro `alternatives
-define
' is used to create generic commands.
;; Macro `
define-
alternatives' is used to create generic commands.
;; Generic commands are these (like web, mail, news, encrypt, irc, etc.)
;; that can have different alternative implementations where choosing
;; among them is exclusively a matter of user preference.
;; (alternatives
-define
COMMAND) creates a new interactive command
;; (
define-
alternatives COMMAND) creates a new interactive command
;; M-x COMMAND and a customizable variable COMMAND-alternatives.
;; Typically, the user will not need to customize this variable; packages
;; wanting to add alternative implementations should use
;;
;; ;;;###autoload (push '("
My
impl
name
" . my-impl-symbol) COMMAND-alternatives
(defmacro alternatives
-define
(command &rest customizations)
(defmacro
define-
alternatives (command &rest customizations)
"
Define
new
command
`
COMMAND
'.
The
variable
`
COMMAND-alternatives
'
will
contain
alternative
implementations
of
COMMAND,
so
that
running
`
C-u
M-x
COMMAND
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment