[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Native line numbers, final testing
From: |
Alex |
Subject: |
Re: Native line numbers, final testing |
Date: |
Tue, 04 Jul 2017 11:50:44 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> From: Richard Copley <address@hidden>
>> Date: Tue, 4 Jul 2017 17:35:16 +0100
>> Cc: Eli Zaretskii <address@hidden>, address@hidden,
>> Emacs developers <address@hidden>
>>
>> C-d 0 C-b C-n
>> C-d 1 C-b C-n
>> C-d 2 C-p C-p
>>
>> This is supposed to change the character at point to 0 and the
>> characters in the corresponding column in the next two lines to 1
>> and 2.
>>
>> I think that's a common use case and it won't work if
>> display-line-numbers is on ...
>
> Does it really not work for you with display-line-numbers on?
>
>> Open xdisp.c and go to line 30, column 30.
>> Type "C-d C-n C-d C-n C-d C-n C-d C-n"
>> The first C-n goes to column 30 on line 31 as expected.
>> The 2nd C-n goes to column 29 on line 31 (expected column 30).
>> The 3rd C-n goes to column 28 on line 31 (expected 30 (or 29?)).
>> The 4th C-n goes to column 27 on line 31.
>
> I cannot reproduce this, I get column 30 all the time, as expected.
>
> Are you running the latest branch? If so, what are the values of the
> related variables?
Here's an attempt at a relevant macro:
C-n C-d 1
C-p DEL 0
C-b
This replaces the character at point to 0, and the one below it to 1.
Now go into xdisp.c and set display-line-numbers to t:
M-g c 2960
C-17 C-n
C-x e
Notice that it's the previous columns that are changed, and not the
current column.
- Re: Native line numbers, final testing, (continued)
- Re: Native line numbers, final testing, Filipe Silva, 2017/07/04
- Re: Native line numbers, final testing, Richard Copley, 2017/07/04
- Re: Native line numbers, final testing, Eli Zaretskii, 2017/07/04
- Re: Native line numbers, final testing, Richard Copley, 2017/07/04
- Re: Native line numbers, final testing, Filipe Silva, 2017/07/04
- Re: Native line numbers, final testing, Eli Zaretskii, 2017/07/04
- Re: Native line numbers, final testing, Stefan Monnier, 2017/07/04
- Re: Native line numbers, final testing, Filipe Silva, 2017/07/10
- Re: Native line numbers, final testing, Stefan Monnier, 2017/07/10
- Re: Native line numbers, final testing, Eli Zaretskii, 2017/07/04
- Re: Native line numbers, final testing,
Alex <=
- Re: Native line numbers, final testing, Eli Zaretskii, 2017/07/04
- Re: Native line numbers, final testing, Richard Copley, 2017/07/04
- Re: Native line numbers, final testing, Eli Zaretskii, 2017/07/04
Re: Native line numbers, final testing, Andy Moreton, 2017/07/05