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: Mon, 16 Nov 2015 18:55:13 +0000 Message-ID: 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 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447717807 534 80.91.229.3 (16 Nov 2015 23:50:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 23:50:07 +0000 (UTC) Cc: 21737@debbugs.gnu.org To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 00:49:56 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 1ZyTX1-00049r-Ov for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 00:49:55 +0100 Original-Received: from localhost ([::1]:52292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyTX0-0002PL-Rz for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 18:49:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyOwh-0006JP-7k for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 13:56:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyOwc-0007w1-3v for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 13:56:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyOwb-0007vv-WF for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 13:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZyOwb-0007fe-Kx for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2015 13:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Perry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Nov 2015 18:56:01 +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.144770013629452 (code B ref 21737); Mon, 16 Nov 2015 18:56:01 +0000 Original-Received: (at 21737) by debbugs.gnu.org; 16 Nov 2015 18:55:36 +0000 Original-Received: from localhost ([127.0.0.1]:40448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyOwB-0007ew-5j for submit@debbugs.gnu.org; Mon, 16 Nov 2015 13:55:36 -0500 Original-Received: from mail-wm0-f43.google.com ([74.125.82.43]:32806) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyOvr-0007eR-H9 for 21737@debbugs.gnu.org; Mon, 16 Nov 2015 13:55:34 -0500 Original-Received: by wmec201 with SMTP id c201so192307850wme.0 for <21737@debbugs.gnu.org>; Mon, 16 Nov 2015 10:55:14 -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=gGeEmOsiZ260tC1Z9tF0gN5R6p8WGIdt/o4G0biCIgY=; b=rrT2tapOXIBMaPTGKaYTPnAmY0ILXXDDkoK9SwMd8PZWUF/Mn318ukHUYvvw9HCKVO LWvMxj8vxHvBBRdbqHYMit435/2TpKh3DgsH6M4/E1i49Y1TYZjJHG/Tyu5eFMm+zhmH JxA0rJwrRmNetH5tayr5k0YGHrGtqrY34SdgfE88oipRCki03LpGMdtl/eLgXNA1H3g9 TTtl1rKQJGaltbF/mez1wyir17J43q+VGrKreu8lMVrnH3JazG0tAvdfbdIGIIkcsiEo Fq3uHsPmYgZCVJN1NOhD5rIe2pQVqSQJ0q8w1oLQkSKKCcuPndZSgxUikMnTMiIECW99 OaWg== X-Received: by 10.194.108.103 with SMTP id hj7mr37866782wjb.143.1447700114718; Mon, 16 Nov 2015 10:55:14 -0800 (PST) Original-Received: from stephens-mbp.cable.virginmedia.net (cpc4-papw5-2-0-cust294.5-3.cable.virginm.net. [81.102.145.39]) by smtp.gmail.com with ESMTPSA id l81sm19983716wmb.2.2015.11.16.10.55.12 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Nov 2015 10:55:12 -0800 (PST) In-Reply-To: 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:108787 Archived-At: Updated patch: diff --git a/lisp/comint.el b/lisp/comint.el index e70fe88..b7a906e 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -283,6 +283,13 @@ comint-move-point-for-output (const others)) :group 'comint) =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 (defun comint-next-matching-input-from-input (n) "Search forwards through input history for match for current input.