From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: comint-insert-input on non-command lines: A trivial fix, a quibble, and a bug Date: Sun, 7 May 2006 23:08:55 -0500 (CDT) Message-ID: <200605080408.k4848t65027552@jane.dms.auburn.edu> References: <17501.373.791079.156322@rgrjr.dyndns.org> <17502.37204.411491.461843@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1147061419 32662 80.91.229.2 (8 May 2006 04:10:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 04:10:19 +0000 (UTC) Cc: rogers-emacs@rgrjr.dyndns.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 08 06:10:12 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 1Fcx4N-0001ix-88 for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 06:10:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fcx4M-0001v1-RG for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 00:10:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fcx4D-0001uw-UH for emacs-devel@gnu.org; Mon, 08 May 2006 00:09:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fcx4C-0001uk-Dy for emacs-devel@gnu.org; Mon, 08 May 2006 00:09:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fcx4C-0001ug-BM for emacs-devel@gnu.org; Mon, 08 May 2006 00:09:52 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fcx4x-0005Oe-1I for emacs-devel@gnu.org; Mon, 08 May 2006 00:10:39 -0400 Original-Received: from jane.dms.auburn.edu (jane.dms.auburn.edu [131.204.53.201]) by manatee.dms.auburn.edu (8.13.6/8.13.6) with ESMTP id k4849pfS014538; Sun, 7 May 2006 23:09:51 -0500 (CDT) Original-Received: from jane.dms.auburn.edu (localhost [127.0.0.1]) by jane.dms.auburn.edu (8.13.4+Sun/8.13.4) with ESMTP id k4848t8c027555; Sun, 7 May 2006 23:08:55 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k4848t65027552; Sun, 7 May 2006 23:08:55 -0500 (CDT) X-Authentication-Warning: jane.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: nickrob@snap.net.nz In-reply-to: <17502.37204.411491.461843@farnswood.snap.net.nz> (message from Nick Roberts on Mon, 8 May 2006 12:31:16 +1200) 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:54056 Archived-At: Nick Roberts wrote: I see now that comint-copy-old-input did indeed copy the whole line but although the name would not suggest so. What it did depended on the value of comint-use-prompt-regexp. It relied on the value of the variable comint-get-old-input, whose default value was comint-get-old-input-default. Here is the emacs-21.3 doc of the latter function: Default for `comint-get-old-input'. If `comint-use-prompt-regexp-instead-of-fields' is nil, then either return the current input field, if point is on an input field, or the current line, if point is on an output field. If `comint-use-prompt-regexp-instead-of-fields' is non-nil, then return the current line with any initial string matching the regexp `comint-prompt-regexp' removed. `comint-use-prompt-regexp-instead-of-fields' is now called `comint-use-prompt-regexp'. Sincerely, Luc.