unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Esc key not Meta key in electric buffer
@ 2011-03-06 18:46 Alan
  2011-03-11 18:10 ` Alan
  0 siblings, 1 reply; 3+ messages in thread
From: Alan @ 2011-03-06 18:46 UTC (permalink / raw)
  To: help-gnu-emacs

Perhaps someone can explain the observation that the Esc key on my
Dell laptop does not seem to function as the Meta key in

GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1

when in a buffer produced by the command

electric-buffer-list

In "ebuff-menu.el" I find the following:

    (define-key map "\e>" 'end-of-buffer)
    (define-key map "\e<" 'beginning-of-buffer)

By using instead C-[

(Control, Left bracket)

I can get "describe-key" to work with C-[ > while in the electric
buffer and it starts out saying

-----------------------------------------------------------------

M-> runs the command end-of-buffer, which is an interactive compiled
Lisp function in `simple.el'.

It is bound to M->, <C-end>, <menu-bar> <edit> <goto> <end-of-buf>.

-----------------------------------------------------------------

In a buffer that isn't an electric buffer, "describe-key-briefly"
produces the following (taken from the *Messages* buffer) for the key
combination Esc->

M-> (translated from <escape> >) runs the command end-of-buffer

In the electric buffer, "describe-key-briefly" for Esc-> produces the
following (taken from the *Messages* buffer):

<escape> > is undefined

In the electic buffer, "describe-key-briefly" for C-[ > produces the
following (taken from the *Messages* buffer):

M-> runs the command end-of-buffer



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

* Re: Esc key not Meta key in electric buffer
  2011-03-06 18:46 Esc key not Meta key in electric buffer Alan
@ 2011-03-11 18:10 ` Alan
  2011-03-12  2:50   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Alan @ 2011-03-11 18:10 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 6, 12:46 pm, Alan <wehm...@fnal.gov> wrote:
> Perhaps someone can explain the observation that the Esc key on my
> Dell laptop does not seem to function as the Meta key in
>
> GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1
>
> when in a buffer produced by the command
>
> electric-buffer-list
>
> In "ebuff-menu.el" I find the following:
>
>     (define-key map "\e>" 'end-of-buffer)
>     (define-key map "\e<" 'beginning-of-buffer)
>
> By using instead C-[
>
> (Control, Left bracket)
>
> I can get "describe-key" to work with C-[ > while in the electric
> buffer and it starts out saying
>
> -----------------------------------------------------------------
>
> M-> runs the command end-of-buffer, which is an interactive compiled
> Lisp function in `simple.el'.
>
> It is bound to M->, <C-end>, <menu-bar> <edit> <goto> <end-of-buf>.
>
> -----------------------------------------------------------------
>
> In a buffer that isn't an electric buffer, "describe-key-briefly"
> produces the following (taken from the *Messages* buffer) for the key
> combination Esc->
>
> M-> (translated from <escape> >) runs the command end-of-buffer
>
> In the electric buffer, "describe-key-briefly" for Esc-> produces the
> following (taken from the *Messages* buffer):
>
> <escape> > is undefined
>
> In the electic buffer, "describe-key-briefly" for C-[ > produces the
> following (taken from the *Messages* buffer):
>
> M-> runs the command end-of-buffer

The problem noted is cured by removing from the definition of
"electric-buffer-menu-mode-map" in "ebuff-menu.el" the line

  (define-key map [escape escape escape] 'Electric-buffer-menu-quit)

This line is preceded by the line

  (define-key map "\e\e\e" 'Electric-buffer-menu-quit)

which has the same effect anyway.



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

* Re: Esc key not Meta key in electric buffer
  2011-03-11 18:10 ` Alan
@ 2011-03-12  2:50   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2011-03-12  2:50 UTC (permalink / raw)
  To: help-gnu-emacs

> The problem noted is cured by removing from the definition of
> "electric-buffer-menu-mode-map" in "ebuff-menu.el" the line

>   (define-key map [escape escape escape] 'Electric-buffer-menu-quit)

Good catch, thanks.  I've removed this redundant binding for the next
Emacs release.


        Stefan


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

end of thread, other threads:[~2011-03-12  2:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-06 18:46 Esc key not Meta key in electric buffer Alan
2011-03-11 18:10 ` Alan
2011-03-12  2:50   ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).