unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dominik Honnef <dominik@honnef.co>, Yuan Fu <casouri@gmail.com>
Cc: 66711@debbugs.gnu.org
Subject: bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace
Date: Sun, 29 Oct 2023 13:53:27 +0200	[thread overview]
Message-ID: <83jzr5bq6g.fsf@gnu.org> (raw)
In-Reply-To: <877cndme2j.fsf@honnef.co> (message from Dominik Honnef on Mon, 23 Oct 2023 19:41:24 +0200)

> 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?





  reply	other threads:[~2023-10-29 11:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23 17:41 bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace Dominik Honnef
2023-10-29 11:53 ` Eli Zaretskii [this message]
2023-11-18  8:36   ` Eli Zaretskii
2023-12-11  1:45     ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83jzr5bq6g.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=66711@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    --cc=dominik@honnef.co \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).