emacs-devel
[Top][All Lists]
Advanced

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

Re: text_property_stickiness


From: Chong Yidong
Subject: Re: text_property_stickiness
Date: Mon, 26 Jun 2006 13:50:14 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Miles Bader <address@hidden> writes:

> Chong Yidong <address@hidden> writes:
>> So the only thing we have to worry about are a bunch of lisp-visible
>> functions, Fdelete_field and so forth.  I think it is acceptable for
>> us to handle this situation by the signalling of an args_out_of_range
>> error, which, as you pointed out, already happens with the call to
>> Fget_text_property in text_property_stickiness.
>
> Why do you think an error is the correct thing here?
>
> My feeling (when Richard brought this up earlier) was that perhaps the
> out-of-range value should be constrained to be within BEGV-ZV.

I don't think it's the wrong thing to do.  It's also similar to the
current behavior for other Lisp-visible functions, for example:

C-u 10 a
M-: (narrow-to-region 3 4)
M-: (text-properties-at 1)

This signals an args-out-of-range error.




reply via email to

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