From: Juri Linkov <juri@jurta.org>
Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org
Subject: Re: Problems with whole buffer Custom functions.
Date: Sun, 22 Jan 2006 02:45:17 +0200 [thread overview]
Message-ID: <877j8tcsyt.fsf@jurta.org> (raw)
In-Reply-To: <E1Ezdq4-0008Jv-Bz@fencepost.gnu.org> (Richard M. Stallman's message of "Thu, 19 Jan 2006 12:44:48 -0500")
> 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/
next prev parent reply other threads:[~2006-01-22 0:45 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 3:32 Problems with whole buffer Custom functions Luc Teirlinck
2006-01-17 1:27 ` Juri Linkov
2006-01-17 4:13 ` Luc Teirlinck
2006-01-17 21:54 ` Juri Linkov
2006-01-18 0:29 ` Kevin Rodgers
2006-01-23 0:10 ` Richard M. Stallman
2006-01-22 0:45 ` Juri Linkov
2006-01-22 1:46 ` Luc Teirlinck
2006-01-23 1:42 ` Juri Linkov
2006-01-24 16:46 ` Richard M. Stallman
2006-01-24 21:45 ` Juri Linkov
2006-01-24 23:11 ` Lennart Borgman
2006-01-25 7:55 ` Juri Linkov
2006-01-25 15:45 ` Richard M. Stallman
2006-01-22 1:55 ` Luc Teirlinck
2006-01-23 1:43 ` Juri Linkov
2006-01-22 0:45 ` Juri Linkov
2006-01-22 17:44 ` Richard M. Stallman
2006-01-19 17:44 ` Richard M. Stallman
2006-01-22 0:45 ` Juri Linkov [this message]
2006-01-22 17:44 ` Richard M. Stallman
2006-01-22 21:28 ` Drew Adams
2006-01-23 1:47 ` Juri Linkov
2006-01-23 2:58 ` Drew Adams
2006-01-23 6:17 ` Juri Linkov
2006-01-24 16:47 ` Richard M. Stallman
2006-01-23 1:47 ` Juri Linkov
2006-01-24 16:46 ` Richard M. Stallman
2006-01-23 18:04 ` martin rudalics
2006-01-25 3:28 ` Richard M. Stallman
2006-01-22 17:44 ` Richard M. Stallman
-- strict thread matches above, loose matches on Subject: below --
2006-01-25 8:58 LENNART BORGMAN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877j8tcsyt.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=teirllm@dms.auburn.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.