unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: Michael Mauger <mmaug@yahoo.com>, emacs-devel@gnu.org
Subject: Re: Fringe angle bitmap at at eob
Date: Wed, 02 Nov 2005 15:45:45 +0100	[thread overview]
Message-ID: <m3u0evcdly.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1EXFr3-0001N9-Uv@fencepost.gnu.org> (Richard M. Stallman's message of "Wed, 02 Nov 2005 05:28:29 -0500")

"Richard M. Stallman" <rms@gnu.org> 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 <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2005-11-02 14:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-27 15:09 Fringe angle bitmap at at eob Chong Yidong
2005-10-28 16:17 ` Richard M. Stallman
2005-11-01 20:00 ` Michael Mauger
2005-11-01 21:10   ` Robert J. Chassell
2005-11-01 22:35   ` Kim F. Storm
2005-11-02  4:22     ` Michael Mauger
2005-11-02 21:47     ` Richard M. Stallman
2005-11-03 21:40       ` Richard M. Stallman
2005-11-02 10:28   ` Richard M. Stallman
2005-11-02 14:45     ` Kim F. Storm [this message]
2005-11-03 13:50       ` Richard M. Stallman
2005-11-03 13:50       ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3u0evcdly.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=mmaug@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).