GNU bug report logs - #66711
treesit-default-defun-skipper moves to bol if there is any whitespace

Previous Next

Package: emacs;

Reported by: Dominik Honnef <dominik <at> honnef.co>

Date: Mon, 23 Oct 2023 18:43:04 UTC

Severity: normal

Done: Yuan Fu <casouri <at> gmail.com>

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 66711 in the body.
You can then email your comments to 66711 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#66711; Package emacs. (Mon, 23 Oct 2023 18:43:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dominik Honnef <dominik <at> honnef.co>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 23 Oct 2023 18:43:04 GMT) Full text and rfc822 format available.

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

From: Dominik Honnef <dominik <at> honnef.co>
To: bug-gnu-emacs <at> gnu.org
Subject: treesit-default-defun-skipper moves to bol if there is any whitespace
Date: Mon, 23 Oct 2023 19:41:24 +0200
treesit-default-defun-skipper has the following bit of code:

    ;; Moving backward, but there are some whitespace (and only
    ;; whitespace) between point and BOL: go back to BOL.
    ((looking-back (rx (+ (or " " "\t")))
                   (line-beginning-position))
     (beginning-of-line))))

However, as written, the regexp matches if there is any whitespace
before point, not if there is only whitespace.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66711; Package emacs. (Sun, 29 Oct 2023 11:55:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dominik Honnef <dominik <at> honnef.co>, Yuan Fu <casouri <at> gmail.com>
Cc: 66711 <at> debbugs.gnu.org
Subject: Re: bug#66711: treesit-default-defun-skipper moves to bol if there is
 any whitespace
Date: Sun, 29 Oct 2023 13:53:27 +0200
> From: Dominik Honnef <dominik <at> honnef.co>
> Date: Mon, 23 Oct 2023 19:41:24 +0200
> 
> treesit-default-defun-skipper has the following bit of code:
> 
>     ;; Moving backward, but there are some whitespace (and only
>     ;; whitespace) between point and BOL: go back to BOL.
>     ((looking-back (rx (+ (or " " "\t")))
>                    (line-beginning-position))
>      (beginning-of-line))))
> 
> However, as written, the regexp matches if there is any whitespace
> before point, not if there is only whitespace.

Yuan, any comments?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66711; Package emacs. (Sat, 18 Nov 2023 08:37:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: casouri <at> gmail.com
Cc: 66711 <at> debbugs.gnu.org, dominik <at> honnef.co
Subject: Re: bug#66711: treesit-default-defun-skipper moves to bol if there is
 any whitespace
Date: Sat, 18 Nov 2023 10:36:47 +0200
Ping!  Yuan, any comments?

> Cc: 66711 <at> debbugs.gnu.org
> Date: Sun, 29 Oct 2023 13:53:27 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Dominik Honnef <dominik <at> honnef.co>
> > Date: Mon, 23 Oct 2023 19:41:24 +0200
> > 
> > treesit-default-defun-skipper has the following bit of code:
> > 
> >     ;; Moving backward, but there are some whitespace (and only
> >     ;; whitespace) between point and BOL: go back to BOL.
> >     ((looking-back (rx (+ (or " " "\t")))
> >                    (line-beginning-position))
> >      (beginning-of-line))))
> > 
> > However, as written, the regexp matches if there is any whitespace
> > before point, not if there is only whitespace.
> 
> Yuan, any comments?
> 
> 
> 
> 




Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Mon, 11 Dec 2023 01:46:02 GMT) Full text and rfc822 format available.

Notification sent to Dominik Honnef <dominik <at> honnef.co>:
bug acknowledged by developer. (Mon, 11 Dec 2023 01:46:02 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 66711-done <at> debbugs.gnu.org, dominik <at> honnef.co
Subject: Re: bug#66711: treesit-default-defun-skipper moves to bol if there is
 any whitespace
Date: Sun, 10 Dec 2023 17:45:18 -0800

On 11/18/23 12:36 AM, Eli Zaretskii wrote:
> Ping!  Yuan, any comments?
>
>> Cc: 66711 <at> debbugs.gnu.org
>> Date: Sun, 29 Oct 2023 13:53:27 +0200
>> From: Eli Zaretskii <eliz <at> gnu.org>
>>
>>> From: Dominik Honnef <dominik <at> honnef.co>
>>> Date: Mon, 23 Oct 2023 19:41:24 +0200
>>>
>>> treesit-default-defun-skipper has the following bit of code:
>>>
>>>      ;; Moving backward, but there are some whitespace (and only
>>>      ;; whitespace) between point and BOL: go back to BOL.
>>>      ((looking-back (rx (+ (or " " "\t")))
>>>                     (line-beginning-position))
>>>       (beginning-of-line))))
>>>
>>> However, as written, the regexp matches if there is any whitespace
>>> before point, not if there is only whitespace.
>> Yuan, any comments?

Thanks, Dominik and Eli. I applied a patch that should fix the regexp.

Yuan




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

This bug report was last modified 1 year and 124 days ago.

Previous Next


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