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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74255 in the body.
You can then email your comments to 74255 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#74255; Package emacs. (Fri, 08 Nov 2024 12:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Van Ly <van.ly <at> SDF.ORG>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 08 Nov 2024 12:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Van Ly <van.ly <at> SDF.ORG>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.91; artist-mode right to left input introduces gaps
Date: Fri, 08 Nov 2024 12:06:55 +0000
[Message part 1 (text/plain, inline)]
Hello,

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.


[x (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]

-- 
vl

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#74255; Package emacs. (Sun, 10 Nov 2024 09:07:02 GMT) Full text and rfc822 format available.

Message #8 received at 74255 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Van Ly <van.ly <at> SDF.ORG>
Cc: 74255 <at> debbugs.gnu.org
Subject: Re: 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.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 23 Nov 2024 12:22:02 GMT) Full text and rfc822 format available.

Notification sent to Van Ly <van.ly <at> SDF.ORG>:
bug acknowledged by developer. (Sat, 23 Nov 2024 12:22:03 GMT) Full text and rfc822 format available.

Message #13 received at 74255-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: van.ly <at> SDF.ORG
Cc: 74255-done <at> debbugs.gnu.org
Subject: Re: bug#74255: 30.0.91;
 artist-mode right to left input introduces gaps
Date: Sat, 23 Nov 2024 14:21:03 +0200
> Cc: 74255 <at> debbugs.gnu.org
> Date: Sun, 10 Nov 2024 11:03:43 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > 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.

No further comments, so I'm now closing this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 21 Dec 2024 12:24:07 GMT) Full text and rfc822 format available.

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.