From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#18996: 24.4; Pressing Alt-g shows Esc g- when running emacs inside terminal and in GUI mode it shows M-g Date: Wed, 09 Mar 2016 07:01:26 +0100 Message-ID: <87h9ggxk95.fsf@mbork.pl> References: <545DD62F.3000106@gmail.com> <87vb50ztae.fsf@mbork.pl> <83y49wwye9.fsf@gnu.org> <87mvq8ykzv.fsf@mbork.pl> <83pov4rj38.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457503350 28929 80.91.229.3 (9 Mar 2016 06:02:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2016 06:02:30 +0000 (UTC) Cc: 18996-done@debbugs.gnu.org, lgp171188@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 09 07:02:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1adXCG-0007b1-OG for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 07:02:12 +0100 Original-Received: from localhost ([::1]:39282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adXCG-0006FP-0e for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 01:02:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adXCB-0006D1-Vv for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 01:02:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adXC7-0003lL-0N for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 01:02:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adXC6-0003l1-UD for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 01:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adXC6-00082S-OO for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 01:02:02 -0500 Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Mar 2016 06:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18996 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Mail-Followup-To: 18996@debbugs.gnu.org, mbork@mbork.pl, lgp171188@gmail.com Original-Received: via spool by 18996-done@debbugs.gnu.org id=D18996.145750329130840 (code D ref 18996); Wed, 09 Mar 2016 06:02:02 +0000 Original-Received: (at 18996-done) by debbugs.gnu.org; 9 Mar 2016 06:01:31 +0000 Original-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 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <83pov4rj38.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 08 Mar 2016 19:10:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114624 Archived-At: 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