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: Native line numbers display and tab stops Date: Sat, 24 Jun 2017 01:02:47 +0200 Message-ID: <87wp82wbmw.fsf@rosalinde> References: <838tkivj1i.fsf@gnu.org> <20170623175009.GA3295@acm> <834lv6v2bs.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498259015 25062 195.159.176.226 (23 Jun 2017 23:03:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 23 Jun 2017 23:03:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 24 01:03:29 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 1dOXbs-0006EN-Ue for ged-emacs-devel@m.gmane.org; Sat, 24 Jun 2017 01:03:29 +0200 Original-Received: from localhost ([::1]:37564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOXby-0005Ae-5T for ged-emacs-devel@m.gmane.org; Fri, 23 Jun 2017 19:03:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOXbN-0005AY-DG for emacs-devel@gnu.org; Fri, 23 Jun 2017 19:02:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOXbM-0005sY-Ku for emacs-devel@gnu.org; Fri, 23 Jun 2017 19:02:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:62180) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOXbI-0005pW-NW; Fri, 23 Jun 2017 19:02:52 -0400 Original-Received: from rosalinde ([83.135.27.165]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MHso5-1dKxEL0LVt-003aEO; Sat, 24 Jun 2017 01:02:48 +0200 In-Reply-To: (John Wiegley's message of "Fri, 23 Jun 2017 15:27:46 -0700") X-Provags-ID: V03:K0:swye/pbq9Zs1mIHAmZqHhHkFM0/BpePbFpUj8Jk62JhRtTZMgD6 ns0W3Qdp59cv25hcYKjKI8F7euIxsUaULkFnsvv873vxCJ7/Q25ZJkr5d+nVJ8JfZHZcpAz RYMyctLbU1HGt5QHm0VVkvEN8w+mmAk+PxdbipN1iXQpgdABzSmuobXrj8ITCgzNY2iSqCc zaOho0cj03X890llNW98g== X-UI-Out-Filterresults: notjunk:1;V01:K0:1HrFKH0oOfQ=:Kh3xWoJ2lYYLelRkP4yofF UXkkACBSeia2t9TyrjdyHzj39X9DOlSFyYolpaeXB4a1JL4RQg0JuQXeSW7tBscj1uLf+YJRq z5jccLtaE23mheDRhP4Fv17QlyMX0AD5SXDs59KeThxC047xV4iN1YSnSU9d8EhaaamiX5J9O dcsleuZPQv/tCQINfdwvWPwSITHT6Icgwm8nKUMmsvqqSofYmVb1zw2koFqK3i+EKbSemKNrc Ai7NDI3pFpUOUXL4eRCpRFNqBnfhBbe2/UjSuU9vSIvpo28lJIOUiQGQ2gNL+cLi0nuurac8x ODD7eUnUMOta9PqLooJTCqsrIn+WZR2sSexYz7Rh7qCRCdN+uS4u0cgxrYiIcQbRl8eGj+DjW fEDPNTBQHHyjtgQwYmewL+LLK0tJG9jTn0dAeJiCWt985DCo/guWT1HhPmAhXXTQqT8tq7KZL w1ba/kBunc1IOdCooe4Jm/ItR+EJjGCrA54f+N3sLi3IIjylsQEDEUamTuH4qJ+C+bvI+9Guz EuTGLoBZ2EZRKnf4+4PYoIHulniOlY/F0cJeXF/QLgSPspTAoHsbPeVD6qITI1A35gqZCYdF0 zozWNuPmg+UorWYGoFcNHGjfklLN5FSBEylmSeR9UIpZ42mkO/X+9fff64VkqXq07HRrGl+Hu Oz9Y/1YvwBZ/FmlRgpMDHCkVLvR9Hu7l06yNuJLJX2tznrqHqENiwgP5HSO7dlhGZZXzbRhFa gLUH+0lgNgbs3E4Elk/GaCx0BKNvQZX2ruzCN8ZyTvkLRAeGhZWvQwex8xeU7OiVheIdLBFj X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 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:215921 Archived-At: On Fri, 23 Jun 2017 15:27:46 -0700 John Wiegley wrote: >>>>>> "EZ" == Eli Zaretskii writes: > > EZ> When you switch on line numbers, text of all lines is pushed to the right, > EZ> but tab stops are left in the same horizontal position. They are all left > EZ> at that position, so they still line up. > > Not having tried it, but that does sound counter-intuitive at first glance... The interaction with goal-column is odd. E.g. in *scratch*: 1. M-x fundamental-mode 2. M-: (setq display-line-numbers t) 3. M-x column-number-mode 4. TAB push the text of first line rightward, so that the first `;' is positioned on `o' in `To' on the second line, which the mode line indicates is column 8. 5. C-x C-n SPC to set the goal-column to 8. 6. C-n to move down to the second line. => Point is now not on the `o' in `To' but on the `e' in `create', four columns to the right (but still column 8 according to the mode line indicator). In other words, though the movement correctly preserves the goal column, visually it appears not to. The same effect happens when setting line-prefix (as expected, given what Eli pointed out). Steve Berman