From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 14:42:24 2023 Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 18:42:24 +0000 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 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 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 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 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) 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) From: Dominik Honnef To: bug-gnu-emacs@gnu.org Subject: 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 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 29 07:54:25 2023 Received: (at 66711) by debbugs.gnu.org; 29 Oct 2023 11:54:25 +0000 Received: from localhost ([127.0.0.1]:40602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qx4N6-0008TZ-Sx for submit@debbugs.gnu.org; Sun, 29 Oct 2023 07:54:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qx4N5-0008TG-7T for 66711@debbugs.gnu.org; Sun, 29 Oct 2023 07:54:23 -0400 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 1qx4MS-0002ao-Ca; Sun, 29 Oct 2023 07:53:44 -0400 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=yfERVwVfkZPbWxEIijUIN0Cn1NnZtpZc1x9oTIxmGYo=; b=RQArYSTdiU/q JBVdeJup8GJu+XSE8dqZ199C9lr4ItjBWxpUwCb7n/df7ShTYpYPFc2j6jtgiur44nxMizPglj7FK PaVVALn4lwyO9Ocw6AAf1XazvFqqvEfdMiXrHrFLyo8w4qfbRdIBc8cmfMQ7qElGJp0sc0c6kGqsu 8WPJv7KuDoLhOBMW/phV/5D6TP9jPjPs0GF4QxFfI6JUAf6gSdSpz6YufhMdUD2mEpIR2E5U43dMX frHjERQIY8a0Ue04qgJlrW08aI02jbBd22A5WvOgb8C2ccdQG54bT8cPxfad5oDwNWoFsl0obiSbQ 1OKU1tDDcL3ZA1CMrSKeMg==; Date: Sun, 29 Oct 2023 13:53:27 +0200 Message-Id: <83jzr5bq6g.fsf@gnu.org> From: Eli Zaretskii To: Dominik Honnef , Yuan Fu In-Reply-To: <877cndme2j.fsf@honnef.co> (message from Dominik Honnef on Mon, 23 Oct 2023 19:41:24 +0200) Subject: Re: bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace References: <877cndme2j.fsf@honnef.co> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66711 Cc: 66711@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 18 03:37:00 2023 Received: (at 66711) by debbugs.gnu.org; 18 Nov 2023 08:37:00 +0000 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 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 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==; Date: Sat, 18 Nov 2023 10:36:47 +0200 Message-Id: <837cmfo3ts.fsf@gnu.org> From: Eli Zaretskii To: casouri@gmail.com In-Reply-To: <83jzr5bq6g.fsf@gnu.org> (message from Eli Zaretskii on Sun, 29 Oct 2023 13:53:27 +0200) Subject: Re: bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace References: <877cndme2j.fsf@honnef.co> <83jzr5bq6g.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66711 Cc: 66711@debbugs.gnu.org, dominik@honnef.co X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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? > > > > From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 10 20:45:42 2023 Received: (at 66711-done) by debbugs.gnu.org; 11 Dec 2023 01:45:42 +0000 Received: from localhost ([127.0.0.1]:52170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCVMb-0004wk-Qd for submit@debbugs.gnu.org; Sun, 10 Dec 2023 20:45:42 -0500 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]:61912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCVMZ-0004wW-CP for 66711-done@debbugs.gnu.org; Sun, 10 Dec 2023 20:45:41 -0500 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5d3c7ef7b31so36285727b3.3 for <66711-done@debbugs.gnu.org>; Sun, 10 Dec 2023 17:45:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702259119; x=1702863919; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aUYkPzd1cV9dQrs+h138t+3pHqHa69qtqkXPqrdJymA=; b=YOYmbxmlGkL+6lb3SP1Ve+XPNe7xT16KpzMnQpKRNcrnk4xrdBrXOxWfdtIx4PkLI2 FkM+DtCHYHGh/hCMHmid4NK8xwXnOzQW3oTP2OmwgLZ9NsQBgxkzEsJnObfiAOf+CC0n b5GPriO2vIV6zxrSOidia0D9btTUM8LO4C4QOPPfmbBd4wnPLGjWuCXyS4ZPsJHHw4nD 02kPF/PcOnoh2hiWvO6YuWN4ttCjj+lkYiUcW3jFhy16hLENcKlGGZIhA5/6oq+6UE66 8A1sdICAl7PFopBFz3NO14bOjuO/ibjpt8bLMC0SNfs3zU4zCddOEdWWkqgTIQUG5eWT lPNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702259119; x=1702863919; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aUYkPzd1cV9dQrs+h138t+3pHqHa69qtqkXPqrdJymA=; b=ZNLVdfnGssVXkgZrbcnnfUJcIzb4gDV9M4mJL2wavPJw5mNSd8D1mUM9URRu3K3uay 3SgRY8hNPA2K58ot8oNzd3pD6j4zfd2s9EB76q0J00NixsFFgIYxa5AI+RCTwyKsczxp EYg+VPL44Os2iVx8z0Bjgmnwpn2mPfsYARhR+Ihy08ER0Wip6+SAuuFTiqZ5KCBC4tM/ yY7PGanTygpggIH87sk91l180bdM9+UQN++zjxJoc255VPpx3BZpBm/zapHEymhd4N3W 3qzfxhPZE7bbd/SmSLRHdPg9GzVckQuHO1/UhJ8bsCryTZKWNsa+mHxts0WVyM39ZQow FhsA== X-Gm-Message-State: AOJu0YwFSaYR4fP6sFoeZPYJJB64St1OH3jjXJjo64kRSaV2177fVqzs Wip6JilRjMc3Tudmgacc6Y4= X-Google-Smtp-Source: AGHT+IEutEhYlNrvtaMcvOsM0FOhd1B3yKMI1d72CGvcoPHRhR2cdrwodLQFHL0pgYeY1cK/yI4jGQ== X-Received: by 2002:a81:9290:0:b0:5d3:d6c3:dce with SMTP id j138-20020a819290000000b005d3d6c30dcemr2011613ywg.12.1702259119386; Sun, 10 Dec 2023 17:45:19 -0800 (PST) Received: from [192.168.1.7] (172-117-161-177.res.spectrum.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id iw1-20020a170903044100b001cc29ffcd96sm4962312plb.192.2023.12.10.17.45.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Dec 2023 17:45:19 -0800 (PST) Message-ID: Date: Sun, 10 Dec 2023 17:45:18 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#66711: treesit-default-defun-skipper moves to bol if there is any whitespace Content-Language: en-US To: Eli Zaretskii References: <877cndme2j.fsf@honnef.co> <83jzr5bq6g.fsf@gnu.org> <837cmfo3ts.fsf@gnu.org> From: Yuan Fu In-Reply-To: <837cmfo3ts.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66711-done Cc: 66711-done@debbugs.gnu.org, dominik@honnef.co X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 11/18/23 12:36 AM, Eli Zaretskii wrote: > 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? Thanks, Dominik and Eli. I applied a patch that should fix the regexp. Yuan From unknown Mon Jun 23 18:32:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Jan 2024 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator