From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25960: minor gotcha in tutorial Date: Sat, 04 Mar 2017 11:06:18 +0200 Message-ID: <83h939l8c5.fsf@gnu.org> References: <87tw79ab84.fsf@users.sourceforge.net> <9mnno2gcqjm070qkg901889f.1488613565677@email.android.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488618435 19994 195.159.176.226 (4 Mar 2017 09:07:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 09:07:15 +0000 (UTC) Cc: 25960@debbugs.gnu.org, npostavs@users.sourceforge.net To: liam Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 04 10:07:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ck5ee-0004Qy-0B for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 10:07:08 +0100 Original-Received: from localhost ([::1]:34480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ck5eg-00056a-TA for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 04:07:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ck5eb-00056U-6G for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 04:07:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ck5eY-0007wX-1s for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 04:07:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40909) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ck5eX-0007wN-VF for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 04:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ck5eX-000834-Lw for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 04:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2017 09:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25960-submit@debbugs.gnu.org id=B25960.148861840230909 (code B ref 25960); Sat, 04 Mar 2017 09:07:01 +0000 Original-Received: (at 25960) by debbugs.gnu.org; 4 Mar 2017 09:06:42 +0000 Original-Received: from localhost ([127.0.0.1]:39108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ck5eD-00082T-VV for submit@debbugs.gnu.org; Sat, 04 Mar 2017 04:06:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ck5eC-00082G-7R for 25960@debbugs.gnu.org; Sat, 04 Mar 2017 04:06:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ck5e3-0007rC-SK for 25960@debbugs.gnu.org; Sat, 04 Mar 2017 04:06:35 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ck5e3-0007r8-Pe; Sat, 04 Mar 2017 04:06:31 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3555 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ck5e2-0005OC-Vw; Sat, 04 Mar 2017 04:06:31 -0500 In-reply-to: <9mnno2gcqjm070qkg901889f.1488613565677@email.android.com> (message from liam on Sat, 04 Mar 2017 07:46:05 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:130155 Archived-At: > Date: Sat, 04 Mar 2017 07:46:05 +0000 > From: liam > Cc: 25960@debbugs.gnu.org > > > But the pending is gone, right? AFAIK, that's how it's supposed > > to work. > > I don't think it's the same. Try C-u follow by C-g. You'll see 'Quit' in the status and no alert noise. There are > plenty of undefined key sequences and keying them doesn't mean the sequence was cancelled. Anyway, it's > so minor it really doesn't matter but as it's in the tutorial I thought I'd mention it. I guess you get "C-M-g is undefined" if you type C-g quickly enough after ESC. If you wait for a few seconds, until "ESC-" appears in the echo area, before you type C-g, you should get just "Quit", as in other cases. Do you see this on your system? If the above describes what happens on your system, then Noam is right: that's how this is supposed to work. Emacs allows you to use ESC as a prefix that converts the next key into its Meta variant, so C-g is converted into C-M-g. But it still gets rid of the ESC that you typed by mistake. And yes, if you type an undefined sequence, it _is_ canceled when Emacs says its undefined. Thanks.