aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2003-04-18 17:31:05 +0000
committerStefan Monnier2003-04-18 17:31:05 +0000
commiteb81f2758fe168ce4c38b59ea7aadd1e481ceb19 (patch)
treea2f51be7d75a3d026ed322e13b89d9ba88e2a6bb /lisp
parentcb211eb2f6ea692c2ade1b488cab097f82d7db14 (diff)
downloademacs-eb81f2758fe168ce4c38b59ea7aadd1e481ceb19.tar.gz
emacs-eb81f2758fe168ce4c38b59ea7aadd1e481ceb19.zip
(define-minor-mode): Only echo a message if the body didn't do so already.
(easy-mmode-define-keymap): Remove unused var `suppress'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/easy-mmode.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index c331bd744e3..af47454ca4d 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -203,12 +203,12 @@ With zero or negative ARG turn mode off.
203 (if (interactive-p) 203 (if (interactive-p)
204 (progn 204 (progn
205 ,(if globalp `(customize-mark-as-set ',mode)) 205 ,(if globalp `(customize-mark-as-set ',mode))
206 (unless (current-message)
206 (message ,(format "%s %%sabled" pretty-name) 207 (message ,(format "%s %%sabled" pretty-name)
207 (if ,mode "en" "dis")))) 208 (if ,mode "en" "dis")))))
208 (force-mode-line-update) 209 (force-mode-line-update)
209 ;; Return the new setting. 210 ;; Return the new setting.
210 ,mode) 211 ,mode)
211
212 ;; Autoloading an easy-mmode-define-minor-mode autoloads 212 ;; Autoloading an easy-mmode-define-minor-mode autoloads
213 ;; everything up-to-here. 213 ;; everything up-to-here.
214 :autoload-end 214 :autoload-end
@@ -341,7 +341,7 @@ KEY and BINDINGS are suitable for `define-key'.
341Optional NAME is passed to `make-sparse-keymap'. 341Optional NAME is passed to `make-sparse-keymap'.
342Optional map M can be used to modify an existing map. 342Optional map M can be used to modify an existing map.
343ARGS is a list of additional keyword arguments." 343ARGS is a list of additional keyword arguments."
344 (let (inherit dense suppress) 344 (let (inherit dense)
345 (while args 345 (while args
346 (let ((key (pop args)) 346 (let ((key (pop args))
347 (val (pop args))) 347 (val (pop args)))
@@ -350,7 +350,6 @@ ARGS is a list of additional keyword arguments."
350 (:dense (setq dense val)) 350 (:dense (setq dense val))
351 (:inherit (setq inherit val)) 351 (:inherit (setq inherit val))
352 (:group) 352 (:group)
353 ;;((eq key :suppress) (setq suppress val))
354 (t (message "Unknown argument %s in defmap" key))))) 353 (t (message "Unknown argument %s in defmap" key)))))
355 (unless (keymapp m) 354 (unless (keymapp m)
356 (setq bs (append m bs)) 355 (setq bs (append m bs))