[Top][All Lists]

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

Re: beginning-of-buffer computations

From: Michael Heerdegen
Subject: Re: beginning-of-buffer computations
Date: Sun, 01 Feb 2015 15:18:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

> Now I pretty much see what is going on for "large buffers".  For
> smaller ones, I'm wondering what is the rationale behind the `+ 10'
> part?  It approximately adds one to the result (of course, the result
> is truncated to the next-lower-integer, so it's not that, ekhm,
> simple) - but why?

As had been said, that +10 part effectively adds 1 to the result.

I guess that's because buffer positions start counting from 1, not from
0.  If you want to go to 0/10 of the buffer, you want to land on
(point-min) = 1, etc.


reply via email to

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