From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: comint-insert-input on non-command lines: A trivial fix, a quibble, and a bug Date: Mon, 08 May 2006 10:08:58 -0400 Message-ID: References: <17501.373.791079.156322@rgrjr.dyndns.org> <17502.37204.411491.461843@farnswood.snap.net.nz> <200605080349.k483neE2027538@jane.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147097423 6401 80.91.229.2 (8 May 2006 14:10:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 14:10:23 +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 Mon May 08 16:10:16 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 1Fd6Qg-00052w-KZ for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 16:09:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd6Qg-0008Nc-3N for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 10:09:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fd6Q7-0008AY-Bx for emacs-devel@gnu.org; Mon, 08 May 2006 10:09:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fd6Q5-00088l-Om for emacs-devel@gnu.org; Mon, 08 May 2006 10:09:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd6Q5-00088U-JH for emacs-devel@gnu.org; Mon, 08 May 2006 10:09:05 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fd6Qv-0004Wp-JE; Mon, 08 May 2006 10:09:57 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 627572CF46F; Mon, 8 May 2006 10:09:04 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 10F4E445C; Mon, 8 May 2006 10:08:59 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id E87F171589; Mon, 8 May 2006 10:08:58 -0400 (EDT) Original-To: Miles Bader In-Reply-To: (Miles Bader's message of "Mon, 08 May 2006 13:49:19 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:54092 Archived-At: > (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. Maybe we should export get_pos_property (in editfns.c) to elisp? Stefan