From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 08 12:41:23 2014 Received: (at submit) by debbugs.gnu.org; 8 Nov 2014 17:41:23 +0000 Received: from localhost ([127.0.0.1]:53898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnA0k-0000tV-Nl for submit@debbugs.gnu.org; Sat, 08 Nov 2014 12:41:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59941) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xn1Wc-00007p-0s for submit@debbugs.gnu.org; Sat, 08 Nov 2014 03:37:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xn1WS-0005bG-Gd for submit@debbugs.gnu.org; Sat, 08 Nov 2014 03:37:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn1WS-0005b8-DD for submit@debbugs.gnu.org; Sat, 08 Nov 2014 03:37:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn1WJ-0003c9-92 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 03:37:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xn1WA-0005N5-5s for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 03:37:19 -0500 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:62183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn1W9-0005MG-Ql for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 03:37:10 -0500 Received: by mail-pa0-f48.google.com with SMTP id ey11so5022762pad.21 for ; Sat, 08 Nov 2014 00:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=LXeqBu2YgGbUguCCaIwj33wOsRkmhsKrC2IdDugFfIk=; b=RebmKOa9oPl9NahWw/AnhGKstQLYLS/AmTlECpreQWtFOeNeFbMzW9+I4tVGsh3N1V PcuxIweEpMFgW6phEAHLXdqUyUBcJ9YhKB8zY12RDBI3b7PZiIKlGrcxWwWbUX9MtGry RpGMnrQuj55tfX3RBR+XZIAN48BVs3SFqFImzw9KLLetjdlEzkjI1IAKQ8hIbxmh1Md3 Kj4KMADe+sqDw4udD6aZmYAy7tXuyaKtnF/qmRBIabHvt2GU7LSrwXFI3Ktjm/6mXqvB 2c40SToeHWbj4nfbSOMYP9gnSglhGQX8i02vewePp7l82mJ+5XMhke2OWN7QpCHcNMYT qMdQ== X-Received: by 10.70.102.1 with SMTP id fk1mr17855398pdb.97.1415435827886; Sat, 08 Nov 2014 00:37:07 -0800 (PST) Received: from [192.168.1.166] ([106.51.136.25]) by mx.google.com with ESMTPSA id wv1sm10907736pab.37.2014.11.08.00.37.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Nov 2014 00:37:07 -0800 (PST) Message-ID: <545DD62F.3000106@gmail.com> Date: Sat, 08 Nov 2014 14:07:03 +0530 From: "L. Guruprasad" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 08 Nov 2014 12:41:16 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) Hi, When I press Alt-g as part of executing the shortcut M-g g, when running emacs within the terminal using the -nw flag, it shows up in the minibuffer as "Esc g-". But when I run the same in the GUI Emacs, it shows up as "M-g". This can be misleading and confusing to users who do not know Esc and Meta keys are equivalent. Further, when I press Alt-x, it shows up as M-x in both the scenarios. So it doesn't look like Emacs cannot differentiate between the two when running inside the terminal without a GUI. I vaguely remember seeing M-g in the terminal on pressing Alt-g some time back, maybe in an older emacs version. But not sure. In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.3) of 2014-10-26 on trouble, modified by Debian System Description: Debian GNU/Linux unstable (sid) Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_IN.utf8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: ido-everywhere: t yas-global-mode: t yas-minor-mode: t global-linum-mode: t linum-mode: t tooltip-mode: t electric-indent-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 1 ; 3 8 0 1 ; 0 c ESC x r e p o r t - e RET C-g C-g ESC x g DEL DEL ESC x C-g ESC x r e RET C-g ESC g C-g ESC x r e p RET Recent messages: [yas] Loading for `emacs-lisp-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /home/guruprasad/.emacs.d/elpa/yasnippet-20140729.1240/snippets/emacs-lisp-mode) (quote emacs-lisp-mode)))! [yas] Loading compiled snippets from /home/guruprasad/.emacs.d/elpa/yasnippet-20140729.1240/snippets/emacs-lisp-mode [yas] Loading for `prog-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /home/guruprasad/.emacs.d/elpa/yasnippet-20140729.1240/snippets/prog-mode) (quote prog-mode)))! [yas] Loading compiled snippets from /home/guruprasad/.emacs.d/elpa/yasnippet-20140729.1240/snippets/prog-mode Loading /home/guruprasad/.emacs.d/elpa/yasnippet-20140729.1240/snippets/prog-mode/.yas-setup...done For information about GNU Emacs and the GNU system, type C-h C-a. Quit [2 times] delete-backward-char: Text is read-only Quit [3 times] M-g C-g is undefined Load-path shadows: /usr/share/emacs/site-lisp/golang-mode/go-mode hides /usr/share/emacs/24.4/site-lisp/golang-mode/go-mode /usr/share/emacs/site-lisp/golang-mode/go-mode-load hides /usr/share/emacs/24.4/site-lisp/golang-mode/go-mode-load /usr/share/emacs/24.4/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.4/lisp/textmodes/ispell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.4/lisp/textmodes/rst /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.4/lisp/textmodes/flyspell Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils smex xterm time-date info magit-autoloads git-rebase-mode-autoloads git-commit-mode-autoloads cl-macs pkg-info-autoloads epl-autoloads pungi-autoloads jedi-autoloads auto-complete-autoloads popup-autoloads epc-autoloads ctable-autoloads concurrent-autoloads python-environment-autoloads deferred-autoloads smex-autoloads yasnippet-autoloads edmacro kmacro ido yasnippet help-mode easymenu cl gv cl-loaddefs cl-lib package epg-config linum go-mode-load tooltip electric uniquify 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 prog-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 nadvice 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 gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 144727 5953) (symbols 48 22691 0) (miscs 40 44 90) (strings 32 28993 4270) (string-bytes 1 746905) (vectors 16 14075) (vector-slots 8 459565 1712) (floats 8 403 291) (intervals 56 252 1) (buffers 960 12) (heap 1024 24304 809)) From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 05 13:14:36 2016 Received: (at 18996) by debbugs.gnu.org; 5 Mar 2016 18:14:36 +0000 Received: from localhost ([127.0.0.1]:35770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acGiq-0000aq-0W for submit@debbugs.gnu.org; Sat, 05 Mar 2016 13:14:36 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:38551) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acGin-0000ah-M0 for 18996@debbugs.gnu.org; Sat, 05 Mar 2016 13:14:33 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 30C179D5CA5; Sat, 5 Mar 2016 19:14:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k5m6SLwUjqxE; Sat, 5 Mar 2016 19:14:18 +0100 (CET) Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id DEC409D5CA2; Sat, 5 Mar 2016 19:14:17 +0100 (CET) From: Marcin Borkowski To: "L. Guruprasad" Subject: Re: bug#18996: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g References: <545DD62F.3000106@gmail.com> Date: Sat, 05 Mar 2016 19:14:17 +0100 In-Reply-To: <545DD62F.3000106@gmail.com> (L. Guruprasad's message of "Sat, 08 Nov 2014 14:07:03 +0530") Message-ID: <87vb50ztae.fsf@mbork.pl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18996 Cc: 18996@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2014-11-08, at 14:07, "L. Guruprasad" wrote: > Hi, > > When I press Alt-g as part of executing the shortcut M-g g, when running > emacs within the terminal using the -nw flag, it shows up in the > minibuffer as "Esc g-". But when I run the same in the GUI Emacs, it > shows up as "M-g". This can be misleading and confusing to users who do > not know Esc and Meta keys are equivalent. Confirmed on GNU Emacs 25.1.50.6 (commit ac9a931). > Further, when I press Alt-x, it shows up as M-x in both the > scenarios. So it doesn't look like Emacs cannot differentiate between > the two when running inside the terminal without a GUI. This is not true: M-x is bound (by default) to `execute-extended-command', which calls `read-extended-command', which has at one point the literal string "M-x ", which is fed (via a `concat', which shows prefix arguments, if any) directly to `completing-read'. > I vaguely remember seeing M-g in the terminal on pressing Alt-g some > time back, maybe in an older emacs version. But not sure. No idea, though I doubt. All in all, I'll assign this a "wishlist" level - I agree with the OP that it would be nice to have this solved, but I don't think this would really confuse anyone. (IMHO, if someone uses Emacs in a terminal, s?he probably is advanced enough to know that M-g and Esc g are equivalent.) -- Marcin Borkowski From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 05 13:14:07 2016 Received: (at control) by debbugs.gnu.org; 5 Mar 2016 18:14:08 +0000 Received: from localhost ([127.0.0.1]:35767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acGiN-0000a6-Qm for submit@debbugs.gnu.org; Sat, 05 Mar 2016 13:14:07 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:38539) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acGiL-0000Zy-Gg for control@debbugs.gnu.org; Sat, 05 Mar 2016 13:14:06 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 95DFF9D5CA2 for ; Sat, 5 Mar 2016 19:14:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MY-i9knNvoI8 for ; Sat, 5 Mar 2016 19:13:57 +0100 (CET) Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id D457E9D5CA0 for ; Sat, 5 Mar 2016 19:13:56 +0100 (CET) User-agent: mu4e 0.9.13; emacs 25.1.50.6 From: Marcin Borkowski To: control@debbugs.gnu.org Subject: Change 18996's level to wishlist Date: Sat, 05 Mar 2016 19:13:53 +0100 Message-ID: <87wppgztb2.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) severity 18996 wishlist -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 05 13:52:28 2016 Received: (at 18996) by debbugs.gnu.org; 5 Mar 2016 18:52:29 +0000 Received: from localhost ([127.0.0.1]:35788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acHJU-0003ND-Mx for submit@debbugs.gnu.org; Sat, 05 Mar 2016 13:52:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:32993) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acHJT-0003Mz-00 for 18996@debbugs.gnu.org; Sat, 05 Mar 2016 13:52:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acHJJ-0003sg-8J for 18996@debbugs.gnu.org; Sat, 05 Mar 2016 13:52:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acHJJ-0003sc-53; Sat, 05 Mar 2016 13:52:17 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2021 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1acHJI-0007J3-8I; Sat, 05 Mar 2016 13:52:16 -0500 Date: Sat, 05 Mar 2016 20:52:14 +0200 Message-Id: <83y49wwye9.fsf@gnu.org> From: Eli Zaretskii To: Marcin Borkowski In-reply-to: <87vb50ztae.fsf@mbork.pl> (message from Marcin Borkowski on Sat, 05 Mar 2016 19:14:17 +0100) Subject: Re: bug#18996: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g References: <545DD62F.3000106@gmail.com> <87vb50ztae.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18996 Cc: 18996@debbugs.gnu.org, lgp171188@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Marcin Borkowski > Date: Sat, 05 Mar 2016 19:14:17 +0100 > Cc: 18996@debbugs.gnu.org > > > When I press Alt-g as part of executing the shortcut M-g g, when running > > emacs within the terminal using the -nw flag, it shows up in the > > minibuffer as "Esc g-". But when I run the same in the GUI Emacs, it > > shows up as "M-g". This can be misleading and confusing to users who do > > not know Esc and Meta keys are equivalent. > > Confirmed on GNU Emacs 25.1.50.6 (commit ac9a931). > > > Further, when I press Alt-x, it shows up as M-x in both the > > scenarios. So it doesn't look like Emacs cannot differentiate between > > the two when running inside the terminal without a GUI. > > This is not true: M-x is bound (by default) to > `execute-extended-command', which calls `read-extended-command', which > has at one point the literal string "M-x ", which is fed (via > a `concat', which shows prefix arguments, if any) directly to > `completing-read'. > > > I vaguely remember seeing M-g in the terminal on pressing Alt-g some > > time back, maybe in an older emacs version. But not sure. > > No idea, though I doubt. > > All in all, I'll assign this a "wishlist" level - I agree with the OP > that it would be nice to have this solved To have what solved? If you type "C-h l" after M-x, what do you see? From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 11:48:02 2016 Received: (at 18996) by debbugs.gnu.org; 8 Mar 2016 16:48:02 +0000 Received: from localhost ([127.0.0.1]:39934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adKni-00035k-E7 for submit@debbugs.gnu.org; Tue, 08 Mar 2016 11:48:02 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:56615) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adKng-00035L-QL for 18996@debbugs.gnu.org; Tue, 08 Mar 2016 11:48:01 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 820FC9E88CF; Tue, 8 Mar 2016 17:47:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M5T8Xx56Rtda; Tue, 8 Mar 2016 17:47:52 +0100 (CET) Received: from localhost (unknown [IPv6:2001:808:114:6:a288:b4ff:fe90:5e24]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 65EE99E88CA; Tue, 8 Mar 2016 17:47:52 +0100 (CET) References: <545DD62F.3000106@gmail.com> <87vb50ztae.fsf@mbork.pl> <83y49wwye9.fsf@gnu.org> User-agent: mu4e 0.9.13; emacs 25.1.50.6 From: Marcin Borkowski To: Eli Zaretskii Subject: Re: bug#18996: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g In-reply-to: <83y49wwye9.fsf@gnu.org> Date: Tue, 08 Mar 2016 17:47:48 +0100 Message-ID: <87mvq8ykzv.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18996 Cc: 18996@debbugs.gnu.org, lgp171188@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2016-03-05, at 19:52, Eli Zaretskii wrote: >> From: Marcin Borkowski >> Date: Sat, 05 Mar 2016 19:14:17 +0100 >> Cc: 18996@debbugs.gnu.org >> >> > When I press Alt-g as part of executing the shortcut M-g g, when running >> > emacs within the terminal using the -nw flag, it shows up in the >> > minibuffer as "Esc g-". But when I run the same in the GUI Emacs, it >> > shows up as "M-g". This can be misleading and confusing to users who do >> > not know Esc and Meta keys are equivalent. >> >> Confirmed on GNU Emacs 25.1.50.6 (commit ac9a931). >> >> > Further, when I press Alt-x, it shows up as M-x in both the >> > scenarios. So it doesn't look like Emacs cannot differentiate between >> > the two when running inside the terminal without a GUI. >> >> This is not true: M-x is bound (by default) to >> `execute-extended-command', which calls `read-extended-command', which >> has at one point the literal string "M-x ", which is fed (via >> a `concat', which shows prefix arguments, if any) directly to >> `completing-read'. >> >> > I vaguely remember seeing M-g in the terminal on pressing Alt-g some >> > time back, maybe in an older emacs version. But not sure. >> >> No idea, though I doubt. >> >> All in all, I'll assign this a "wishlist" level - I agree with the OP >> that it would be nice to have this solved > > To have what solved? > > If you type "C-h l" after M-x, what do you see? AFAIU, OP wants to see "M-g-" and not "ESC g-" after pressing M-g in an Emacs session in a terminal. This looks reasonable to me, though definitely not a high priority. If it's not possible/desirable, it would be better to close this as "wontfix", but I do not know that. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 12:10:55 2016 Received: (at 18996) by debbugs.gnu.org; 8 Mar 2016 17:10:55 +0000 Received: from localhost ([127.0.0.1]:39940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adL9r-0003cR-EM for submit@debbugs.gnu.org; Tue, 08 Mar 2016 12:10:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41002) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adL9p-0003cF-Jk for 18996@debbugs.gnu.org; Tue, 08 Mar 2016 12:10:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adL9f-0005sR-Nu for 18996@debbugs.gnu.org; Tue, 08 Mar 2016 12:10:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adL9f-0005sL-DQ; Tue, 08 Mar 2016 12:10:43 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2920 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1adL9e-0003kH-Mx; Tue, 08 Mar 2016 12:10:43 -0500 Date: Tue, 08 Mar 2016 19:10:51 +0200 Message-Id: <83pov4rj38.fsf@gnu.org> From: Eli Zaretskii To: Marcin Borkowski In-reply-to: <87mvq8ykzv.fsf@mbork.pl> (message from Marcin Borkowski on Tue, 08 Mar 2016 17:47:48 +0100) Subject: Re: bug#18996: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g References: <545DD62F.3000106@gmail.com> <87vb50ztae.fsf@mbork.pl> <83y49wwye9.fsf@gnu.org> <87mvq8ykzv.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18996 Cc: 18996@debbugs.gnu.org, lgp171188@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Marcin Borkowski > Cc: lgp171188@gmail.com, 18996@debbugs.gnu.org > Date: Tue, 08 Mar 2016 17:47:48 +0100 > > >> > Further, when I press Alt-x, it shows up as M-x in both the > >> > scenarios. So it doesn't look like Emacs cannot differentiate between > >> > the two when running inside the terminal without a GUI. > >> > >> This is not true: M-x is bound (by default) to > >> `execute-extended-command', which calls `read-extended-command', which > >> has at one point the literal string "M-x ", which is fed (via > >> a `concat', which shows prefix arguments, if any) directly to > >> `completing-read'. > >> > >> > I vaguely remember seeing M-g in the terminal on pressing Alt-g some > >> > time back, maybe in an older emacs version. But not sure. > >> > >> No idea, though I doubt. > >> > >> All in all, I'll assign this a "wishlist" level - I agree with the OP > >> that it would be nice to have this solved > > > > To have what solved? > > > > If you type "C-h l" after M-x, what do you see? > > AFAIU, OP wants to see "M-g-" and not "ESC g-" after pressing M-g in an > Emacs session in a terminal. My point was that you will see "ESC g" in the "C-h l" output. Which means Emacs _doesn't_ know how to differentiate between ESC-x and M-x, on the level that shows the prefix key prompts, such as M-g-. What happens here is that the command bound to "ESC x" deliberately displays "M-x " in the echo area. IOW, "M-x" is _not_ the key echo, it's a message displayed by a command. In sum, Emacs doesn't have a way to distinguish between M-c and ESC c, for any character c, on a TTY. We can only do that on a GUI frame. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 12:35:35 2016 Received: (at 18996) by debbugs.gnu.org; 8 Mar 2016 17:35:35 +0000 Received: from localhost ([127.0.0.1]:39946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adLXj-0004Cj-JX for submit@debbugs.gnu.org; Tue, 08 Mar 2016 12:35:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47570) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adLXi-0004CX-5g for 18996@debbugs.gnu.org; Tue, 08 Mar 2016 12:35:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adLXY-0004Af-7D for 18996@debbugs.gnu.org; Tue, 08 Mar 2016 12:35:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adLXS-00048n-T4; Tue, 08 Mar 2016 12:35:18 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2926 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1adLXS-0003Tw-43; Tue, 08 Mar 2016 12:35:18 -0500 Date: Tue, 08 Mar 2016 19:35:27 +0200 Message-Id: <83mvq8rhy8.fsf@gnu.org> From: Eli Zaretskii To: mbork@mbork.pl In-reply-to: <83pov4rj38.fsf@gnu.org> (message from Eli Zaretskii on Tue, 08 Mar 2016 19:10:51 +0200) Subject: Re: bug#18996: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g References: <545DD62F.3000106@gmail.com> <87vb50ztae.fsf@mbork.pl> <83y49wwye9.fsf@gnu.org> <87mvq8ykzv.fsf@mbork.pl> <83pov4rj38.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18996 Cc: 18996@debbugs.gnu.org, lgp171188@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Tue, 08 Mar 2016 19:10:51 +0200 > From: Eli Zaretskii > Cc: 18996@debbugs.gnu.org, lgp171188@gmail.com > > My point was that you will see "ESC g" in the "C-h l" output. Sorry, I meant to say "ESC g" and "ESC x", not just the former. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 09 01:01:23 2016 Received: (at control) by debbugs.gnu.org; 9 Mar 2016 06:01:23 +0000 Received: from localhost ([127.0.0.1]:40392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adXBT-000810-14 for submit@debbugs.gnu.org; Wed, 09 Mar 2016 01:01:23 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:46348) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adXBQ-00080s-PG for control@debbugs.gnu.org; Wed, 09 Mar 2016 01:01:21 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 0D35F9EC694 for ; Wed, 9 Mar 2016 07:01:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ofBd-U4W8Rv6 for ; Wed, 9 Mar 2016 07:01:13 +0100 (CET) Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 84F309EC692 for ; Wed, 9 Mar 2016 07:01:13 +0100 (CET) User-agent: mu4e 0.9.13; emacs 25.1.50.6 From: Marcin Borkowski To: GNU bug tracker automated control server Subject: tags 18996 wontfix Date: Wed, 09 Mar 2016 07:01:08 +0100 Message-ID: <87io0wxk9n.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 18996 wontfix -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 09 01:01:31 2016 Received: (at 18996-done) by debbugs.gnu.org; 9 Mar 2016 06:01:31 +0000 Received: from localhost ([127.0.0.1]:40395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adXBb-00081M-6M for submit@debbugs.gnu.org; Wed, 09 Mar 2016 01:01:31 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:46355) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adXBa-00081E-1X for 18996-done@debbugs.gnu.org; Wed, 09 Mar 2016 01:01:30 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 7ADC79EC69C; Wed, 9 Mar 2016 07:01:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DJ++g6yS3ecp; Wed, 9 Mar 2016 07:01:26 +0100 (CET) Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 817779EC69A; Wed, 9 Mar 2016 07:01:26 +0100 (CET) From: Marcin Borkowski To: Eli Zaretskii Subject: Re: bug#18996: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g References: <545DD62F.3000106@gmail.com> <87vb50ztae.fsf@mbork.pl> <83y49wwye9.fsf@gnu.org> <87mvq8ykzv.fsf@mbork.pl> <83pov4rj38.fsf@gnu.org> Date: Wed, 09 Mar 2016 07:01:26 +0100 In-Reply-To: <83pov4rj38.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 08 Mar 2016 19:10:51 +0200") Message-ID: <87h9ggxk95.fsf@mbork.pl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18996-done Cc: 18996-done@debbugs.gnu.org, lgp171188@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2016-03-08, at 19:10, Eli Zaretskii wrote: >> From: Marcin Borkowski >> Cc: lgp171188@gmail.com, 18996@debbugs.gnu.org >> Date: Tue, 08 Mar 2016 17:47:48 +0100 >> >> >> > Further, when I press Alt-x, it shows up as M-x in both the >> >> > scenarios. So it doesn't look like Emacs cannot differentiate between >> >> > the two when running inside the terminal without a GUI. >> >> >> >> This is not true: M-x is bound (by default) to >> >> `execute-extended-command', which calls `read-extended-command', which >> >> has at one point the literal string "M-x ", which is fed (via >> >> a `concat', which shows prefix arguments, if any) directly to >> >> `completing-read'. >> >> >> >> > I vaguely remember seeing M-g in the terminal on pressing Alt-g some >> >> > time back, maybe in an older emacs version. But not sure. >> >> >> >> No idea, though I doubt. >> >> >> >> All in all, I'll assign this a "wishlist" level - I agree with the OP >> >> that it would be nice to have this solved >> > >> > To have what solved? >> > >> > If you type "C-h l" after M-x, what do you see? >> >> AFAIU, OP wants to see "M-g-" and not "ESC g-" after pressing M-g in an >> Emacs session in a terminal. > > My point was that you will see "ESC g" in the "C-h l" output. Which > means Emacs _doesn't_ know how to differentiate between ESC-x and M-x, > on the level that shows the prefix key prompts, such as M-g-. What > happens here is that the command bound to "ESC x" deliberately > displays "M-x " in the echo area. IOW, "M-x" is _not_ the key echo, > it's a message displayed by a command. > > In sum, Emacs doesn't have a way to distinguish between M-c and ESC c, > for any character c, on a TTY. We can only do that on a GUI frame. OK, so I'm tagging this "wontfix" and closing it. Best, -- Marcin From unknown Thu Jun 19 14:06:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Apr 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator