From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dominik Honnef Newsgroups: gmane.emacs.bugs Subject: bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace Date: Mon, 23 Oct 2023 19:41:24 +0200 Message-ID: <877cndme2j.fsf@honnef.co> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10567"; mail-complaints-to="usenet@ciao.gmane.io" To: 66711@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 23 20:43:02 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 1quztF-0002Sj-Is for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Oct 2023 20:43:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quzsw-0004VN-EF; Mon, 23 Oct 2023 14:42:43 -0400 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 1quzsr-0004UP-E4 for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 14:42:39 -0400 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 1quzsp-0005MC-GD for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 14:42:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quztI-0006Yu-Ic for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 14:43:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dominik Honnef Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Oct 2023 18:43:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66711 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169808654425129 (code B ref -1); Mon, 23 Oct 2023 18:43:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 18:42:24 +0000 Original-Received: from localhost ([127.0.0.1]:51666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quzse-0006X9-3g for submit@debbugs.gnu.org; Mon, 23 Oct 2023 14:42:24 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:39118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quywL-0004um-Eu for submit@debbugs.gnu.org; Mon, 23 Oct 2023 13:42:09 -0400 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 1quyvj-0000Pd-VG for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 13:41:33 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quyvi-0001l6-Db for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 13:41:31 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-32db8f8441eso2858808f8f.0 for ; Mon, 23 Oct 2023 10:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=honnef-co.20230601.gappssmtp.com; s=20230601; t=1698082887; x=1698687687; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=YhMdKxFPVdvfY0d6PCT+sXc++ndP72uoYD9w7KWPAHU=; b=GGgvUjEZ2aXuApDWLHI7o6vWjgrSFs6fydvG8I0MDrAjHss0k/khsWzZsgsZgzZtqy mAGI7OA7BxkUK9072n23GVqhuNPzbLY8KQD9FKC6d3WUnZpGfu9QbjSKiyyFtNkggYJd pn56/0s+FEvQ4GFYw2kkj2iM/jk1s7lOent0LBe+yLoyxu9oVNSGqFekHebXvqpbk10Q odXlTCZYgnGhQp3XIOlthXwO7CWBV4J8nSSnSs3gsFL1CwzuGMejMsZyqVZfLEac/Qim zI3zgP+r3SVtEqgCUmb8ggdW645Dfa2CxcAcEdaaUHiiJBQxAro2KcXBdMe8h82zcin2 kg4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698082887; x=1698687687; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YhMdKxFPVdvfY0d6PCT+sXc++ndP72uoYD9w7KWPAHU=; b=CvWpXYBjKVRhQ127q3jXnrL+Ad6vbvVR13dHFFPITrPxbLykNoU0stcUhh0DXrwVOA t9HLCc+siQ0AS0SsIHmjL02A6IGJUsQEWM1cLP4XtLvrchVAlssEGcrlDpZm4rzx624m UJSPTI7rKi290MsGGJJGyoeiOgEkPJSlykMC285A+F+pdU10Z/Th3igEerGjpecRXCQG wk94aCps3T2piQHyIt/3KhP+EtXkj4V6zU0rbQfOrUx5b2+LryBs9LvY/POVBdvsycb4 1Cp0MhcByKcgjJgJZgUn3xEg6wP5XcgGfW722CBLkIBqRP8wXvm+r5lehZAO94v2eV6A iJ8g== X-Gm-Message-State: AOJu0Yx62QH2KeNI1WK02VSAKGQzlJw9vLftBLmWHxHwNWRl3RL9uirI Eb1xLGzM4hN0GMJFUuQNxup0VgUPzmjH5sDRzCs= X-Google-Smtp-Source: AGHT+IFTwdOmg/OncsLkxEFAc22e+fuM5Y2sMQIfK2v1rhf9kvoTEMmq0s5iXiNbdPR+e7muHySLfw== X-Received: by 2002:a5d:558e:0:b0:32d:9332:816c with SMTP id i14-20020a5d558e000000b0032d9332816cmr7161762wrv.51.1698082886809; Mon, 23 Oct 2023 10:41:26 -0700 (PDT) Original-Received: from localhost (ip-176-199-155-051.um44.pools.vodafone-ip.de. [176.199.155.51]) by smtp.gmail.com with ESMTPSA id f9-20020adff449000000b0032d81837433sm8198642wrp.30.2023.10.23.10.41.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 10:41:25 -0700 (PDT) Received-SPF: none client-ip=2a00:1450:4864:20::436; envelope-from=dominik@honnef.co; helo=mail-wr1-x436.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 23 Oct 2023 14:42:17 -0400 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:273043 Archived-At: 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.