[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: point-min and 1
From: |
martin rudalics |
Subject: |
Re: point-min and 1 |
Date: |
Thu, 13 Aug 2009 11:53:18 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> 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? I suppose for every buffer
1 <= (point-min)
holds invariantly. If the buffer is narrowed, clip_to_bounds asserts
that (goto-char 1) goes to (goto-char (point-min)) so these two idioms
are semantically equivalent regardless of whether a buffer is narrowed
or not. Or what am I missing?
> so it's
> good practice to prefer (point-min) over 1.
martin
- Re: point-min and 1, (continued)
- Re: point-min and 1, martin rudalics, 2009/08/14
- Re: point-min and 1, Miles Bader, 2009/08/14
- Re: point-min and 1, Stefan Monnier, 2009/08/13
- Re: point-min and 1, martin rudalics, 2009/08/14
- Re: point-min and 1, David Kastrup, 2009/08/14
- Re: point-min and 1, martin rudalics, 2009/08/14
Re: point-min and 1, Stefan Monnier, 2009/08/11