From: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: [Bug] "You can't edit this part of the Custom buffer"
Date: Thu, 27 Jul 2006 18:22:14 -0400 [thread overview]
Message-ID: <87vepiy9gp.fsf@stupidchicken.com> (raw)
In-Reply-To: <EIENLHALHGIMHGDOLMIMEEBDCKAA.drew.adams@oracle.com> (Drew Adams's message of "Thu, 27 Jul 2006 08:21:32 -0700")
"Drew Adams" <drew.adams@oracle.com> writes:
> Uh, are you sure this is the right thing to do? IIUC, RMS just added
> custom-no-edit, and bound it, to raise an error when you try to edit
> a non-editable part of the buffer.
>
> Simply removing the binding seems pointless. Perhaps the fix to the
> new problem should be to better determine which are the non-editable
> parts of the buffer, and make sure the error is only raised there?
That was an incorrect fix. `widget-keymap' defines "\C-m" to
'widget-field-activate, which is supposed to find the widget under
point and activate it. It is incorrect to bind "\C-m" to
`custom-no-edit' in `custom-mode', which inherits from
`widget-keymap'.
Why was this change made in the first place? It seems
pointless---Custom buffers are read-only, so self-insertion commands
do nothing anyway; we don't have to bind them to a 'custom-no-edit'
command that does nothing but raise an error.
> > In this build from CVS:
> >
> > GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600) of 2006-07-26 on I9300
> >
> > Trying to use the keyboard (e.g. `Ret') to do customization (in a
> > *Customize Apropos* buffer, for example) fails with the error in the
> > title line of this post.
>
> 2006-07-27 Johan Bockgård <bojohan@dd.chalmers.se>
>
> * cus-edit.el (custom-mode-map): Don't bind RET to custom-no-edit.
>
> --- cus-edit.el 18 Jul 2006 01:13:54 +0200 1.297
> +++ cus-edit.el 27 Jul 2006 15:30:20 +0200
> @@ -4432,7 +4432,6 @@
> (set-keymap-parent map widget-keymap)
> (define-key map [remap self-insert-command]
> 'custom-no-edit)
> - (define-key map "\^m" 'custom-no-edit)
> (define-key map " " 'scroll-up)
> (define-key map "\177" 'scroll-down)
> (define-key map "\C-c\C-c" 'Custom-set)
next prev parent reply other threads:[~2006-07-27 22:22 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-27 13:12 [Bug] "You can't edit this part of the Custom buffer" David Abrahams
2006-07-27 13:38 ` Johan Bockgård
2006-07-27 14:06 ` David Abrahams
2006-07-27 15:21 ` Drew Adams
2006-07-27 22:22 ` Chong Yidong [this message]
2006-07-27 22:35 ` Drew Adams
2006-07-27 23:17 ` Chong Yidong
2006-07-28 3:03 ` Drew Adams
2006-07-28 13:32 ` Chong Yidong
2006-07-28 13:54 ` Drew Adams
2006-07-28 18:18 ` Chong Yidong
2006-07-28 18:29 ` Drew Adams
2006-07-28 19:01 ` Chong Yidong
2006-07-28 13:34 ` Richard Stallman
2006-07-28 18:14 ` Chong Yidong
2006-07-29 2:59 ` Richard Stallman
2006-07-27 21:49 ` Richard Stallman
2006-07-27 22:35 ` David Abrahams
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=87vepiy9gp.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/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.