From e58e988add7efd6cdc0b04887d917e3213f97f7b Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 30 Jan 2012 17:53:20 -0800 Subject: [PATCH] * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix :variable case. --- lisp/ChangeLog | 4 ++++ lisp/emacs-lisp/easy-mmode.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8b9f4f24fcd..258e9497e02 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2012-01-31 Glenn Morris + + * emacs-lisp/easy-mmode.el (define-minor-mode): Fix :variable case. + 2012-01-30 Glenn Morris * emacs-lisp/authors.el (authors-fixed-entries): diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index b0bfde8b4b7..7d412f0fcd4 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -286,7 +286,7 @@ the mode if ARG is omitted or nil. ,(if keymap keymap-sym `(if (boundp ',keymap-sym) ,keymap-sym)) nil - ,(unless (eq mode modefun) 'modefun))))))) + ,(unless (eq mode modefun) `',modefun))))))) ;;; ;;; make global minor mode -- 2.39.2