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: Native line numbers, final testing Date: Sun, 02 Jul 2017 05:40:44 +0300 Message-ID: <83bmp3pnmb.fsf@gnu.org> References: <83y3s9pm2a.fsf@gnu.org> <87vandz7lw.fsf@lylat> <83wp7tpcav.fsf@gnu.org> <87r2y1z45o.fsf@lylat> <83vandp7wz.fsf@gnu.org> <87mv8pyy7f.fsf@lylat> <83shigpoxq.fsf@gnu.org> <87mv8nkh31.fsf@lylat> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1498963308 9514 195.159.176.226 (2 Jul 2017 02:41:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 02:41:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alex Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 02 04:41:43 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 1dRUpM-0001a1-Uw for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 04:41:37 +0200 Original-Received: from localhost ([::1]:56519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRUpL-0006DH-Vc for ged-emacs-devel@m.gmane.org; Sat, 01 Jul 2017 22:41:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRUoi-0006D9-MO for emacs-devel@gnu.org; Sat, 01 Jul 2017 22:40:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRUof-0007yg-Ja for emacs-devel@gnu.org; Sat, 01 Jul 2017 22:40:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRUof-0007yV-Fu; Sat, 01 Jul 2017 22:40:53 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3468 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dRUoe-0003Cp-Rh; Sat, 01 Jul 2017 22:40:53 -0400 In-reply-to: <87mv8nkh31.fsf@lylat> (message from Alex on Sat, 01 Jul 2017 15:00:50 -0600) 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:216083 Archived-At: > From: Alex > Cc: emacs-devel@gnu.org > Date: Sat, 01 Jul 2017 15:00:50 -0600 > > It's not intuitive to me why this occurs between lines with the same > display line number width. If vertical-motion uses the same heuristic as > display of line numbers, then why is the column changing between lines > even when the width of line numbers isn't? Because vertical-motion thinks the display uses N+1 columns whereas it actually uses only N. > Is it because it's using the heuristic with different inputs? Yes. The important input is the actual window-start point. > If so, can't they be modified to achieve the same results as the > display of line numbers? I couldn't (yet) find a way of doing that. > Why is it necessary for line numbers to actually affect the vertical > position of characters in the buffer? Because vertical-motion does its column calculation in pixels, C-n/C-p need to adjust the calculations due to the pixels occupied by line numbers. > I suppose it's a bit late to be asking this question, but the > approach from an outside view feels odd. I don't know what the > options were, but it's odd that line numbers aren't in their own > special area like in (n)linum. Does the display engine not work well > with margins? I firmly believe that line numbers should not be displayed on the margins, because that produces problems for packages that want to display stuff there.