aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKelly Dean2015-02-16 04:21:06 +0000
committerArtur Malabarba2015-02-17 22:08:52 -0200
commit3194809d247efdc7ea65644ea7b298885e47a392 (patch)
tree92a2e97a00144ac6d1f00207ca5736a95abaea20
parent1f2c4f817ee37c7c7767e22eda1c427456885b6b (diff)
downloademacs-3194809d247efdc7ea65644ea7b298885e47a392.tar.gz
emacs-3194809d247efdc7ea65644ea7b298885e47a392.zip
emacs-lisp/easy-mmode.el: Process macro arguments correctly
* emacs-lisp/easy-mmode.el (define-minor-mode): Process macro arguments correctly. (Bug#19685)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/easy-mmode.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d5080d92fd5..9741baa64bd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12015-02-16 Kelly Dean <kelly@prtime.org> 12015-02-16 Kelly Dean <kelly@prtime.org>
2 2
3 * emacs-lisp/easy-mmode.el (define-minor-mode): Process macro
4 arguments correctly. (Bug#19685)
5
62015-02-16 Kelly Dean <kelly@prtime.org>
7
3 * emacs-lisp/package-x.el (package-upload-buffer-internal): 8 * emacs-lisp/package-x.el (package-upload-buffer-internal):
4 Create valid tar files. (Bug#19536) 9 Create valid tar files. (Bug#19536)
5 10
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index f7e8619948a..cd5720d144f 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -159,7 +159,8 @@ For example, you could write
159 ;; Allow skipping the first three args. 159 ;; Allow skipping the first three args.
160 (cond 160 (cond
161 ((keywordp init-value) 161 ((keywordp init-value)
162 (setq body `(,init-value ,lighter ,keymap ,@body) 162 (setq body (if keymap `(,init-value ,lighter ,keymap ,@body)
163 `(,init-value ,lighter))
163 init-value nil lighter nil keymap nil)) 164 init-value nil lighter nil keymap nil))
164 ((keywordp lighter) 165 ((keywordp lighter)
165 (setq body `(,lighter ,keymap ,@body) lighter nil keymap nil)) 166 (setq body `(,lighter ,keymap ,@body) lighter nil keymap nil))