unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Cc: 73005@debbugs.gnu.org, da_vid@orange.fr
Subject: bug#73005: [REGRESSION, BISECTED]: line numbers disappear when pressing `df` in evil-mode
Date: Tue, 03 Sep 2024 18:30:08 +0300	[thread overview]
Message-ID: <86a5go7o1r.fsf@gnu.org> (raw)
In-Reply-To: <378550cb5821f2a459742bb78b960280024ee30a.camel@yandex.ru> (message from Konstantin Kharlamov on Tue, 03 Sep 2024 17:46:09 +0300)

> Cc: da_vid@orange.fr
> From: Konstantin Kharlamov <Hi-Angel@yandex.ru>
> Date: Tue, 03 Sep 2024 17:46:09 +0300
> 
> CCing the commit author.
> 
> Sorry for using external plugin, but master has two separate unrelated
> critical regressions (the other one is going via link in *Help* buffer
> and getting Emacs locked up with 100% CPU and quickly increasing memory
> usage, which complicates reducing the steps), and since there's a clear
> commit that introduced the problem I decided to report it as is.
> 
> # Steps to reproduce
> 
> 1. Make sure you're in the Emacs repository and `./build/src/emacs` is
> the built binary
> 2. Execute `git clone --depth 1 https://github.com/emacs-evil/evil
> /tmp/evil`
> 3. Execute `PATH="$(pwd)/build/src/:$PATH" make -C /tmp/evil emacs`
> (Emacs with Evil loaded will start)
> 4. Press `n` to refuse running tests
> 5. Turn line numbers on by evaluating: (setq-default display-line-
> numbers 'visual)
> 6. Press `df`

What does "df" do?  Does it somehow end up calling string-pixel-width?

IOW, please show how string-pixel-width is related to the above.

> ## Expected
> 
> Line numbers are still shown
> 
> ## Actual
> 
> Line numbers disappear
> 
> # Additional information
>    
> The commit that introduced the problem:
>    
>    commit dffdbc1f1fd6569c518e2e3b5e771a54e9e9483f (HEAD)
>    Author: David Ponce <da_vid@orange.fr>
>    Date:   Thu Aug 22 16:56:11 2024 +0200
>    
>        Use 'with-work-macro' in 'string-pixel-width'

Does it help to replace

   (setq display-line-numbers nil

with

   (setq-local display-line-numbers nil

in string-pixel-width?





  reply	other threads:[~2024-09-03 15:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03 14:46 bug#73005: [REGRESSION, BISECTED]: line numbers disappear when pressing `df` in evil-mode Konstantin Kharlamov
2024-09-03 15:30 ` Eli Zaretskii [this message]
2024-09-03 16:18   ` Konstantin Kharlamov
2024-09-04 13:02     ` Konstantin Kharlamov
2024-09-04 13:15       ` Eli Zaretskii
2024-09-04 16:00         ` Konstantin Kharlamov
2024-09-04 22:07           ` David Ponce via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-05  5:49             ` Eli Zaretskii
2024-09-21  9:02               ` Eli Zaretskii
2024-09-21  9:09                 ` Konstantin Kharlamov
2024-09-21 10:10                 ` David Ponce via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-03 16:32   ` Konstantin Kharlamov

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86a5go7o1r.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=73005@debbugs.gnu.org \
    --cc=Hi-Angel@yandex.ru \
    --cc=da_vid@orange.fr \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).