unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13484: 24.3.50; ESC <f10> is undefined
@ 2013-01-18  4:24 Xue Fuqiao
  2013-01-18  7:52 ` Eli Zaretskii
  2013-01-18 21:51 ` Juri Linkov
  0 siblings, 2 replies; 12+ messages in thread
From: Xue Fuqiao @ 2013-01-18  4:24 UTC (permalink / raw)
  To: 13484


The way to reproduce:
emacs -Q
ESC <f10>

Emacs says that it is undefined, but it should be defined:
toggle-frame-maximized is an interactive compiled Lisp function in
`frame.el'.
It is bound to <M-f10>.




In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.13)
 of 2013-01-18 on Emacs
Bzr revision: 111545 michael.albinus@gmx.de-20130117191240-ay2283067jx0pf3w
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:	Ubuntu 12.10

Configured using:
 `configure --enable-link-time-optimization --enable-gcc-warnings'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<menu> r e - e m - b u g <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)


-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18  4:24 bug#13484: 24.3.50; ESC <f10> is undefined Xue Fuqiao
@ 2013-01-18  7:52 ` Eli Zaretskii
  2013-01-18  8:18   ` Xue Fuqiao
                     ` (2 more replies)
  2013-01-18 21:51 ` Juri Linkov
  1 sibling, 3 replies; 12+ messages in thread
From: Eli Zaretskii @ 2013-01-18  7:52 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: 13484

> Date: Fri, 18 Jan 2013 12:24:28 +0800
> From: Xue Fuqiao <xfq.free@gmail.com>
> 
> 
> The way to reproduce:
> emacs -Q
> ESC <f10>
> 
> Emacs says that it is undefined, but it should be defined:
> toggle-frame-maximized is an interactive compiled Lisp function in
> `frame.el'.
> It is bound to <M-f10>.

But Emacs doesn't think that ESC <f10> is <M-f10>:

  ESC <f10> (translated from <escape> <f10>) is undefined

Which AFAIU is the root cause of the problem, or maybe a feature.





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18  7:52 ` Eli Zaretskii
@ 2013-01-18  8:18   ` Xue Fuqiao
  2013-01-18 10:51   ` Andreas Schwab
  2013-02-06 15:21   ` Xue Fuqiao
  2 siblings, 0 replies; 12+ messages in thread
From: Xue Fuqiao @ 2013-01-18  8:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 13484

On Fri, 18 Jan 2013 09:52:04 +0200
Eli Zaretskii <eliz@gnu.org> wrote:

> But Emacs doesn't think that ESC <f10> is <M-f10>:
> 
>   ESC <f10> (translated from <escape> <f10>) is undefined
> 
> Which AFAIU is the root cause of the problem, or maybe a feature.

Why? In:

(info "(emacs) User Input")
(info "(emacs) Misc Help")
(info "(emacs) Spelling")

and so many nodes in Emacs manuals, <ESC> is described the same as <meta> (except that it is entered as a separate character.)
-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18  7:52 ` Eli Zaretskii
  2013-01-18  8:18   ` Xue Fuqiao
@ 2013-01-18 10:51   ` Andreas Schwab
  2013-01-18 11:06     ` Xue Fuqiao
  2013-02-06 15:21   ` Xue Fuqiao
  2 siblings, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2013-01-18 10:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Xue Fuqiao, 13484

Eli Zaretskii <eliz@gnu.org> writes:

> But Emacs doesn't think that ESC <f10> is <M-f10>:
>
>   ESC <f10> (translated from <escape> <f10>) is undefined
>
> Which AFAIU is the root cause of the problem, or maybe a feature.

bindings.el has this interesting section:

;;; These are dangerous in various situations,
;;; so let's not encourage anyone to use them.
;;;(define-key global-map [C-M-delete] 'backward-kill-sexp)
;;;(define-key global-map [C-M-backspace] 'backward-kill-sexp)
(define-key esc-map [C-delete] 'backward-kill-sexp)
(define-key esc-map [C-backspace] 'backward-kill-sexp)

So it looks like a feature that [M-foo] and ESC [foo] are separate.  All
other places where [M-foo] are bound explicitly bind ESC [foo] as well.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18 10:51   ` Andreas Schwab
@ 2013-01-18 11:06     ` Xue Fuqiao
  2013-01-19  3:10       ` Bastien
  0 siblings, 1 reply; 12+ messages in thread
From: Xue Fuqiao @ 2013-01-18 11:06 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 13484

On Fri, 18 Jan 2013 11:51:03 +0100
Andreas Schwab <schwab@linux-m68k.org> wrote:

> So it looks like a feature that [M-foo] and ESC [foo] are separate.  All
> other places where [M-foo] are bound explicitly bind ESC [foo] as well.

In org-mode, <ESC> <RET> and M-<RET> are different.  This also makes me very confused.
-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18  4:24 bug#13484: 24.3.50; ESC <f10> is undefined Xue Fuqiao
  2013-01-18  7:52 ` Eli Zaretskii
@ 2013-01-18 21:51 ` Juri Linkov
  2013-01-21  2:54   ` Glenn Morris
  1 sibling, 1 reply; 12+ messages in thread
From: Juri Linkov @ 2013-01-18 21:51 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: 13484

> The way to reproduce:
> emacs -Q
> ESC <f10>
>
> Emacs says that it is undefined, but it should be defined:
> toggle-frame-maximized is an interactive compiled Lisp function in
> `frame.el'.
> It is bound to <M-f10>.

It is intended to mimic the Gnome key <M-f10> that has
no ESC <f10> equivalent.  But maybe we should also bind ESC <f10>
to allow the users to use it as an Emacs alternative
to the system key <M-f10> when it is taken by Gnome
(both should do the same but there are still some bugs that
prevent the correct processing of the system key on non-GTK builds).





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-19  3:10       ` Bastien
@ 2013-01-19  3:03         ` Xue Fuqiao
  0 siblings, 0 replies; 12+ messages in thread
From: Xue Fuqiao @ 2013-01-19  3:03 UTC (permalink / raw)
  To: Bastien; +Cc: Andreas Schwab, 13484

On Sat, 19 Jan 2013 04:10:22 +0100
Bastien <bzg@altern.org> wrote:

> For me both keys are bound to the same command.
> 
> How are those keybindings different for you?

Sorry, I can't reproduce it.  But I have ever met `ESC RET is undefined' long ago.  Maybe it's a fixed bug.
-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18 11:06     ` Xue Fuqiao
@ 2013-01-19  3:10       ` Bastien
  2013-01-19  3:03         ` Xue Fuqiao
  0 siblings, 1 reply; 12+ messages in thread
From: Bastien @ 2013-01-19  3:10 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: Andreas Schwab, 13484

Hi,

Xue Fuqiao <xfq.free@gmail.com> writes:

> In org-mode, <ESC> <RET> and M-<RET> are different.

For me both keys are bound to the same command.

How are those keybindings different for you?

-- 
 Bastien





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18 21:51 ` Juri Linkov
@ 2013-01-21  2:54   ` Glenn Morris
  2013-01-21 10:45     ` Juri Linkov
  0 siblings, 1 reply; 12+ messages in thread
From: Glenn Morris @ 2013-01-21  2:54 UTC (permalink / raw)
  To: Juri Linkov; +Cc: Xue Fuqiao, 13484

Juri Linkov wrote:

> It is intended to mimic the Gnome key <M-f10> that has
> no ESC <f10> equivalent.  But maybe we should also bind ESC <f10>
> to allow the users to use it as an Emacs alternative

I think you might as well do that (and close this).





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-21  2:54   ` Glenn Morris
@ 2013-01-21 10:45     ` Juri Linkov
  0 siblings, 0 replies; 12+ messages in thread
From: Juri Linkov @ 2013-01-21 10:45 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Xue Fuqiao, 13484-done

>> It is intended to mimic the Gnome key <M-f10> that has
>> no ESC <f10> equivalent.  But maybe we should also bind ESC <f10>
>> to allow the users to use it as an Emacs alternative
>
> I think you might as well do that (and close this).

Done.





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-01-18  7:52 ` Eli Zaretskii
  2013-01-18  8:18   ` Xue Fuqiao
  2013-01-18 10:51   ` Andreas Schwab
@ 2013-02-06 15:21   ` Xue Fuqiao
  2013-02-06 15:24     ` Xue Fuqiao
  2 siblings, 1 reply; 12+ messages in thread
From: Xue Fuqiao @ 2013-02-06 15:21 UTC (permalink / raw)
  To: 13484

In (info "(elisp) Format of Keymaps"):

   Keymaps do not directly record bindings for the meta characters.
Instead, meta characters are regarded for purposes of key lookup as
sequences of two characters, the first of which is <ESC> (or whatever
is currently the value of `meta-prefix-char').  Thus, the key `M-a' is
internally represented as `<ESC> a', and its global binding is found at
the slot for `a' in `esc-map' (*note Prefix Keys::).

So is there a bug in the GNU Emacs Lisp manual?

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao





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

* bug#13484: 24.3.50; ESC <f10> is undefined
  2013-02-06 15:21   ` Xue Fuqiao
@ 2013-02-06 15:24     ` Xue Fuqiao
  0 siblings, 0 replies; 12+ messages in thread
From: Xue Fuqiao @ 2013-02-06 15:24 UTC (permalink / raw)
  To: 13484

On Wed, 6 Feb 2013 23:21:53 +0800
Xue Fuqiao <xfq.free@gmail.com> wrote:

> In (info "(elisp) Format of Keymaps"):
> 
>    Keymaps do not directly record bindings for the meta characters.
> Instead, meta characters are regarded for purposes of key lookup as
> sequences of two characters, the first of which is <ESC> (or whatever
> is currently the value of `meta-prefix-char').  Thus, the key `M-a' is
> internally represented as `<ESC> a', and its global binding is found at
> the slot for `a' in `esc-map' (*note Prefix Keys::).
> 
> So is there a bug in the GNU Emacs Lisp manual?

Sorry, I ignored the next paragraph, which is:

   This conversion applies only to characters, not to function keys or
other input events; thus, `M-<end>' has nothing to do with `<ESC>
<end>'.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao





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

end of thread, other threads:[~2013-02-06 15:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18  4:24 bug#13484: 24.3.50; ESC <f10> is undefined Xue Fuqiao
2013-01-18  7:52 ` Eli Zaretskii
2013-01-18  8:18   ` Xue Fuqiao
2013-01-18 10:51   ` Andreas Schwab
2013-01-18 11:06     ` Xue Fuqiao
2013-01-19  3:10       ` Bastien
2013-01-19  3:03         ` Xue Fuqiao
2013-02-06 15:21   ` Xue Fuqiao
2013-02-06 15:24     ` Xue Fuqiao
2013-01-18 21:51 ` Juri Linkov
2013-01-21  2:54   ` Glenn Morris
2013-01-21 10:45     ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).