From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Fringe angle bitmap at at eob Date: Wed, 02 Nov 2005 15:45:45 +0100 Message-ID: References: <87u0f3uhci.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130943054 21591 80.91.229.2 (2 Nov 2005 14:50:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2005 14:50:54 +0000 (UTC) Cc: Michael Mauger , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 02 15:50:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EXJtj-0002zw-Cz for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2005 15:47:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXJti-0007z0-VK for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2005 09:47:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EXJtP-0007v7-Es for emacs-devel@gnu.org; Wed, 02 Nov 2005 09:47:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EXJtO-0007uU-Jd for emacs-devel@gnu.org; Wed, 02 Nov 2005 09:47:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXJtO-0007uJ-C4 for emacs-devel@gnu.org; Wed, 02 Nov 2005 09:47:10 -0500 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EXJtL-00083X-2g; Wed, 02 Nov 2005 09:47:07 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id 4EE4D2628A0; Wed, 2 Nov 2005 15:47:05 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Wed, 02 Nov 2005 05:28:29 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45299 Archived-At: "Richard M. Stallman" 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 http://www.cua.dk