From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov 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 02:58:48 +0200 Organization: LINKOV.NET Message-ID: <87k2pho2tj.fsf@mail.linkov.net> References: <22057.18203.537000.988338@gargle.gargle.HOWL> <3B07598E-834E-4071-8EF2-F32AF4B15164@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447723128 12847 80.91.229.3 (17 Nov 2015 01:18:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 01:18:48 +0000 (UTC) Cc: John Wiegley , 21737@debbugs.gnu.org To: Stephen Perry Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 02:18:37 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 1ZyUuO-00012k-4C for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 02:18:08 +0100 Original-Received: from localhost ([::1]:54842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyUuI-0001Fq-Ks for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 20:18:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyUtN-000809-MQ for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 20:17:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyUtL-0004o5-6K for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 20:17:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyUtL-0004ny-3J for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 20:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZyUtK-0002by-Fr for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 20:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Nov 2015 01:17: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.14477229679914 (code B ref 21737); Tue, 17 Nov 2015 01:17:02 +0000 Original-Received: (at 21737) by debbugs.gnu.org; 17 Nov 2015 01:16:07 +0000 Original-Received: from localhost ([127.0.0.1]:40659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyUsQ-0002Zp-EL for submit@debbugs.gnu.org; Mon, 16 Nov 2015 20:16:06 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:59791 helo=homiemail-a12.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyUs5-0002Ym-Pr for 21737@debbugs.gnu.org; Mon, 16 Nov 2015 20:16:04 -0500 Original-Received: from homiemail-a12.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTP id 011101030063; Mon, 16 Nov 2015 17:15:44 -0800 (PST) Original-Received: from localhost.linkov.net (m91-131-172-22.cust.tele2.ee [91.131.172.22]) (Authenticated sender: jurta@jurta.org) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTPA id E2D0B103005E; Mon, 16 Nov 2015 17:15:43 -0800 (PST) In-Reply-To: (Stephen Perry's message of "Mon, 16 Nov 2015 18:55:13 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (x86_64-pc-linux-gnu) 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:108805 Archived-At: > +(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) > > (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)))) 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.