From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace Date: Sat, 18 Nov 2023 10:36:47 +0200 Message-ID: <837cmfo3ts.fsf@gnu.org> References: <877cndme2j.fsf@honnef.co> <83jzr5bq6g.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1161"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66711@debbugs.gnu.org, dominik@honnef.co To: casouri@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 18 09:37:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r4GpO-00005E-0p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Nov 2023 09:37:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4Gp4-0005oO-FU; Sat, 18 Nov 2023 03:37:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4Gp3-0005mg-R6 for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 03:37:01 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4Gp3-0004Ug-GT for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 03:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4Gp4-0006Ma-4S for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 03:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Nov 2023 08:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66711 X-GNU-PR-Package: emacs Original-Received: via spool by 66711-submit@debbugs.gnu.org id=B66711.170029662024452 (code B ref 66711); Sat, 18 Nov 2023 08:37:02 +0000 Original-Received: (at 66711) by debbugs.gnu.org; 18 Nov 2023 08:37:00 +0000 Original-Received: from localhost ([127.0.0.1]:47760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4Gp2-0006MK-BQ for submit@debbugs.gnu.org; Sat, 18 Nov 2023 03:37:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4Gp0-0006M7-1B for 66711@debbugs.gnu.org; Sat, 18 Nov 2023 03:36:58 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4Got-0003N4-EF; Sat, 18 Nov 2023 03:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vNOj9caQhy6PtrjUcRHcZm2PdZ3en2KA/vz/Jd3L4Yc=; b=EE0hitw5a2pU yhAVbFOqk5TaUcYTIYmrmUvUUPO5j9tIr3WaNEKRSW6Qgoqb7srtJaLKn82/VrSSq5w0Jh82Rn/5l D+I+Uqc/Qi00pLCOOPgOsnfz7CfdoXp3xrhm6qhKzjfu22MO3C65GGNrj/zGCYQrlYjZPMlVWNAXo tZKSUX0zkVWcgKLxC+8/MXWdqG1oggs0z8myBz5c6xmOuK8iyQp+qWPqg1Ayv3vsdWHdHGtrBcMzc nerSqVzv4AVWjkL6PkMxhl5yqMMmbhyrXSQtisuQeU0BHIpoQUHzNqGFo1WsiNE5SnZBSTLrGz0Dl ld0lHI9daX1ejBb1SGxwxg==; In-Reply-To: <83jzr5bq6g.fsf@gnu.org> (message from Eli Zaretskii on Sun, 29 Oct 2023 13:53:27 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274532 Archived-At: Ping! Yuan, any comments? > Cc: 66711@debbugs.gnu.org > Date: Sun, 29 Oct 2023 13:53:27 +0200 > From: Eli Zaretskii > > > From: Dominik Honnef > > 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? > > > >