From 8852d0ef4e473807d33c92b25877651173c00853 Mon Sep 17 00:00:00 2001 From: Philipp Stephani
Date: Thu, 27 Oct 2016 00:28:34 +0200 Subject: [PATCH] Comint: new user option for C-c M-r and C-c M-s This option allows the user to specify where to place point after these commands. * comint.el (comint-move-point-for-matching-input): New user option. (comint-previous-matching-input-from-input): Use user option. --- etc/NEWS | 6 ++++++ lisp/comint.el | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index a160f81..269ceeb 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -279,6 +279,12 @@ whose content matches a regexp; bound to '% g'. *** Support for opening links to man pages in Man or WoMan mode. +** Comint + +--- +*** New user option 'comint-move-point-for-matching-input' to control +where to place point after C-c M-r and C-c M-s. + ** Compilation mode --- diff --git a/lisp/comint.el b/lisp/comint.el index 0319eeb..65f51d1 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -283,6 +283,17 @@ comint-move-point-for-output (const others)) :group 'comint) +(defcustom comint-move-point-for-matching-input 'after-input + "Controls where to place point after matching input. +\\