From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: comint-insert-input on non-command lines: Date: Mon, 29 May 2006 15:41:51 +1200 Message-ID: <17530.28031.498710.260603@kahikatea.snap.net.nz> References: <17501.373.791079.156322@rgrjr.dyndns.org> <17502.37204.411491.461843@farnswood.snap.net.nz> <200605080408.k4848t65027552@jane.dms.auburn.edu> <17502.50834.303952.808659@farnswood.snap.net.nz> <200605090301.k4931NbZ010512@jane.dms.auburn.edu> <17504.2770.189282.768887@farnswood.snap.net.nz> <200605090359.k493xjVi010576@jane.dms.auburn.edu> <17504.13295.579987.394734@farnswood.snap.net.nz> <200605091458.k49EwOL8012994@jane.dms.auburn.edu> <20060510010929.723AA627ED@farnswood.snap.net.nz> <200605100441.k4A4f636019170@jane.dms.auburn.edu> <17505.31314.844449.970281@farnswood.snap.net.nz> <200605100606.k4A661Rs019271@jane.dms.auburn.edu> <17506.23893.746029.146542@farnswood.snap.net.nz> <200605110133.k4B1XupP029271@jane.dms.auburn.edu> <200605112240.k4BMelnT018936@jane.dms.auburn.edu> <200605150346.k4F3kjgC010190@jane.dms.auburn.edu> <200605280211.k4S2Bw5D026516@jane.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1148874181 17273 80.91.229.2 (29 May 2006 03:43:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 May 2006 03:43:01 +0000 (UTC) Cc: rogers-emacs@rgrjr.dyndns.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 29 05:42:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FkYea-0007pq-EN for ged-emacs-devel@m.gmane.org; Mon, 29 May 2006 05:42:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FkYea-0000yS-05 for ged-emacs-devel@m.gmane.org; Sun, 28 May 2006 23:42:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FkYeP-0000y4-2M for emacs-devel@gnu.org; Sun, 28 May 2006 23:42:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FkYeO-0000xc-Cj for emacs-devel@gnu.org; Sun, 28 May 2006 23:42:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FkYeO-0000xZ-7d for emacs-devel@gnu.org; Sun, 28 May 2006 23:42:40 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FkYjo-0002Q0-J5; Sun, 28 May 2006 23:48:17 -0400 Original-Received: from kahikatea.snap.net.nz (p202-124-112-97.snap.net.nz [202.124.112.97]) by viper.snap.net.nz (Postfix) with ESMTP id 129A7758489; Mon, 29 May 2006 15:42:35 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 39DA71D3550; Mon, 29 May 2006 15:41:52 +1200 (NZST) Original-To: Luc Teirlinck In-Reply-To: <200605280211.k4S2Bw5D026516@jane.dms.auburn.edu> X-Mailer: VM 7.19 under Emacs 22.0.50.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55396 Archived-At: > Here are finally my proposed code and doc changes. The code change > removes the misleading mouse-face and mouse-2 help-echo over old input > when `comint-use-prompt-regexp' is non-nil, because mouse-2 just yanks > as usual in that case. The change to shell.el is minor: it just makes > the shell-mode docstring use shell-mode-map, even if `C-h f > shell-mode' was not done from a shell buffer. The change to comint.el looks good to me. > @item Mouse-2 > ! Copy the old input command that you click on, inserting the copy at the end > ! of the buffer (@code{comint-insert-input}). This command only works if > ! @code{comint-use-prompt-regexp} is @code{nil} (the default). > ! If @code{comint-use-prompt-regexp} is non-@code{nil} or if point is > ! not over old input, @kbd{Mouse-2} just yanks as usual. How about If @code{comint-use-prompt-regexp} is @code{nil} (the default), copy the old input command that you click on, inserting the copy at the end of the buffer (@code{comint-insert-input}). If @code{comint-use-prompt-regexp} is non-@code{nil}, or if point is not over old input, just yank as usual. -- Nick http://www.inet.net.nz/~nickrob