[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trunk r113878: Refine previous change.
From: |
Stefan Monnier |
Subject: |
Re: trunk r113878: Refine previous change. |
Date: |
Thu, 15 Aug 2013 12:42:43 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>> FWIW, I've fairly often written code which uses goto-char with
>> a position that can be outside of point-min...point-max, knowing that it
>> will go to the closest possible position.
> Did you ever pass a negative position?
> Were you passing a position outside the currently accessible portion of
> the buffer, but within the unnarrowed limits, or was it just an arbitrarily
> large value to mean "point-max" (and if so, why not just use point-max)?
Typically it's a slightly sloppy value. E.g. (1- pos) or (1+ pos) or
just `pos' but where that position was valid in the past and some
buffer changes may have rendered it invalid.
So it typically is a valid position in 99% of the cases, but I know that
it's not guaranteed to be so in 100% of the cases.
Stefan
- Re: trunk r113878: Refine previous change., (continued)
- Re: trunk r113878: Refine previous change., Eli Zaretskii, 2013/08/14
- Re: trunk r113878: Refine previous change., Xue Fuqiao, 2013/08/14
- Re: trunk r113878: Refine previous change., Juanma Barranquero, 2013/08/14
- Re: trunk r113878: Refine previous change., Glenn Morris, 2013/08/14
- Re: trunk r113878: Refine previous change., Juanma Barranquero, 2013/08/15
- Re: trunk r113878: Refine previous change., Stefan Monnier, 2013/08/15
- Re: trunk r113878: Refine previous change., Eli Zaretskii, 2013/08/15
- Re: trunk r113878: Refine previous change., Glenn Morris, 2013/08/15
- Re: trunk r113878: Refine previous change.,
Stefan Monnier <=
- Re: trunk r113878: Refine previous change., Glenn Morris, 2013/08/15