emacs-devel
[Top][All Lists]
Advanced

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

Re: Fringe angle bitmap at at eob


From: Kim F. Storm
Subject: Re: Fringe angle bitmap at at eob
Date: Wed, 02 Nov 2005 15:45:45 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Richard M. Stallman" <address@hidden> writes:

>     I actually thought the other behavior was better and more accurate.
>
> I can't argue with personal perceptions, but the previous behavior was
> wrong and misleading.  When the buffer ends at a newline, the cursor
> can go after that newline.  It is wrong to indicate that the buffer
> ends before that newline--before the cursor.

Well, the newline _is_ on the last line, but the cursor is AFTER that
newline, so the buffer ends AFTER the newline, but BEFORE the cursor!!

So placing the "end-of-buffer" marker after the cursor is both
misleading and confusing, as it falsely indicates to the user that
there is an extra empty line at the bottom of the file.

I think my latest change DTRT in both cases!


BTW, if cursor is at the end of buffer after the final newline,
C-x = reports this:

    point=909 of 908 (100%) column 0 

When cursor is at the end of the last line without a newline, C-x =
reports:

    point=3386 of 3385 (100%) column 70 


Both of these clearly indicates that the cursor is AFTER the end of
buffer, which reminds me of the following change to C-x = when the
cursor is at the end of the buffer.  It changes the output from the
two examples above to:

    point=909 of 908 (EOB) column 0 
    point=3386 of 3385 (EOB) column 70 


*** simple.el   01 Nov 2005 10:36:52 +0100      1.760
--- simple.el   02 Nov 2005 15:33:59 +0100      
***************
*** 893,900 ****
        (if (or (/= beg 1) (/= end (1+ total)))
            (message "point=%d of %d (%d%%) <%d - %d> column %d %s"
                     pos total percent beg end col hscroll)
!         (message "point=%d of %d (%d%%) column %d %s"
!                  pos total percent col hscroll))
        (let ((coding buffer-file-coding-system)
            encoded encoding-msg display-prop under-display)
        (if (or (not coding)
--- 893,900 ----
        (if (or (/= beg 1) (/= end (1+ total)))
            (message "point=%d of %d (%d%%) <%d - %d> column %d %s"
                     pos total percent beg end col hscroll)
!         (message "point=%d of %d (EOB) column %d %s"
!                  pos total col hscroll))
        (let ((coding buffer-file-coding-system)
            encoded encoding-msg display-prop under-display)
        (if (or (not coding)



-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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