[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with whole buffer Custom functions.
From: |
Juri Linkov |
Subject: |
Re: Problems with whole buffer Custom functions. |
Date: |
Sun, 22 Jan 2006 02:45:17 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
> More keys are not enabled in editable fields, for instance, `n' and `p':
>
> I like the idea of using M-n and M-p for them. Those keys
> could be bound in the keymap used for editable fields, and then they
> would work everywhere in the buffer.
I'd reserve M-n and M-p in editable fields for history navigation.
Since editable fields are very like the minibuffer where M-n and M-p
are used to navigate in the minibuffer history, it makes sense to
implement something similar for editable fields (after the release).
> Perhaps cus-edit should bind `C-c C-c' and `C-x C-s' in a new keymap
> inheriting from widget-field-keymap.
>
> I think that is a good idea.
>
> Can one of you do these things?
Below is a patch that implement this.
Index: lisp/cus-edit.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/cus-edit.el,v
retrieving revision 1.279
diff -c -r1.279 cus-edit.el
*** lisp/cus-edit.el 19 Jan 2006 23:26:04 -0000 1.279
--- lisp/cus-edit.el 22 Jan 2006 00:43:55 -0000
***************
*** 4400,4405 ****
--- 4396,4410 ----
["Erase Customization" Custom-reset-standard t]
["Info" (info "(emacs)Easy Customization") t]))
+ (defvar custom-field-keymap
+ (let ((map (copy-keymap widget-field-keymap)))
+ (define-key map "\C-c\C-c" 'Custom-set)
+ (define-key map "\C-x\C-s" 'Custom-save)
+ map)
+ "Keymap used inside editable fields in customization buffers.")
+
+ (widget-put (get 'editable-field 'widget-type) :keymap custom-field-keymap)
+
(defun Custom-goto-parent ()
"Go to the parent group listed at the top of this buffer.
If several parents are listed, go to the first of them."
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Problems with whole buffer Custom functions., (continued)
- Re: Problems with whole buffer Custom functions., Luc Teirlinck, 2006/01/21
- Re: Problems with whole buffer Custom functions., Juri Linkov, 2006/01/22
- Re: Problems with whole buffer Custom functions., Richard M. Stallman, 2006/01/24
- Re: Problems with whole buffer Custom functions., Juri Linkov, 2006/01/24
- Re: Problems with whole buffer Custom functions., Lennart Borgman, 2006/01/24
- Re: Problems with whole buffer Custom functions., Juri Linkov, 2006/01/25
- Re: Problems with whole buffer Custom functions., Richard M. Stallman, 2006/01/25
- Re: Problems with whole buffer Custom functions., Luc Teirlinck, 2006/01/21
- Re: Problems with whole buffer Custom functions., Juri Linkov, 2006/01/22
Re: Problems with whole buffer Custom functions., Richard M. Stallman, 2006/01/19
- Re: Problems with whole buffer Custom functions.,
Juri Linkov <=
- Re: Problems with whole buffer Custom functions., Richard M. Stallman, 2006/01/22
- RE: Problems with whole buffer Custom functions., Drew Adams, 2006/01/22
- Re: Problems with whole buffer Custom functions., Juri Linkov, 2006/01/22
- RE: Problems with whole buffer Custom functions., Drew Adams, 2006/01/22
- Re: Problems with whole buffer Custom functions., Juri Linkov, 2006/01/23
Re: Problems with whole buffer Custom functions., Richard M. Stallman, 2006/01/24
Re: Problems with whole buffer Custom functions., Juri Linkov, 2006/01/22
Re: Problems with whole buffer Custom functions., Richard M. Stallman, 2006/01/24
Re: Problems with whole buffer Custom functions., martin rudalics, 2006/01/23
Re: Problems with whole buffer Custom functions., Richard M. Stallman, 2006/01/24