Commit 3194809d authored by Kelly Dean's avatar Kelly Dean Committed by Artur Malabarba
Browse files

emacs-lisp/easy-mmode.el: Process macro arguments correctly

* emacs-lisp/easy-mmode.el (define-minor-mode): Process macro
arguments correctly. (Bug#19685)
parent 1f2c4f81
2015-02-16 Kelly Dean <kelly@prtime.org>
* emacs-lisp/easy-mmode.el (define-minor-mode): Process macro
arguments correctly. (Bug#19685)
2015-02-16 Kelly Dean <kelly@prtime.org>
 
* emacs-lisp/package-x.el (package-upload-buffer-internal):
......
......@@ -159,7 +159,8 @@ For example, you could write
;; Allow skipping the first three args.
(cond
((keywordp init-value)
(setq body `(,init-value ,lighter ,keymap ,@body)
(setq body (if keymap `(,init-value ,lighter ,keymap ,@body)
`(,init-value ,lighter))
init-value nil lighter nil keymap nil))
((keywordp lighter)
(setq body `(,lighter ,keymap ,@body) lighter nil keymap nil))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment