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 22:49:40 -0500 (CDT) Message-ID: <200605080349.k483neE2027538@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 1147060265 30372 80.91.229.2 (8 May 2006 03:51:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 03:51:05 +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 05:51:02 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 1Fcwln-0007wf-Vi for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 05:50:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fcwln-0000wg-J9 for ged-emacs-devel@m.gmane.org; Sun, 07 May 2006 23:50:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fcwlb-0000uE-71 for emacs-devel@gnu.org; Sun, 07 May 2006 23:50:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FcwlZ-0000u2-7r for emacs-devel@gnu.org; Sun, 07 May 2006 23:50:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FcwlZ-0000tz-1m for emacs-devel@gnu.org; Sun, 07 May 2006 23:50:37 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FcwmJ-0003Dt-Eh for emacs-devel@gnu.org; Sun, 07 May 2006 23:51:23 -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 k483oaMP013163; Sun, 7 May 2006 22:50:36 -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 k483neVS027541; Sun, 7 May 2006 22:49:40 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k483neE2027538; Sun, 7 May 2006 22:49:40 -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:54055 Archived-At: >>From my previous response: Yes, but if comint-use-prompt-regexp is t, then comint-insert-input does nothing even if point _is_ over input. On closer inspection, what seems to cause this bug is that comint-insert-input contains: (if (not (eq (get-char-property (point) 'field) 'input)) ;; No input at POS, fall back to the global definition. If comint-use-prompt-regexp is non-nil, then there are no field properties, so, despite what the comment claims, that condition does _not_ assure that there is no input at POS. Sincerely, Luc.