aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2005-10-18 00:29:41 +0000
committerChong Yidong2005-10-18 00:29:41 +0000
commitbd2cef663bd6d62d9c2a23817115579a39cf321f (patch)
treee076ff0280689a855b6240d3e5f9a978dda31c06
parente6038ca330db4bd61969d687597498ed68e6ee92 (diff)
downloademacs-bd2cef663bd6d62d9c2a23817115579a39cf321f.tar.gz
emacs-bd2cef663bd6d62d9c2a23817115579a39cf321f.zip
* gnus-cus.el (gnus-custom-map): New variable. Bind mouse-1 to
widget-move-and-invoke. (gnus-custom-mode): Use gnus-custom-map.
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-cus.el16
2 files changed, 18 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index fbd26ac8a60..04213b9fa45 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12005-10-17 Chong Yidong <cyd@stupidchicken.com>
2
3 * gnus-cus.el (gnus-custom-map): New variable. Bind mouse-1 to
4 widget-move-and-invoke.
5 (gnus-custom-mode): Use gnus-custom-map.
6
12005-10-15 Bill Wohler <wohler@newt.com> 72005-10-15 Bill Wohler <wohler@newt.com>
2 8
3 * message.el (message-tool-bar-map): Renamed image file from 9 * message.el (message-tool-bar-map): Renamed image file from
diff --git a/lisp/gnus/gnus-cus.el b/lisp/gnus/gnus-cus.el
index f523af22750..df10c769315 100644
--- a/lisp/gnus/gnus-cus.el
+++ b/lisp/gnus/gnus-cus.el
@@ -36,6 +36,14 @@
36 36
37;;; Widgets: 37;;; Widgets:
38 38
39(defvar gnus-custom-map
40 (let ((map (make-keymap)))
41 (set-keymap-parent map widget-keymap)
42 (suppress-keymap map)
43 (define-key map [mouse-1] 'widget-move-and-invoke)
44 map)
45 "Keymap for editing Gnus customization buffers.")
46
39(defun gnus-custom-mode () 47(defun gnus-custom-mode ()
40 "Major mode for editing Gnus customization buffers. 48 "Major mode for editing Gnus customization buffers.
41 49
@@ -51,7 +59,7 @@ if that value is non-nil."
51 (kill-all-local-variables) 59 (kill-all-local-variables)
52 (setq major-mode 'gnus-custom-mode 60 (setq major-mode 'gnus-custom-mode
53 mode-name "Gnus Customize") 61 mode-name "Gnus Customize")
54 (use-local-map widget-keymap) 62 (use-local-map gnus-custom-map)
55 ;; Emacs 21 stuff: 63 ;; Emacs 21 stuff:
56 (when (and (facep 'custom-button-face) 64 (when (and (facep 'custom-button-face)
57 (facep 'custom-button-pressed-face)) 65 (facep 'custom-button-pressed-face))
@@ -479,7 +487,7 @@ form, but who cares?"
479 (widget-create 'sexp 487 (widget-create 'sexp
480 :tag "Method" 488 :tag "Method"
481 :value (gnus-info-method info)))) 489 :value (gnus-info-method info))))
482 (use-local-map widget-keymap) 490 (use-local-map gnus-custom-map)
483 (widget-setup) 491 (widget-setup)
484 (buffer-enable-undo) 492 (buffer-enable-undo)
485 (goto-char (point-min)))) 493 (goto-char (point-min))))
@@ -873,7 +881,7 @@ articles in the thread.
873 '(repeat :inline t 881 '(repeat :inline t
874 :tag "Unknown entries" 882 :tag "Unknown entries"
875 sexp))) 883 sexp)))
876 (use-local-map widget-keymap) 884 (use-local-map gnus-custom-map)
877 (widget-setup))) 885 (widget-setup)))
878 886
879(defun gnus-score-customize-done (&rest ignore) 887(defun gnus-score-customize-done (&rest ignore)
@@ -1050,7 +1058,7 @@ articles in the thread.
1050 1058
1051 (gnus-agent-cat-prepare-category-field agent-enable-undownloaded-faces) 1059 (gnus-agent-cat-prepare-category-field agent-enable-undownloaded-faces)
1052 1060
1053 (use-local-map widget-keymap) 1061 (use-local-map gnus-custom-map)
1054 (widget-setup) 1062 (widget-setup)
1055 (buffer-enable-undo)))) 1063 (buffer-enable-undo))))
1056 1064