From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Perry Newsgroups: gmane.emacs.bugs Subject: bug#21737: Acknowledgement (24.5; Minor feature request: `comint-previous-matching-input-from-input' and point) Date: Tue, 17 Nov 2015 13:08:29 +0000 Message-ID: <8D94ED5A-0304-479A-A1EC-AD5768EA206D@gmail.com> References: <22057.18203.537000.988338@gargle.gargle.HOWL> <3B07598E-834E-4071-8EF2-F32AF4B15164@gmail.com> <87k2pho2tj.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447765770 1539 80.91.229.3 (17 Nov 2015 13:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 13:09:30 +0000 (UTC) Cc: John Wiegley , 21737@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 14:09:17 2015 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 1Zyg0W-0005a7-6A for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 14:09:12 +0100 Original-Received: from localhost ([::1]:58353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyg0V-0000u5-K2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 08:09:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyg0R-0000tT-Qo for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 08:09:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zyg0M-0001iC-Se for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 08:09:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyg0M-0001i6-O0 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 08:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zyg0M-0004ue-By for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 08:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Perry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Nov 2015 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21737 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21737-submit@debbugs.gnu.org id=B21737.144776571518854 (code B ref 21737); Tue, 17 Nov 2015 13:09:02 +0000 Original-Received: (at 21737) by debbugs.gnu.org; 17 Nov 2015 13:08:35 +0000 Original-Received: from localhost ([127.0.0.1]:41099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zyfzu-0004u1-85 for submit@debbugs.gnu.org; Tue, 17 Nov 2015 08:08:34 -0500 Original-Received: from mail-wm0-f51.google.com ([74.125.82.51]:35758) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zyfzr-0004tp-KX for 21737@debbugs.gnu.org; Tue, 17 Nov 2015 08:08:32 -0500 Original-Received: by wmdw130 with SMTP id w130so154084306wmd.0 for <21737@debbugs.gnu.org>; Tue, 17 Nov 2015 05:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ZAC/dDPSU/8jxsK9Hsoe9qjnLzz5ZojW7qHVYKR6tao=; b=iCfLtP2ulUbFouUh0wbk6XCZTYljx/ZpnCjse9LEX7aiJhSPsVqcFqgr7TjtjNjWXG x/LNS8UZWQyPQKAisdvoFw7aBg2N39bf1v2o1k1CMj1TqRfSKjICLWqfcK+LlNeeCu9o P3WynSXxIEn5GUM/VNQTmF1hIE3kwowcDmkwtbj77f53u80bQkI3aOAxfogMiEDQaqtH Gcw+2+c5mZtUYlD+ksE4GrEqskY5VecZvSRAz2OfIEj2BSenMnEUcP9xTeXGHK+uZEJX NvsudGzXEWcyALfokGBj2W48s5nfHD4j1SzkJLj1A69w8rJejBjvyc2jKtDMRVsfoYA9 Kr5Q== X-Received: by 10.194.92.138 with SMTP id cm10mr43691699wjb.6.1447765711090; Tue, 17 Nov 2015 05:08:31 -0800 (PST) Original-Received: from [192.168.0.53] (host81-138-103-242.in-addr.btopenworld.com. [81.138.103.242]) by smtp.gmail.com with ESMTPSA id lv4sm39861159wjb.43.2015.11.17.05.08.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 05:08:29 -0800 (PST) In-Reply-To: <87k2pho2tj.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3096.5) 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: 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108824 Archived-At: > On 17 Nov 2015, at 00:58, Juri Linkov wrote: >=20 >> +(defcustom comint-move-point-to-end-on-match nil >> + "Controls whether point moves to the end of the matched input. >> +If nil, then point remains in the current position. >> +If t, point moves to the end of matched input." >> + :type 'boolean >> + :group 'comint) >> + >> (defvaralias 'comint-scroll-to-bottom-on-output = 'comint-move-point-for-output) >>=20 >> (defcustom comint-scroll-show-maximum-output t >> @@ -1220,7 +1227,8 @@ comint-previous-matching-input-from-input >> (comint-previous-matching-input >> (concat "^" (regexp-quote = comint-matching-input-from-input-string)) >> n) >> - (goto-char opoint))) >> + (unless comint-move-point-to-end-on-match >> + (goto-char opoint)))) >=20 > I wonder could we use the logic of 'track-eol' here? This means that = going > to the previous command lines starting at the end of the command line = will > keep to the ends of command lines. It=E2=80=99s a trivial change to make, but I=E2=80=99m not sure if = having it do the same thing will be annoying for people who don=E2=80=99t want track-eol turned on everywhere?