]> git.eshelyaron.com Git - emacs.git/commitdiff
Make custom-theme-choose-mode inherit from special-mode.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 28 Aug 2011 19:05:26 +0000 (15:05 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 28 Aug 2011 19:05:26 +0000 (15:05 -0400)
* lisp/cus-theme.el (custom-theme-choose-mode): Inherit from special-mode.
(custom-theme-choose-mode-map): Add special-mode to parent.

Fixes: debbugs:9124
lisp/ChangeLog
lisp/cus-theme.el

index 5d4470a7f8740b8adf6394ca4f1dce0321c956a8..a6a81ff0fb26b795034b52c84128dfd2c6a90b76 100644 (file)
 
        * server.el (server-port): Doc fix.
 
+       * cus-theme.el (custom-theme-choose-mode): Inherit from
+       special-mode (Bug#9124).
+       (custom-theme-choose-mode-map): Add special-mode to parent.
+
 2011-08-28  Alan Mackenzie  <acm@muc.de>
 
        * progmodes/cc-fonts.el
index 04a9e728b22efd7c047fe265036a9f7bd73e4e27..1f33c3e8256f9e2501dae4c81552b3221cafc1b8 100644 (file)
@@ -521,7 +521,8 @@ It includes all faces in list FACES."
 
 (defvar custom-theme-choose-mode-map
   (let ((map (make-keymap)))
-    (set-keymap-parent map widget-keymap)
+    (set-keymap-parent map (make-composed-keymap widget-keymap
+                                                special-mode-map))
     (suppress-keymap map)
     (define-key map "\C-x\C-s" 'custom-theme-save)
     (define-key map "n" 'widget-forward)
@@ -530,7 +531,7 @@ It includes all faces in list FACES."
     map)
   "Keymap for `custom-theme-choose-mode'.")
 
-(define-derived-mode custom-theme-choose-mode nil "Themes"
+(define-derived-mode custom-theme-choose-mode special-mode "Themes"
   "Major mode for selecting Custom themes.
 Do not call this mode function yourself.  It is meant for internal use."
   (use-local-map custom-theme-choose-mode-map)