emacs-devel
[Top][All Lists]
Advanced

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

Re: point-min and 1


From: Stefan Monnier
Subject: Re: point-min and 1
Date: Thu, 13 Aug 2009 12:48:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>> As a general rule, using 1 rather than (point-min) tends to also
>> introduce bugs where code only works when the buffer is widened,
> What sort of bugs?

All kinds, really.  Note that I'm talking about the use of 1 i.s.o
point-min in general, not specifically in calls to goto-char.  For many
other functions (e.g. put-text-property), using 1 rather than
(point-min) can result in signalling an error when the buffer
is narrowed.


        Stefan




reply via email to

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