aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/facemenu.el10
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 50ae33a7d6e..79dc1996455 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-09-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * facemenu.el: Disable the remove-* commands if the mark isn't
4 active (bug#9162).
5
12011-09-10 Chong Yidong <cyd@stupidchicken.com> 62011-09-10 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * buff-menu.el (Buffer-menu-switch-other-window): Use second arg 8 * buff-menu.el (Buffer-menu-switch-other-window): Use second arg
diff --git a/lisp/facemenu.el b/lisp/facemenu.el
index 1b42aa9ea73..a18b892efe8 100644
--- a/lisp/facemenu.el
+++ b/lisp/facemenu.el
@@ -241,10 +241,12 @@ it will remove any faces not explicitly in the list."
241 (define-key map [df] (cons (purecopy "Display Faces") 'list-faces-display)) 241 (define-key map [df] (cons (purecopy "Display Faces") 'list-faces-display))
242 (define-key map [dp] (cons (purecopy "Describe Properties") 242 (define-key map [dp] (cons (purecopy "Describe Properties")
243 'describe-text-properties)) 243 'describe-text-properties))
244 (define-key map [ra] (cons (purecopy "Remove Text Properties") 244 (define-key map [ra] (list 'menu-item (purecopy "Remove Text Properties")
245 'facemenu-remove-all)) 245 'facemenu-remove-all
246 (define-key map [rm] (cons (purecopy "Remove Face Properties") 246 :enable 'mark-active))
247 'facemenu-remove-face-props)) 247 (define-key map [rm] (list 'menu-item (purecopy "Remove Face Properties")
248 'facemenu-remove-face-props
249 :enable 'mark-active))
248 (define-key map [s1] (list (purecopy "--")))) 250 (define-key map [s1] (list (purecopy "--"))))
249(let ((map facemenu-menu)) 251(let ((map facemenu-menu))
250 (define-key map [in] (cons (purecopy "Indentation") 252 (define-key map [in] (cons (purecopy "Indentation")