From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: comint-insert-input on non-command lines: A trivial fix, a quibble, and a bug Date: Tue, 09 May 2006 11:33:20 +0900 Message-ID: References: <17501.373.791079.156322@rgrjr.dyndns.org> <17502.37204.411491.461843@farnswood.snap.net.nz> <200605080349.k483neE2027538@jane.dms.auburn.edu> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147142030 25312 80.91.229.2 (9 May 2006 02:33:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 May 2006 02:33:50 +0000 (UTC) Cc: rogers-emacs@rgrjr.dyndns.org, nickrob@snap.net.nz, Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 09 04:33:46 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 1FdI2j-0007XR-Df for ged-emacs-devel@m.gmane.org; Tue, 09 May 2006 04:33:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdI2i-0001eC-UV for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 22:33:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdI2W-0001dH-LI for emacs-devel@gnu.org; Mon, 08 May 2006 22:33:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdI2U-0001d5-2U for emacs-devel@gnu.org; Mon, 08 May 2006 22:33:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdI2T-0001d2-Sb for emacs-devel@gnu.org; Mon, 08 May 2006 22:33:29 -0400 Original-Received: from [203.180.232.81] (helo=mgate01.necel.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FdI3Q-00085G-Gv; Mon, 08 May 2006 22:34:29 -0400 Original-Received: from relay11.aps.necel.com (relay11 [10.29.19.46]) by mgate01.necel.com (8.13.6/8.13.1) with ESMTP id k492XLbX025465; Tue, 9 May 2006 11:33:21 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay11.aps.necel.com with ESMTP; Tue, 9 May 2006 11:33:21 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.97.235] [10.114.97.235]) by relay11.aps.necel.com with ESMTP; Tue, 9 May 2006 11:33:21 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 37D32423; Tue, 9 May 2006 11:33:21 +0900 (JST) Original-To: Stefan Monnier System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Stefan Monnier's message of "Mon, 08 May 2006 10:08:58 -0400") Original-Lines: 20 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:54119 Archived-At: Stefan Monnier writes: >> (defun field-at-pos (pos) >> "Return the field at position POS, taking stickiness etc into account" >> (let ((raw-field (get-char-property (field-beginning pos) 'field))) >> (if (eq raw-field 'boundary) >> (get-char-property (1- (field-end pos)) 'field) >> raw-field))) > > How does this work? > I don't see where the stickiness is tested/used. `field-beginning' (and field-end) use stickiness info. > Maybe we should export get_pos_property (in editfns.c) to elisp? Perhaps so; what would be called? `insertion-property'? -Miles -- .Numeric stability is probably not all that important when you're guessing.