emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comint-insert-input on non-command lines: A trivial fix, a quibble,


From: Miles Bader
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

Stefan Monnier <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]