From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#16740: 24.2; Please allow C-p and C-n in minibuffer Date: Sun, 26 Dec 2021 09:41:39 +0200 Organization: LINKOV.NET Message-ID: <86y2473j9o.fsf@mail.linkov.net> References: <7E039918541B4C4183BFDB8F015C743065ACC6@WCL-EXCH02.wcl.local> <266758c2-0b11-4526-854e-bb655805478a@default> <86h7awmt9p.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21601"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 16740@debbugs.gnu.org, Stefan Monnier , Ed Avis To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 26 09:00:24 2021 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 1n1OS7-0005Qs-OF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Dec 2021 09:00:23 +0100 Original-Received: from localhost ([::1]:53184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1OS6-0007bw-Qs for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Dec 2021 03:00:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1OQp-0006FW-6n for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 02:59:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1OQo-0005FU-TC for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 02:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1OQn-0008JC-Qt for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2021 02:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Dec 2021 07:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16740 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16740-submit@debbugs.gnu.org id=B16740.164050550731858 (code B ref 16740); Sun, 26 Dec 2021 07:59:01 +0000 Original-Received: (at 16740) by debbugs.gnu.org; 26 Dec 2021 07:58:27 +0000 Original-Received: from localhost ([127.0.0.1]:40163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1OQF-0008Hm-Fb for submit@debbugs.gnu.org; Sun, 26 Dec 2021 02:58:27 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:59053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1OQD-0008HV-RG for 16740@debbugs.gnu.org; Sun, 26 Dec 2021 02:58:26 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id D5BB020004; Sun, 26 Dec 2021 07:58:16 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Sat, 25 Dec 2021 13:53:40 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:223136 Archived-At: >> This feature was implemented in the same year when requested. > > So this feature request could be closed? Before closing, we need to decide whether to bind C-p and C-n to the same commands that were bound in 2014 to [up] and [down], i.e. whether to apply such patch: diff --git a/lisp/bindings.el b/lisp/bindings.el index f70a9efe41..b11872c84e 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -1028,10 +1028,12 @@ global-map (define-key map "\en" 'next-history-element) (define-key map [next] 'next-history-element) (define-key map [down] 'next-line-or-history-element) + (define-key map "\C-n" 'next-line-or-history-element) (define-key map [XF86Forward] 'next-history-element) (define-key map "\ep" 'previous-history-element) (define-key map [prior] 'previous-history-element) (define-key map [up] 'previous-line-or-history-element) + (define-key map "\C-p" 'previous-line-or-history-element) (define-key map [XF86Back] 'previous-history-element) (define-key map "\es" 'next-matching-history-element) (define-key map "\er" 'previous-matching-history-element)