From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#40915: [PATCH] Make leaving Info-summary more intuitive Date: Tue, 28 Apr 2020 00:28:31 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000c3a80f05a44d3ccf" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41613"; mail-complaints-to="usenet@ciao.gmane.io" To: 40915@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 28 00:29:12 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 1jTCFT-000Akp-QY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 00:29:11 +0200 Original-Received: from localhost ([::1]:35487 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTCFS-0000xQ-Qi for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Apr 2020 18:29:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41098) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTCFK-0000v7-P4 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 18:29:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTCFK-0005IZ-9w for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 18:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTCFJ-0005Ga-Th for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 18:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTCFJ-0004w7-Q4 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 18:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Apr 2020 22:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158802652818953 (code B ref -1); Mon, 27 Apr 2020 22:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2020 22:28:48 +0000 Original-Received: from localhost ([127.0.0.1]:38355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTCF6-0004vc-Cq for submit@debbugs.gnu.org; Mon, 27 Apr 2020 18:28:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTCF3-0004vU-Oc for submit@debbugs.gnu.org; Mon, 27 Apr 2020 18:28:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41030) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTCF3-0000Md-79 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 18:28:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTCF2-0002vR-FG for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 18:28:44 -0400 Original-Received: from mail-yb1-f173.google.com ([209.85.219.173]:46248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTCF1-0002ps-OA for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 18:28:44 -0400 Original-Received: by mail-yb1-f173.google.com with SMTP id b17so10329239ybq.13 for ; Mon, 27 Apr 2020 15:28:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=I2qnn89tFRSxlLBE46vRAl2A3JpoAka3+aCM9s1UKHc=; b=p8IF2vIgMz+Gh9sC7TacioxmPTUbGQJMRZojHh/RmcbBon4HuBKBaFE57TEpRlScDr 01GCKivVwMAFDSQ1+wTjj2o5sE0+kGppYvvFWjudaPa7oHHedNYREalcCTszwxpadIsQ Q22arw5CdPZnITPQ60jp7AZLAmzI6w93od7ViWpYyDZEq2t6sCoiUuhhAKsIybI0O7G8 Bku1hth9d7Xfa2n/OhmaBWmgvejFhIyPKi6P/vsjdwXpwrfUo+tvdnRnABJIUZYp09aD CtInU5UIaydTJI1FIRIXwFloky2jM9zxcQd107Bi0UZFlW7JAsJgxdVyRS1SijzB76po GsIQ== X-Gm-Message-State: AGi0PuZvne3vf/MuymWvYkSgFLTi7NWG0PhOPpCiuv4TehJZbjXxCzQV /F8MCX+9ux2EpsjSFDHWuJUS+TLdxge9UHhi8/G28J1UR7k= X-Google-Smtp-Source: APiQypKB0cGbmER7JTs0kvflnCCJN/V1PSd6NolzNUQEBXq+yIfRRBuTBcXXH+xgEnvHMTpwFG/9SSl9FCpQwtwsfaQ= X-Received: by 2002:a25:2:: with SMTP id 2mr39054348yba.466.1588026522428; Mon, 27 Apr 2020 15:28:42 -0700 (PDT) Received-SPF: pass client-ip=209.85.219.173; envelope-from=stefankangas@gmail.com; helo=mail-yb1-f173.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/27 18:28:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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:179187 Archived-At: --000000000000c3a80f05a44d3ccf Content-Type: text/plain; charset="UTF-8" Severity: minor 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 The attached patch should fix it by not pushing the character ('q' in this case) onto 'unread-command-events' before burying the help buffer. Best regards, Stefan Kangas In GNU Emacs 28.0.50 (build 14, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo version 1.16.0) of 2020-04-27 built on joffe --000000000000c3a80f05a44d3ccf Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Make-leaving-Info-summary-more-intuitive.patch" Content-Disposition: attachment; filename="0001-Make-leaving-Info-summary-more-intuitive.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k9j1yncl0 RnJvbSAwZDM0ZThiOThjNzZiZmMxZjlkY2QyNGRjMDY5MTc5M2IyZTAzYWU1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBUdWUsIDI4IEFwciAyMDIwIDAwOjI1OjExICswMjAwClN1YmplY3Q6IFtQQVRDSF0g TWFrZSBsZWF2aW5nIEluZm8tc3VtbWFyeSBtb3JlIGludHVpdGl2ZQoKKiBsaXNwL2luZm8uZWwg KEluZm8tc3VtbWFyeSk6IERpc2NhcmQgY2hhcmFjdGVyIG9uIGV4aXQgaW5zdGVhZCBvZ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W55IGtleSB0byByZXR1cm4gdG8gSW5mbyIpKQorICAgICAgICAg ICAgIDs7IFNwYWNlIHNjcm9sbHMgaWYgdGhlcmUgaXMgbW9yZSBjb250ZW50LgorICAgICAgICAg ICAgIDs7IEFueSBvdGhlciBrZXkgcmV0dXJucy4KKyAgICAgICAgICAgICAoc2V0cSBjaCAocmVh ZC1ldmVudCkpCisJICAgICAoYW5kIGZsYWcgKGVxIGNoID9ccykpKQorICAgICAgKHNjcm9sbC11 cCkpCiAgICAgKGJ1cnktYnVmZmVyICIqSGVscCoiKSkpCiAMCiAoZGVmdW4gSW5mby1nZXQtdG9r ZW4gKHBvcyBzdGFydCBhbGwgJm9wdGlvbmFsIGVycm9yc3RyaW5nKQotLSAKMi4yNi4yCgo= --000000000000c3a80f05a44d3ccf--