From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: line-number-mode at EOB Date: Tue, 18 Jul 2017 22:38:36 +0200 Message-ID: <87shhta3ar.fsf@rosalinde> 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> <834lu9d0to.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500410612 20178 195.159.176.226 (18 Jul 2017 20:43:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2017 20:43:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 18 22:43:28 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 1dXZL6-0004zw-7U for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2017 22:43:28 +0200 Original-Received: from localhost ([::1]:58555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXZLB-00017K-T0 for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2017 16:43:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXZGV-0005uJ-PI for emacs-devel@gnu.org; Tue, 18 Jul 2017 16:38:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXZGU-0007ID-Vl for emacs-devel@gnu.org; Tue, 18 Jul 2017 16:38:43 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:56027) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXZGQ-0007GQ-TR; Tue, 18 Jul 2017 16:38:39 -0400 Original-Received: from rosalinde ([83.135.16.220]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MX1dc-1dALxQ2YjM-00W0K6; Tue, 18 Jul 2017 22:38:36 +0200 In-Reply-To: <834lu9d0to.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 18 Jul 2017 22:03:47 +0300") X-Provags-ID: V03:K0:0R+1biW6tWAZp22lNzHSEi/9ktjIiggXjvA658e8B2di1ZVmQZm pnx9eBGUjTSqkShiVhC4T2ozPPb4LzHRb+aUys7fomJsu4PJ4XFhyjOee4fivW/FShziPjQ RVeIoxvzgyNYb4LpaGSql9PwBqCviHyQtgQV3YKIfwzfY0VNGX00a5ALw54sioU8s4s7owO abtOqHqR3TXP/cx1oeneA== X-UI-Out-Filterresults: notjunk:1;V01:K0:+cSU77/9zQo=:SKg+QucACaFK7IcvyBvn7i p2ggvF4x7/c2DUpYwaT7KFn0WVFwYmAK/a7FWJuZ27ZaMDPLr+GKsaphTp5Rayvr6E2L3ajRG zIcuvpFWHaaqTBVhNEsrYwN7WH7KeiTWVOHOlATUtxMvAQJi0Aszzt3BcBHDOd+0BiOp3Ukbx 6TUkR/B29JchxbCLKoiyGRax6uWUZYBh46ITp+6EMMqI5OHkjeFRWM67BmScQx7OhMSoxs6U3 +o2tQUV/aisZ5pST7n8UASQ1SWgxOfooT4KiZR0qkdbJjDTtfj2egv0Kgd1YI21APXz7PD54T u+TV5S3LhsfCubTBtRUzrn7C6j6XXVqhiTxn2H2Kmxb+kPeWZgAjRB16OBsdnFTU5R4McW7Y5 M0uEvY9DErhxlt4Nh0gJUjG7HPOQsnGrx2UGIQaPpHx3VDVT6UhFHbxcZZkDo/3Ji00NUjvmO SjX3B/UhpOlLaaZafM9C5Oma+lhjbQ/GLKQYf62AfRalDHQ+Z9j66NesSz6m+oAU8NOeChFZR CBp+q2qmvgLk/0D3KGEl8lvwMGq3iN2F2fVfcTx55qi9qG+JACDApggLfPKlJ7HLAeYgsfsZe fg53GEnVGu1g0QtWYN1FJv2nhCWsUVOLNYynU/TZVPAWLPtyPAR6ffOiAZfmr24+xNvaP6uTI +N5W7Pd13kUYzeYOF/lD2lY16EU0Ra2+UVwdvcKybVYB6FidIpUW0nugP0pR9MakYWkH6zQ+C 764HUopOmZyhzcc9sfunxXbrGYMRpl65vn08XuZkGkN3akUGL42yZK6MPRXIImaLenf4cydQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 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:216860 Archived-At: On Tue, 18 Jul 2017 22:03:47 +0300 Eli Zaretskii wrote: > 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. According to rgrep, what-line occurs in these Emacs Lisp libraries: vi.el, tpu-edt.el (both in obsolete/), f90.el, view.el, and edt.el. In all but one case, it's used just as a command to return the line number at point, so for these it would be no problem if it returned "EOB" at EOB. The exception is f90.el, which uses it noninteractively: (message "Matches %s: %s" (what-line) (buffer-substring (line-beginning-position) (line-end-position))) I think this could only be problematic if EOB is not preceded by a newline: then it would indeed be necessary to change the caller to ensure that point isn't at EOB. Alternatively, what-line could be changed so that in noninteractive uses it always returns a line number, even at EOB. But anyway, it seems like the idea of not displaying a line number in the mode line at EOB is at best too controversial to accept outright, since there are incompatible intuitions about whether EOB is a line (when preceded by a newline). Given that, if it were to be included in Emacs at all, then it should be conditioned by a user option. Steve Berman