comparison lisp/cus-edit.el @ 90260:0ca0d9181b5e

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-95 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 598-615) - Update from CVS - Remove lisp/toolbar directory - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 142-146) - Update from CVS
author Miles Bader <miles@gnu.org>
date Mon, 16 Jan 2006 06:59:21 +0000
parents b1c1fc853d2f 1b475d6de39b
children 7beb78bc1f8e
comparison
equal deleted inserted replaced
90259:a3ba65547f84 90260:0ca0d9181b5e
4243 (define-key map "\C-x\C-s" 'Custom-save) 4243 (define-key map "\C-x\C-s" 'Custom-save)
4244 (define-key map "q" 'Custom-buffer-done) 4244 (define-key map "q" 'Custom-buffer-done)
4245 (define-key map "u" 'Custom-goto-parent) 4245 (define-key map "u" 'Custom-goto-parent)
4246 (define-key map "n" 'widget-forward) 4246 (define-key map "n" 'widget-forward)
4247 (define-key map "p" 'widget-backward) 4247 (define-key map "p" 'widget-backward)
4248 (define-key map [mouse-1] 'Custom-move-and-invoke) 4248 (define-key map [mouse-1] 'widget-move-and-invoke)
4249 map) 4249 map)
4250 "Keymap for `custom-mode'.") 4250 "Keymap for `custom-mode'.")
4251
4252 (defun Custom-move-and-invoke (event)
4253 "Move to where you click, and if it is an active field, invoke it."
4254 (interactive "e")
4255 (mouse-set-point event)
4256 (if (widget-event-point event)
4257 (let* ((pos (widget-event-point event))
4258 (button (get-char-property pos 'button)))
4259 (if button
4260 (widget-button-click event)))))
4261 4251
4262 (easy-menu-define Custom-mode-menu 4252 (easy-menu-define Custom-mode-menu
4263 custom-mode-map 4253 custom-mode-map
4264 "Menu used in customization buffers." 4254 "Menu used in customization buffers."
4265 `("Custom" 4255 `("Custom"