[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66711: treesit-default-defun-skipper moves to bol if there is any wh
From: |
Eli Zaretskii |
Subject: |
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@debbugs.gnu.org
> Date: Sun, 29 Oct 2023 13:53:27 +0200
> From: Eli Zaretskii <eliz@gnu.org>
>
> > From: Dominik Honnef <dominik@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?
>
>
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace,
Eli Zaretskii <=