GNU bug report logs - #74255
30.0.91; artist-mode right to left input introduces gaps

Previous Next

Package: emacs;

Reported by: Van Ly <van.ly <at> SDF.ORG>

Date: Fri, 8 Nov 2024 12:08:01 UTC

Severity: normal

Found in version 30.0.91

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: Van Ly <van.ly <at> SDF.ORG>
Cc: 74255 <at> debbugs.gnu.org
Subject: bug#74255: 30.0.91; artist-mode right to left input introduces gaps
Date: Sun, 10 Nov 2024 11:03:43 +0200
> Date: Fri, 08 Nov 2024 12:06:55 +0000
> From:  Van Ly via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Drawing a rectangle in artist-mode going in the directions
> 
>  . down
>  . left to right
>  . up
>  . right to left
> 
> introduces gaps unexpectedly at the final closing top side.  See,
> 
> => http://sdf.org/~van.ly/img/emacs-30-0-91-artist-mode-rectangle-draw.jpeg .
> 
> To demonstrate,
> 
>  1. start, emacs -Q
>  2. open buffer and activate artist-mode
>     a. C-x b a RET
>     b. M-x artist-mode
>  3. draw line going down
>     a. C-c .
>     b. type +, type 40 .
>  4. draw line going left to right
>     a. C-c >
>     b. type +, type 40 .
>  5. draw line going up
>     a. C-c ^
>     b. type +, type 40 .
>  6. draw line going right to left
>     a. C-c <
>     b. type +, type 40 .
>     c. gaps are introduced between sequences of .
> 
> Expected result is a rectangle with no gaps on the top side.

This was because in Emacs 25 picture-mode started to use string-width,
which is inaccurate when TAB characters are inserted into the buffer.

Now fixed on the emacs-30 release branch.




This bug report was last modified 177 days ago.

Previous Next


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