all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-h m produces conflicting key binding descriptions
@ 2003-05-01 19:16 Alan Mackenzie
  2003-05-03 13:02 ` Ehud Karni
  2003-05-04  1:13 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Mackenzie @ 2003-05-01 19:16 UTC (permalink / raw)


Emacs 21.1

In (the upcoming) awk-mode, if I do C-h m, the mode's key bindings
contain these four lines:

<C-M-e>         c-end-of-defun
<C-M-a>         c-beginning-of-defun

ESC C-e         c-awk-end-of-defun
ESC C-a         c-awk-beginning-of-defun

The first two are spurious, and I would not have expected to see them.
They are overshadowed by the last two.

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: C-h m produces conflicting key binding descriptions
  2003-05-01 19:16 C-h m produces conflicting key binding descriptions Alan Mackenzie
@ 2003-05-03 13:02 ` Ehud Karni
  2003-05-03 15:55   ` Ami Fischman
  2003-05-04  1:13 ` Stefan Monnier
  1 sibling, 1 reply; 5+ messages in thread
From: Ehud Karni @ 2003-05-03 13:02 UTC (permalink / raw)
  Cc: gnu-emacs-bug

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1 May 2003 21:16:11 +0200, Alan Mackenzie <none@example.invalid> wrote:
> 
> In (the upcoming) awk-mode, if I do C-h m, the mode's key bindings
> contain these four lines:
> 
> <C-M-e>         c-end-of-defun
> <C-M-a>         c-beginning-of-defun
> 
> ESC C-e         c-awk-end-of-defun
> ESC C-a         c-awk-beginning-of-defun
> 
> The first two are spurious, and I would not have expected to see them.
> They are overshadowed by the last two.

They are redundant only if M- == ESC, Normally it is, but it can be
changed by setting the `meta-prefix-char' (which I set to nil in my
.emacs). In my case M-c is different from ESC c.

Ehud.


- -- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE+s73yLFvTvpjqOY0RAv1fAJ9hbizdBmq5X2fcDaUTU/8mFGQziQCfTQvB
iL2/vc1dDC8uGyXncRrnFn4=
=xpwl
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: C-h m produces conflicting key binding descriptions
  2003-05-03 13:02 ` Ehud Karni
@ 2003-05-03 15:55   ` Ami Fischman
  2003-05-03 19:12     ` Ehud Karni
  0 siblings, 1 reply; 5+ messages in thread
From: Ami Fischman @ 2003-05-03 15:55 UTC (permalink / raw)


"Ehud Karni" <ehud@unix.mvs.co.il> writes:

[...]

> They are redundant only if M- == ESC, Normally it is, but it can be
> changed by setting the `meta-prefix-char' (which I set to nil in my
> .emacs). In my case M-c is different from ESC c.

Out of curiosity, what is the meaning of a nil meta-prefix-char?  
Is it just that only ESC then gives meta- meaning (and not alt or any other
key)?  The docstring for the variable doesn't mention this explicitly.

Cheers,
-- 
  Ami Fischman
  usenet@fischman.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: C-h m produces conflicting key binding descriptions
  2003-05-03 15:55   ` Ami Fischman
@ 2003-05-03 19:12     ` Ehud Karni
  0 siblings, 0 replies; 5+ messages in thread
From: Ehud Karni @ 2003-05-03 19:12 UTC (permalink / raw)
  Cc: bug-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 03 May 2003 08:55:18 -0700, Ami Fischman <usenet@fischman.org> wrote:
> 
> Out of curiosity, what is the meaning of a nil meta-prefix-char?  
> Is it just that only ESC then gives meta- meaning (and not alt or any other
> key)?  The docstring for the variable doesn't mention this explicitly.

When I set meta-prefix-char to nil and do (global-set-key [M-foo] 'bar)
than the global map shows <nil> foo --> bar. The ONLY key combination 
that will execute this `bar' command is the META key + foo (together).

Ehud.


- -- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE+tBSMLFvTvpjqOY0RApxjAJwOeECEzmXe/QgC+KpedlRRXZbZ0gCeIO0+
Ey3AssBgPVhVHg+fxBKSjiE=
=zXLa
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: C-h m produces conflicting key binding descriptions
  2003-05-01 19:16 C-h m produces conflicting key binding descriptions Alan Mackenzie
  2003-05-03 13:02 ` Ehud Karni
@ 2003-05-04  1:13 ` Stefan Monnier
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2003-05-04  1:13 UTC (permalink / raw)


>>>>> "Alan" == Alan Mackenzie <none@example.invalid> writes:
> In (the upcoming) awk-mode, if I do C-h m, the mode's key bindings
> contain these four lines:

> <C-M-e>         c-end-of-defun
> <C-M-a>         c-beginning-of-defun

> ESC C-e         c-awk-end-of-defun
> ESC C-a         c-awk-beginning-of-defun

> The first two are spurious, and I would not have expected to see them.
> They are overshadowed by the last two.

In my version of cc-mode, c-end-of-defun is not bound to anything,
and I don't have your awk-mode, so could you show us the elisp code
used to bind those commands ?  I.e. I think showing us the corresponding
`define-key' calls should be a good first step.


        Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-04  1:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-01 19:16 C-h m produces conflicting key binding descriptions Alan Mackenzie
2003-05-03 13:02 ` Ehud Karni
2003-05-03 15:55   ` Ami Fischman
2003-05-03 19:12     ` Ehud Karni
2003-05-04  1:13 ` Stefan Monnier

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.