GNU bug report logs - #77973
30.1; `which-key' breaks `string-rectangle' after popup shown

Previous Next

Package: emacs;

Reported by: Alcor <alcor <at> tilde.club>

Date: Mon, 21 Apr 2025 20:01:02 UTC

Severity: normal

Found in version 30.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alcor <alcor <at> tilde.club>, Mattias EngdegÄrd <mattiase <at> acm.org>
Cc: 77973 <at> debbugs.gnu.org
Subject: bug#77973: 30.1; `which-key' breaks `string-rectangle' after popup shown
Date: Wed, 23 Apr 2025 14:51:34 +0300
> From: Alcor <alcor <at> tilde.club>
> Cc: 77973 <at> debbugs.gnu.org
> Date: Tue, 22 Apr 2025 21:46:57 +0200
> 
> As done in many other places in rect.el fixes the issue on 30.x -
> however, I've also tried backporting
> 3a8222e700304e4dff84fcdfa8ff2a4e48646c82 onto 30.1 and it worked without
> any issues, on top of it being faster as well.
> 
> Would it be possible to cherry-pick 3a8222e onto the emacs-30 branch so
> a fix is available on 30.2? IMO, this bug is annoyingly easy to trigger
> on 30.1 when using `which-key-mode' (see video in previous message), and
> it's not trivial to unbreak rectangle-mark-mode after running into it,
> so having it in the next bugfix release would improve things
> significantly.

My bother with commit 3a8222e is that it uses move-to-column, which
might behave in surprising ways when there are 'display' properties,
TABs, composed characters, and other display features around.

Did someone try the new code in those cases?  If not, I'd like you or
someone else to try that first, because I'd like to avoid introducing
regressions into Emacs 30.2.




This bug report was last modified 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.