]> git.eshelyaron.com Git - emacs.git/commitdiff
* gnus-cus.el (gnus-custom-map): New variable. Bind mouse-1 to
authorChong Yidong <cyd@stupidchicken.com>
Tue, 18 Oct 2005 00:29:41 +0000 (00:29 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 18 Oct 2005 00:29:41 +0000 (00:29 +0000)
widget-move-and-invoke.
(gnus-custom-mode): Use gnus-custom-map.

lisp/gnus/ChangeLog
lisp/gnus/gnus-cus.el

index fbd26ac8a605c5080592b758b7685319ff26b5c2..04213b9fa4511a4066594285e49ffdb305173b40 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-17  Chong Yidong  <cyd@stupidchicken.com>
+
+       * gnus-cus.el (gnus-custom-map): New variable.  Bind mouse-1 to
+       widget-move-and-invoke.
+       (gnus-custom-mode): Use gnus-custom-map.
+
 2005-10-15  Bill Wohler  <wohler@newt.com>
 
        * message.el (message-tool-bar-map): Renamed image file from
index f523af227504bdb7b23d4904640b8863ee4eeec0..df10c769315f06c58a90ea3988e39e90d1a5da03 100644 (file)
 
 ;;; Widgets:
 
+(defvar gnus-custom-map
+  (let ((map (make-keymap)))
+    (set-keymap-parent map widget-keymap)
+    (suppress-keymap map)
+    (define-key map [mouse-1] 'widget-move-and-invoke)
+    map)
+  "Keymap for editing Gnus customization buffers.")
+
 (defun gnus-custom-mode ()
   "Major mode for editing Gnus customization buffers.
 
@@ -51,7 +59,7 @@ if that value is non-nil."
   (kill-all-local-variables)
   (setq major-mode 'gnus-custom-mode
        mode-name "Gnus Customize")
-  (use-local-map widget-keymap)
+  (use-local-map gnus-custom-map)
   ;; Emacs 21 stuff:
   (when (and (facep 'custom-button-face)
             (facep 'custom-button-pressed-face))
@@ -479,7 +487,7 @@ form, but who cares?"
            (widget-create 'sexp
                           :tag "Method"
                           :value (gnus-info-method info))))
-    (use-local-map widget-keymap)
+    (use-local-map gnus-custom-map)
     (widget-setup)
     (buffer-enable-undo)
     (goto-char (point-min))))
@@ -873,7 +881,7 @@ articles in the thread.
                         '(repeat :inline t
                                  :tag "Unknown entries"
                                  sexp)))
-    (use-local-map widget-keymap)
+    (use-local-map gnus-custom-map)
     (widget-setup)))
 
 (defun gnus-score-customize-done (&rest ignore)
@@ -1050,7 +1058,7 @@ articles in the thread.
 
       (gnus-agent-cat-prepare-category-field agent-enable-undownloaded-faces)
 
-      (use-local-map widget-keymap)
+      (use-local-map gnus-custom-map)
       (widget-setup)
       (buffer-enable-undo))))