From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#16740: 24.2; Please allow C-p and C-n in minibuffer Date: Thu, 13 Feb 2014 08:46:05 -0500 Message-ID: References: <7E039918541B4C4183BFDB8F015C743065ACC6@WCL-EXCH02.wcl.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392299237 25640 80.91.229.3 (13 Feb 2014 13:47:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 13:47:17 +0000 (UTC) Cc: 16740@debbugs.gnu.org To: Ed Avis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 13 14:47:23 2014 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 1WDwdM-0001Ip-Tg for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Feb 2014 14:47:21 +0100 Original-Received: from localhost ([::1]:46476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwdM-000370-IH for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Feb 2014 08:47:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwdC-00035P-6Q for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2014 08:47:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDwd4-00007g-TQ for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2014 08:47:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwd4-00007X-Pg for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2014 08:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WDwd4-0004HU-3J for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2014 08:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Feb 2014 13:47:02 +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: Original-Received: via spool by 16740-submit@debbugs.gnu.org id=B16740.139229917416391 (code B ref 16740); Thu, 13 Feb 2014 13:47:02 +0000 Original-Received: (at 16740) by debbugs.gnu.org; 13 Feb 2014 13:46:14 +0000 Original-Received: from localhost ([127.0.0.1]:50155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDwcH-0004GJ-Jy for submit@debbugs.gnu.org; Thu, 13 Feb 2014 08:46:13 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19523) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDwcF-0004G3-J1 for 16740@debbugs.gnu.org; Thu, 13 Feb 2014 08:46:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFLd+mu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFLd+mu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="47525832" Original-Received: from 75-119-233-174.dsl.teksavvy.com (HELO pastel.home) ([75.119.233.174]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Feb 2014 08:46:06 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id CF21860079; Thu, 13 Feb 2014 08:46:05 -0500 (EST) In-Reply-To: <7E039918541B4C4183BFDB8F015C743065ACC6@WCL-EXCH02.wcl.local> (Ed Avis's message of "Thu, 13 Feb 2014 11:04:12 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:85471 Archived-At: > I think the best way to resolve it is to make C-p and C-n work in > the Emacs minibuffer to get the previous and next lines from the > history, just as M-p and M-n do. Directly binding C-p and C-n to the same commands as M-p and M-n is not really an option, since we need the current behavior for multiline editing (and even filenames without newlines can span multiple lines, if the file name is ling enough to cause wrapping). But we could make C-p/C-n jump to the previous/next history element when called from the first/last line, which would combine both behaviors. The implementation should be careful to make sure that C-p followed by C-n brings you back to the same position (same for C-n followed by C-p), otherwise such behavior can get irritating when you accidentally hit C-p from the first line. Stefan