aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-01-12 14:10:00 -0500
committerChong Yidong2011-01-12 14:10:00 -0500
commitb2948a8779645ec8880c002acf170d503c7b10be (patch)
treed5212f32b58c025cf63a80b02fa9b1a5df422ca7
parent2a8b13afb756f8d291646df34e2a7d4dc853c2da (diff)
downloademacs-b2948a8779645ec8880c002acf170d503c7b10be.tar.gz
emacs-b2948a8779645ec8880c002acf170d503c7b10be.zip
* cus-theme.el (customize-themes): Use switch-to-buffer.
* menu-bar.el (menu-bar-custom-menu): Tweak Mule and Customize menus. Add menu item for customize-themes.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/cus-theme.el2
-rw-r--r--lisp/menu-bar.el20
3 files changed, 15 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e492282d239..ec6e293eec2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12011-01-12 Chong Yidong <cyd@stupidchicken.com> 12011-01-12 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * menu-bar.el (menu-bar-custom-menu): Tweak Mule and Customize
4 menus. Add menu item for customize-themes.
5
6 * cus-theme.el (customize-themes):
3 * emacs-lisp/package.el (package--list-packages): Use 7 * emacs-lisp/package.el (package--list-packages): Use
4 switch-to-buffer. 8 switch-to-buffer.
5 9
diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el
index e6e286f00fa..6e94b326e53 100644
--- a/lisp/cus-theme.el
+++ b/lisp/cus-theme.el
@@ -541,7 +541,7 @@ Do not call this mode function yourself. It is meant for internal use."
541When called from Lisp, BUFFER should be the buffer to use; if 541When called from Lisp, BUFFER should be the buffer to use; if
542omitted, a buffer named *Custom Themes* is used." 542omitted, a buffer named *Custom Themes* is used."
543 (interactive) 543 (interactive)
544 (pop-to-buffer (get-buffer-create (or buffer "*Custom Themes*"))) 544 (switch-to-buffer (get-buffer-create (or buffer "*Custom Themes*")))
545 (let ((inhibit-read-only t)) 545 (let ((inhibit-read-only t))
546 (erase-buffer)) 546 (erase-buffer))
547 (custom-theme-choose-mode) 547 (custom-theme-choose-mode)
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 7babd41b69d..2fe5f94ac7f 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -584,18 +584,15 @@ Do the same for the keys of the same name."
584 584
585(defvar menu-bar-custom-menu (make-sparse-keymap "Customize")) 585(defvar menu-bar-custom-menu (make-sparse-keymap "Customize"))
586 586
587(define-key menu-bar-custom-menu [customize-apropos-groups]
588 `(menu-item ,(purecopy "Groups Matching Regexp...") customize-apropos-groups
589 :help ,(purecopy "Browse groups whose names match regexp")))
590(define-key menu-bar-custom-menu [customize-apropos-faces] 587(define-key menu-bar-custom-menu [customize-apropos-faces]
591 `(menu-item ,(purecopy "Faces Matching Regexp...") customize-apropos-faces 588 `(menu-item ,(purecopy "Faces Matching...") customize-apropos-faces
592 :help ,(purecopy "Browse faces whose names match regexp"))) 589 :help ,(purecopy "Browse faces matching a regexp or word list")))
593(define-key menu-bar-custom-menu [customize-apropos-options] 590(define-key menu-bar-custom-menu [customize-apropos-options]
594 `(menu-item ,(purecopy "Options Matching Regexp...") customize-apropos-options 591 `(menu-item ,(purecopy "Options Matching...") customize-apropos-options
595 :help ,(purecopy "Browse options whose names match regexp"))) 592 :help ,(purecopy "Browse options matching a regexp or word list")))
596(define-key menu-bar-custom-menu [customize-apropos] 593(define-key menu-bar-custom-menu [customize-apropos]
597 `(menu-item ,(purecopy "Settings Matching Regexp...") customize-apropos 594 `(menu-item ,(purecopy "All Settings Matching...") customize-apropos
598 :help ,(purecopy "Browse customizable settings whose names match regexp"))) 595 :help ,(purecopy "Browse customizable settings matching a regexp or word list")))
599(define-key menu-bar-custom-menu [separator-1] 596(define-key menu-bar-custom-menu [separator-1]
600 menu-bar-separator) 597 menu-bar-separator)
601(define-key menu-bar-custom-menu [customize-group] 598(define-key menu-bar-custom-menu [customize-group]
@@ -623,6 +620,9 @@ Do the same for the keys of the same name."
623(define-key menu-bar-custom-menu [customize] 620(define-key menu-bar-custom-menu [customize]
624 `(menu-item ,(purecopy "Top-level Customization Group") customize 621 `(menu-item ,(purecopy "Top-level Customization Group") customize
625 :help ,(purecopy "The master group called `Emacs'"))) 622 :help ,(purecopy "The master group called `Emacs'")))
623(define-key menu-bar-custom-menu [customize-themes]
624 `(menu-item ,(purecopy "Custom Themes") customize-themes
625 :help ,(purecopy "Choose a pre-defined customization theme")))
626 626
627;(defvar menu-bar-preferences-menu (make-sparse-keymap "Preferences")) 627;(defvar menu-bar-preferences-menu (make-sparse-keymap "Preferences"))
628 628
@@ -1144,7 +1144,7 @@ mail status in mode line"))
1144 ;; It is better not to use backquote here, 1144 ;; It is better not to use backquote here,
1145 ;; because that makes a bootstrapping problem 1145 ;; because that makes a bootstrapping problem
1146 ;; if you need to recompile all the Lisp files using interpreted code. 1146 ;; if you need to recompile all the Lisp files using interpreted code.
1147 `(menu-item ,(purecopy "Mule (Multilingual Environment)") ,mule-menu-keymap 1147 `(menu-item ,(purecopy "Multilingual Environment") ,mule-menu-keymap
1148;; Most of the MULE menu actually does make sense in unibyte mode, 1148;; Most of the MULE menu actually does make sense in unibyte mode,
1149;; e.g. language selection. 1149;; e.g. language selection.
1150;;; :visible '(default-value 'enable-multibyte-characters) 1150;;; :visible '(default-value 'enable-multibyte-characters)