all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel@gnu.org
Subject: Re: Native line numbers display and tab stops
Date: Sat, 24 Jun 2017 01:02:47 +0200	[thread overview]
Message-ID: <87wp82wbmw.fsf@rosalinde> (raw)
In-Reply-To: <m2k24249wd.fsf@newartisans.com> (John Wiegley's message of "Fri,  23 Jun 2017 15:27:46 -0700")

On Fri, 23 Jun 2017 15:27:46 -0700 John Wiegley <jwiegley@gmail.com> wrote:

>>>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> 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



  reply	other threads:[~2017-06-23 23:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23 15:08 Native line numbers display and tab stops Eli Zaretskii
2017-06-23 17:33 ` Dmitry Gutov
2017-06-23 17:50 ` Alan Mackenzie
2017-06-23 21:09   ` Eli Zaretskii
2017-06-23 22:27     ` John Wiegley
2017-06-23 23:02       ` Stephen Berman [this message]
2017-06-24 17:31       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wp82wbmw.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.