help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: how do I know that the buffer is narrowed


From: Ehud Karni
Subject: Re: how do I know that the buffer is narrowed
Date: Sun, 4 Dec 2005 14:13:55 +0200

On Thu, 01 Dec 2005 11:52:19 -0500, Stefan Monnier <address@hidden> wrote:
>
> Yes, there is a very good one: you unnecessarily assume that the buffer
> starts at position 1.

Both `what-cursor-position' and `what-line' (in simple.el) do this
assumption. After looking in buffer.h and seeing:
    /* Position of beginning of buffer.  */
    #define BEG (1)
I don't see any reason NOT to assume this.

Ehud.


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry




reply via email to

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