From unknown Sun Jun 22 11:33:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#61998 <61998@debbugs.gnu.org> To: bug#61998 <61998@debbugs.gnu.org> Subject: Status: 29.0.60; `treesit-simple-indent-presets' `prev-line' has incorrect position Reply-To: bug#61998 <61998@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:33:53 +0000 retitle 61998 29.0.60; `treesit-simple-indent-presets' `prev-line' has inco= rrect position reassign 61998 emacs submitter 61998 Troy Brown severity 61998 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 02:51:53 2023 Received: (at submit) by debbugs.gnu.org; 6 Mar 2023 07:51:53 +0000 Received: from localhost ([127.0.0.1]:41257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ5dR-00035G-7t for submit@debbugs.gnu.org; Mon, 06 Mar 2023 02:51:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:40542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ2UP-0005sn-LA for submit@debbugs.gnu.org; Sun, 05 Mar 2023 23:30:22 -0500 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 1pZ2UM-00089n-MJ for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 23:30:19 -0500 Received: from mail-ed1-f46.google.com ([209.85.208.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZ2UK-00038m-CN for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 23:30:18 -0500 Received: by mail-ed1-f46.google.com with SMTP id s11so33263786edy.8 for ; Sun, 05 Mar 2023 20:30:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678077011; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7+2K/ZXBCMfISE+1CmLzvg0Y0irDgmeYgWmprm5f+ic=; b=Ks0KwfYfSPxLVCC66kBt/P71uyRXvrXuaRheI0MGeG2YMPnJYQK2dn93aXmc8FG2eP TKQ7qMLrnEBcZjsdpaWdYWh4VnDzKos2UTNFaMZIIT6NYDiQKffu2U32L5gTDVCBCbQo zBsHaiVZG+vaYkdCHhe28PT7M2OY/KFh17/eF2kiRyqkVprqcCTviKq8TofJ4Ozrnydk kGSsm+Z3oj8cB3lRqWZG/MeStGmEJMQ1xrnpzgvEivnNYwetVyVBLNcnpYkgWfPW+vgB dhHvpmtwX3mvvj9cCB3rBh50tzXqYSFTsfVI2PsIo3EEbKhnK/gsc0CMvaGIKmSUD5Ll 2Duw== X-Gm-Message-State: AO0yUKWI5AEdnd8RhjGNIjoDVELPbvQwZm/LkJLVIJ2PoOc1OZ3PPFrT UfoYp8c2dtCn8TZ7lT2BZSXd20FulqFs3afH X-Google-Smtp-Source: AK7set9cnMA4x80Oj8iExt61TwGakx8RX4KHLY8x5A5YsaQ4cAU6R43n/iFZVB2joBPIPPsQ9CkUTA== X-Received: by 2002:a17:907:a0d5:b0:8b1:319c:c29e with SMTP id hw21-20020a170907a0d500b008b1319cc29emr11728880ejc.74.1678077011286; Sun, 05 Mar 2023 20:30:11 -0800 (PST) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com. [209.85.208.46]) by smtp.gmail.com with ESMTPSA id f5-20020a170906390500b008c0b8dd4cbdsm3996146eje.112.2023.03.05.20.30.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Mar 2023 20:30:10 -0800 (PST) Received: by mail-ed1-f46.google.com with SMTP id k10so9394781edk.13 for ; Sun, 05 Mar 2023 20:30:10 -0800 (PST) X-Received: by 2002:a17:906:b851:b0:877:7480:c76a with SMTP id ga17-20020a170906b85100b008777480c76amr4479279ejb.13.1678077010351; Sun, 05 Mar 2023 20:30:10 -0800 (PST) MIME-Version: 1.0 From: Troy Brown Date: Sun, 5 Mar 2023 23:29:59 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: 29.0.60; `treesit-simple-indent-presets' `prev-line' has incorrect position To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.208.46; envelope-from=troy.s.brown@gmail.com; helo=mail-ed1-f46.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 06 Mar 2023 02:51:46 -0500 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: -2.1 (--) I'm expecting `prev-line' to return the position of the first non-space character on the previous line. However, it instead returns the number of characters skipped on the previous line to move to the first non-space character (i.e., the result of calling `skip-chars-foward'). It appears there is a missing call to `point' that should appear at the end of the defined lambda. (cons 'prev-line (lambda (_n _p bol &rest _) (save-excursion (goto-char bol) (forward-line -1) - (skip-chars-forward " \t")))) + (skip-chars-forward " \t") + (point)))) From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 19:28:14 2023 Received: (at 61998-done) by debbugs.gnu.org; 8 Mar 2023 00:28:14 +0000 Received: from localhost ([127.0.0.1]:47482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZhfC-0003JC-Fm for submit@debbugs.gnu.org; Tue, 07 Mar 2023 19:28:14 -0500 Received: from mail-pj1-f52.google.com ([209.85.216.52]:42581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZhfB-0003Iz-7X for 61998-done@debbugs.gnu.org; Tue, 07 Mar 2023 19:28:13 -0500 Received: by mail-pj1-f52.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so424756pjz.1 for <61998-done@debbugs.gnu.org>; Tue, 07 Mar 2023 16:28:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678235286; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=jo+7VBQbaFhSVJ6Ge1f8NEe47wOt1b2SiG0Ez947Kgk=; b=MCmA5GxwKajMz1HWTbkOkGCUPBjOO0P3AY2alkR+XdLuk6zZ5vOg3KCCshfIcXEV30 9VdMBnqQZt0T1jYo69newvAk9DG5W+LYrRBmit0x6j3S7CEI4rLsYPEq/xFJ9cjsB5JK wLPdaSMwvCA7rvMdfASMWJ7NxbMr6GlZn5NNeLjv0pqsu44XXwxhQspVmODE9K0oSVwg 8QCFloianT61GruyEqEWeWJfylws3vB3YCwh6VHUFGzh4OFIa18rJ01egf0XI8U5s0QU jFo9K/qvORTwXX+PdfG1QfdIv3vodTAFdKHmXU7/Fgsx6WArCppIE7tj6amp2FAF8p8t 7XaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678235286; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jo+7VBQbaFhSVJ6Ge1f8NEe47wOt1b2SiG0Ez947Kgk=; b=hxCMPRiuJTJLKkYHyTEcD/xpeBszX6kjnv+tGj1fRvTLlsBFbBCQct0WOiq7rtMBjm 5PiqKmbUBVfdTN28XZzkSV5CQ67izrTSswHzA9acXL5MmjpBJswcXpF3hxK+hWx8qUpg E/R5WuLHjLc85HvoL7tzam+IQCqdw9wdxzo6QBaytjX7Ma1ZwgPUazSTIweCJGj2NpU0 +5G808ZZTimwFLDmwxiyRqLa3Vz0CnRjihK+vMJO1yHy7lNSBPBjbAM94WMWIS2YJnLv zyLi1XLtSdj/VDVMAoESdj6S6Sr3xT8guKAynGJuucglBp7UxtPZdLYLwW66W//KX2oH u2dQ== X-Gm-Message-State: AO0yUKWdIlgvLu0nTjpjoLD9vdTmgOvq/QS++b9/G5H+layIWJDPFXmc VSl6Tsf8ZVu5V25DyVJd0zKZAmoL2KHCeQ== X-Google-Smtp-Source: AK7set85ppDFnZsBXTTboDfbKoJGsX+JydYsGhC5ezIvA/kM4Q8FssFy/wYSoQ/MN6dbgAy+Qk7cfw== X-Received: by 2002:a05:6a20:5495:b0:cd:52a:faf0 with SMTP id i21-20020a056a20549500b000cd052afaf0mr16523714pzk.59.1678235286287; Tue, 07 Mar 2023 16:28:06 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id i5-20020aa78d85000000b005dfc8a35793sm8497282pfr.38.2023.03.07.16.28.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2023 16:28:05 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: bug#61998: 29.0.60; `treesit-simple-indent-presets' `prev-line' has incorrect position Message-Id: Date: Tue, 7 Mar 2023 16:27:54 -0800 To: brownts@troybrown.dev X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61998-done Cc: 61998-done@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: -1.0 (-) Troy Brown writes: > I'm expecting `prev-line' to return the position of the first non-space > character on the previous line. However, it instead returns the number > of characters skipped on the previous line to move to the first > non-space character (i.e., the result of calling `skip-chars-foward'). > > It appears there is a missing call to `point' that should appear at the > end of the defined lambda. > > (cons 'prev-line (lambda (_n _p bol &rest _) > (save-excursion > (goto-char bol) > (forward-line -1) > - (skip-chars-forward " \t")))) > + (skip-chars-forward " \t") > + (point)))) Thanks for the catch! I fixed it on emacs-29. Yuan From unknown Sun Jun 22 11:33:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 05 Apr 2023 11:24:11 +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