From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: line-number-mode at EOB Date: Tue, 18 Jul 2017 22:03:47 +0300 Message-ID: <834lu9d0to.fsf@gnu.org> References: <83tw35thxw.fsf@gnu.org> <87tw35cc70.fsf@rosalinde> <83injktb9p.fsf@gnu.org> <87k240xhk6.fsf@rosalinde> <87k236vh7p.fsf_-_@rosalinde> <83a841dcb6.fsf@gnu.org> <87zic1aenv.fsf@rosalinde> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1500404690 31692 195.159.176.226 (18 Jul 2017 19:04:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2017 19:04:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 18 21:04:46 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXXnZ-000809-JH for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2017 21:04:45 +0200 Original-Received: from localhost ([::1]:58194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXXne-0003f0-TL for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2017 15:04:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXXn3-0003ej-CZ for emacs-devel@gnu.org; Tue, 18 Jul 2017 15:04:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXXmy-0002S6-F3 for emacs-devel@gnu.org; Tue, 18 Jul 2017 15:04:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXXmy-0002S1-Bn; Tue, 18 Jul 2017 15:04:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1515 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dXXmv-0003Pj-IJ; Tue, 18 Jul 2017 15:04:08 -0400 In-reply-to: <87zic1aenv.fsf@rosalinde> (message from Stephen Berman on Tue, 18 Jul 2017 18:33:08 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216857 Archived-At: > From: Stephen Berman > Cc: emacs-devel@gnu.org > Date: Tue, 18 Jul 2017 18:33:08 +0200 > > > Hmm... I don't understand why you needed to change the format spec to > > %l, and also why the change in mode_line_update_needed. Isn't it > > enough to just produce "EOB" instead of a number? > > If just mode-line-position in bindings.el is changed, that fails to > update the mode line frequently enough: if you go to point-max in > *scratch*, so the mode line displays "EOB", then continually typing C-b > or C-p doesn't change the "EOB". Conversely, if just decode_mode_spec > is changed to output "EOB" at point-max, the current code in > mode-line-position will make the mode line display "LEOB" when > column-number-mode is disabled. Finally, even with both of the other > changes, without the change in mode_line_update_needed, if the character > immediately before EOB is not a newline (and column-number-mode is not > enabled), then if point is at EOB, continually typing C-b will keep > displaying "EOB" until the line number changes, and if point in on the > last line but before EOB, typing C-f to move to EOB will not change the > display to "EOB". Right, thanks for the explanations. In any case, I don't think that what-line should be changed, because it's used elsewhere, and such a change is backward-incompatible.