From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40915: [PATCH] Make leaving Info-summary more intuitive Date: Tue, 28 Apr 2020 10:09:00 +0300 Message-ID: <83sggo2ik3.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="95044"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40915@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 28 09:18:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTKVN-000OeC-F1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 09:18:09 +0200 Original-Received: from localhost ([::1]:44170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTKVM-0002s4-FW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 03:18:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40586) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTKQX-0001dQ-AO for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 03:17:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTKNW-0006Um-EU for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 03:13:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTKNW-0006Uh-1v for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 03:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTKNV-0005me-RH for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 03:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Apr 2020 07:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 40915-submit@debbugs.gnu.org id=B40915.158805776822185 (code B ref 40915); Tue, 28 Apr 2020 07:10:01 +0000 Original-Received: (at 40915) by debbugs.gnu.org; 28 Apr 2020 07:09:28 +0000 Original-Received: from localhost ([127.0.0.1]:38693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTKMy-0005lk-Ak for submit@debbugs.gnu.org; Tue, 28 Apr 2020 03:09:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTKMx-0005la-AL for 40915@debbugs.gnu.org; Tue, 28 Apr 2020 03:09:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52917) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTKMr-0006NG-GP; Tue, 28 Apr 2020 03:09:21 -0400 Original-Received: from [176.228.60.248] (port=2746 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jTKMq-00019q-UR; Tue, 28 Apr 2020 03:09:21 -0400 In-Reply-To: (message from Stefan Kangas on Tue, 28 Apr 2020 00:28:31 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179200 Archived-At: > From: Stefan Kangas > Date: Tue, 28 Apr 2020 00:28:31 +0200 > > There's a small issue with the Info-summary command: > > 0. emacs -Q > 1. C-h i > 2. ? > 3. q > > Result: Now in *scratch* buffer > Expected: Should end up in *info* buffer I'm not sure I understand the expected result. The help buffer displayed when you press '?' says: q Quit Info: reselect previously selected buffer. So it seems Info behaves as documented? The way to exit the help screen and return to the Info manual is by repeatedly pressing SPC until you wind up in the original Info buffer. > The attached patch should fix it by not pushing the character ('q' in > this case) onto 'unread-command-events' before burying the help > buffer. I could understand that we'd like to have a single key to quit the help screen, perhaps even when 'q' is pressed (which would be a change in behavior), but even then it is IMO wrong to completely remove the pushing onto unread-command-events, because this command is set such that you could read about a key and execute it while still in the help screen. IOW, the fact that the key you pres is generally executed after exiting the help screen is an important feature: it avoids the need to remember the key you found in *Help* and retype it after you are back in the Info buffer. Thanks.