From unknown Mon Jun 23 06:02:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61736: Fix typos in docstrings in c-ts-common.el Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2023 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61736 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 61736@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167717359313881 (code B ref -1); Thu, 23 Feb 2023 17:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Feb 2023 17:33:13 +0000 Received: from localhost ([127.0.0.1]:35205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVFSy-0003bp-RQ for submit@debbugs.gnu.org; Thu, 23 Feb 2023 12:33:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:47726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVFSx-0003bf-24 for submit@debbugs.gnu.org; Thu, 23 Feb 2023 12:33:11 -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 1pVFSw-0006wZ-OH for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 12:33:10 -0500 Received: from sonic309-25.consmr.mail.ir2.yahoo.com ([77.238.179.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVFSu-0001xx-Ds for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 12:33:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1677173580; bh=tw1LRmruJN5gQ+6W+a1OEbHQP8DD5wpM4hxwwVMmIKs=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=e7tlfREuTBwtXRvSmumtGllAE7KieLTrs2vve67Ds0K+S4+f5UqpSVTz8O8b5DW7BvHS3WWQ4Awta2TFcFyMIYbT7eO8vBLYp4qs6qcF5VOQt5Y6mXxL4zIQie9ONyB39G85isrW8RLlP36tUDBVLlT6XbgMR1yCNwtAtvgf/6PBSBUovYUeXghX0JimdiVK1fZ7yHonlTszoeVr+Hw1oQSwiA5nxgVdQG5e8XNx/xuUAxNJJF50tfiKP7ruM3+wsJhq7HWrm0gUpiOLrEFFEeOqZOGdka57ujNQHRBuVq2Cy1sNHfW4wj+mlFUrh3I0bp2m604kW/4JYeAJ+Hge0Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677173580; bh=qnrX22+WWfdAeH/rr0Iif/aI2xVNgCRT8ZGa1U59Gyr=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=HK3XNeUQU5Wvdmz2oaEwtAVWUr98VzPwQh0+XfRZE2U3OCZ5DP+us+xlCw4kz2TKGDRs6jZPJneyZlP8+3cflls8c75JviC/AaZxzPxnpSsvkipHjySbGIQtCd44xco4xRY97hZm3CqDEkI1P3Qs0kKBsGfND/7Dr8QGKb0gwkHnifNeWK4eEKJLubrrMhtetarwS4p656n46EII74f/svrpfnRethMR9NylkSDFQxwKBnHcnkRi5747VwQw0flI0hA7Ct7yXVXSL27vv4+Kn5PHttyr3kaGEpWDgZj/xQoGvJahKwHR6mB/aAFVbTXG8gAfYlwgMJjDhu90pd6M8Q== X-YMail-OSG: iMRJG7sVM1mfPjuqtcj_ELBDnB_P_IoiNosb7F1UBgBcQdVAR.1AnZ4X8u.hMhK 6YXPWLM3BnhxIfJWz6Dd6oIk2feSS6T2Jxx93C6gwsB0KxmCaY0bNmrRvwd7odcFpeAlibx8fdDU jrv.SokRJI6h_x1Xvk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.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Thu, 23 Feb 2023 17:33:00 +0000 Received: by hermes--production-ir2-65c64dfd66-q2fgd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8ec85c36a8fc96e5c6c9cae7fb0f5165; Thu, 23 Feb 2023 17:32:59 +0000 (UTC) From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Date: Thu, 23 Feb 2023 18:32:58 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" References: X-Mailer: WebService/1.1.21221 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1488 Received-SPF: pass client-ip=77.238.179.83; envelope-from=mardani29@yahoo.es; helo=sonic309-25.consmr.mail.ir2.yahoo.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) --=-=-= Content-Type: text/plain Tags: patch I've attached a patch to fix a couple of typos in c-ts-common.el. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Fix-typos-in-docstrings-in-c-ts-common.el.patch >From 3f110b0f7de1bd1f1e00b39fc48608ef9ef189c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= Date: Thu, 23 Feb 2023 18:30:36 +0100 Subject: [PATCH] ; Fix typos in docstrings in c-ts-common.el --- lisp/progmodes/c-ts-common.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index 8262e6261d4..55a6ab64aa3 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -268,7 +268,7 @@ c-ts-common-indent-offset statement indent functions to work.") (defvar c-ts-common-indent-type-regexp-alist nil - "An alist of of node type regexps. + "An alist of node type regexps. Each key in the alist is one of `if', `else', `do', `while', `for', `block', `close-bracket'. Each value in the alist @@ -313,7 +313,7 @@ c-ts-common--node-is nil)) (defun c-ts-common-statement-offset (node parent &rest _) - "This anchor is used for children of a statement inside a block. + "Return an offset for children of a statement inside a block. This function basically counts the number of block nodes (i.e., brackets) (defined by `c-ts-common-indent-block-type-regexp') -- 2.34.1 --=-=-=-- From unknown Mon Jun 23 06:02:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61736: Fix typos in docstrings in c-ts-common.el Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2023 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61736 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Cc: 61736@debbugs.gnu.org Received: via spool by 61736-submit@debbugs.gnu.org id=B61736.167717474916218 (code B ref 61736); Thu, 23 Feb 2023 17:53:02 +0000 Received: (at 61736) by debbugs.gnu.org; 23 Feb 2023 17:52:29 +0000 Received: from localhost ([127.0.0.1]:35229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVFld-0004DV-Gt for submit@debbugs.gnu.org; Thu, 23 Feb 2023 12:52:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVFlc-0004DH-1T for 61736@debbugs.gnu.org; Thu, 23 Feb 2023 12:52:28 -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 1pVFlW-0007Ur-Cf; Thu, 23 Feb 2023 12:52:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=uAny/9smiJ4TYzxqX05JjtMtC/+TVE4BmYLD/OEHaSM=; b=qRlvRPdOCR+lBsZvGpib DIFevBxu/VhQECOIL0RAupPY3J8dkCPIBSkK5vg1NT4tO8cTQk8ouA5htw3XdrEU+vifbqbeWiwtW ZbN2Xzwy2aCkIZq+2BR3yGvStx24OMRL5+VX2EqeXELTNaHzTmIQVD0rKxY8tR48CykL5V4v6DnPY UPSFaGcN4vfGB4vhHbbtH1PJwUPP/Kqn8N2s4uezmwchiYyDNZDY3o+KqPfsEIJMMzIMD6vtdJJAg U14hl3/WM2/KYfiDifq0H3cyCfSt4a7NS5udkYsmWKbGMNg+kUrTkgq8krW3T+FHVzmiXXdu4bzm0 EJlSip8iIGZLJw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVFlV-0007ZI-SZ; Thu, 23 Feb 2023 12:52:22 -0500 Date: Thu, 23 Feb 2023 19:52:18 +0200 Message-Id: <83fsawp8vh.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (bug-gnu-emacs@gnu.org) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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 (---) > Date: Thu, 23 Feb 2023 18:32:58 +0100 > From: Daniel Martín via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I've attached a patch to fix a couple of typos in c-ts-common.el. Thanks. > (defun c-ts-common-statement-offset (node parent &rest _) > - "This anchor is used for children of a statement inside a block. > + "Return an offset for children of a statement inside a block. Is the new text really accurate? The rest of the doc string doesn' mention "offset" even once, and without explaining what kind of "offset" is this, the first sentence could mislead and confuse. So I think this part of the patch "needs more work". I installed the first part, thanks. From unknown Mon Jun 23 06:02:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Subject: bug#61736: closed (Re: bug#61736: Fix typos in docstrings in c-ts-common.el) Message-ID: References: X-Gnu-PR-Message: they-closed 61736 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 61736@debbugs.gnu.org Date: Sat, 25 Feb 2023 04:52:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1677300722-17639-1" This is a multi-part message in MIME format... ------------=_1677300722-17639-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61736: Fix typos in docstrings in c-ts-common.el which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 61736@debbugs.gnu.org. --=20 61736: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61736 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1677300722-17639-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61736-done) by debbugs.gnu.org; 25 Feb 2023 04:51:12 +0000 Received: from localhost ([127.0.0.1]:38779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVmWd-0004ZT-MD for submit@debbugs.gnu.org; Fri, 24 Feb 2023 23:51:11 -0500 Received: from mail-pj1-f49.google.com ([209.85.216.49]:42585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVmWa-0004ZF-B1 for 61736-done@debbugs.gnu.org; Fri, 24 Feb 2023 23:51:09 -0500 Received: by mail-pj1-f49.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so1284913pjz.1 for <61736-done@debbugs.gnu.org>; Fri, 24 Feb 2023 20:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=xwyGaNkq6pCR4Phd6DJ6gGbV0AyxREJ+fwJpkq7DKRY=; b=hDmpdqWykb2UOeOVbFukmZ/hCDG7KUJqgEPkm17GFA0PgqKQDS0USU8ZgLicKVV36c UawVTeNVJLhAIFQNKAo7o7NohBOW11ywHU8LK/8ocBagoOntFS2VZKlMlG2si6qUnnUb 47wdE0tJEVrmx4DC0VltNknKMs36aK5264Ym6+e4Tto1R00LCmIX22YZ9VsA1hyFLi6p xfe2ZJETBKGngQznxIox349UDWyW+ddKJfxAvc8Ldwl97UNbH+4kzfUf+ZkleCdw4El0 L/9wfOKuNjEqVFtjcHO+1UGeCZQh3zfHOACs8YYMgm0vNr9pVeKu9FUoQeJKvgyukY+2 iP4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=xwyGaNkq6pCR4Phd6DJ6gGbV0AyxREJ+fwJpkq7DKRY=; b=oZEsnfLIQTMT5Y8/UNySkzSI1z6XRN2vdC/w7x4a65uYJ4bUYNtZNTiEGeafob5Jol frtASKW2MTkeB13cy5wrQ1jja6njGjhk5wUWelE+9z+B6s7OIRlop1+bgOG2vMvvMPnC Jwxo77nBxyzo6NBfCAQzivirzuAXXwQq/pBzvNLtD3Ppibbc3dg5oVx8yPf2YYQyVhLS gDhjAZCj5GICA2AHwWoP+itSSIwiLyySglQEWXjF2z1hDMyArsqqU6MBe6IrGsmI9ZtT yv1csHn5OmNVbT6ZDxJHMYYAeJblWSlG0SYXduNgXVfna8BOtdUW2drtTj0VlTIoLpzq +4Fg== X-Gm-Message-State: AO0yUKV0boIUgV0wkZ5h7EuuEUkXv5vuXfSEP3UivlBvXIW+kIWixHuw dLRt8trzb30AYPJJkYKdFJo= X-Google-Smtp-Source: AK7set87QCh0p5m2Eywbx5smpb3PdGRY8FXPUpWAliRU/QgNmxIe5q4lmCnC28bGQTBrb/RXI7ejBA== X-Received: by 2002:a17:902:ec92:b0:19a:9864:2887 with SMTP id x18-20020a170902ec9200b0019a98642887mr2038304plg.7.1677300662232; Fri, 24 Feb 2023 20:51:02 -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 6-20020a170902ee4600b00199023c688esm327494plo.26.2023.02.24.20.51.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Feb 2023 20:51:01 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: bug#61736: Fix typos in docstrings in c-ts-common.el Message-Id: Date: Fri, 24 Feb 2023 20:50:48 -0800 To: Eli Zaretskii X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61736-done Cc: 61736-done@debbugs.gnu.org, =?utf-8?Q?Daniel_Mart=C3=ADn?= 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 (-) Eli Zaretskii writes: >> Date: Thu, 23 Feb 2023 18:32:58 +0100 >> From: Daniel Mart=C3=ADn via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> I've attached a patch to fix a couple of typos in c-ts-common.el. > > Thanks. > >> (defun c-ts-common-statement-offset (node parent &rest _) >> - "This anchor is used for children of a statement inside a block. >> + "Return an offset for children of a statement inside a block. > > Is the new text really accurate? The rest of the doc string doesn' > mention "offset" even once, and without explaining what kind of > "offset" is this, the first sentence could mislead and confuse. > > So I think this part of the patch "needs more work". > > I installed the first part, thanks. The second part is valid. I applied it with some minor change, thanks! Yuan ------------=_1677300722-17639-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Feb 2023 17:33:13 +0000 Received: from localhost ([127.0.0.1]:35205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVFSy-0003bp-RQ for submit@debbugs.gnu.org; Thu, 23 Feb 2023 12:33:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:47726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVFSx-0003bf-24 for submit@debbugs.gnu.org; Thu, 23 Feb 2023 12:33:11 -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 1pVFSw-0006wZ-OH for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 12:33:10 -0500 Received: from sonic309-25.consmr.mail.ir2.yahoo.com ([77.238.179.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVFSu-0001xx-Ds for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 12:33:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1677173580; bh=tw1LRmruJN5gQ+6W+a1OEbHQP8DD5wpM4hxwwVMmIKs=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=e7tlfREuTBwtXRvSmumtGllAE7KieLTrs2vve67Ds0K+S4+f5UqpSVTz8O8b5DW7BvHS3WWQ4Awta2TFcFyMIYbT7eO8vBLYp4qs6qcF5VOQt5Y6mXxL4zIQie9ONyB39G85isrW8RLlP36tUDBVLlT6XbgMR1yCNwtAtvgf/6PBSBUovYUeXghX0JimdiVK1fZ7yHonlTszoeVr+Hw1oQSwiA5nxgVdQG5e8XNx/xuUAxNJJF50tfiKP7ruM3+wsJhq7HWrm0gUpiOLrEFFEeOqZOGdka57ujNQHRBuVq2Cy1sNHfW4wj+mlFUrh3I0bp2m604kW/4JYeAJ+Hge0Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677173580; bh=qnrX22+WWfdAeH/rr0Iif/aI2xVNgCRT8ZGa1U59Gyr=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=HK3XNeUQU5Wvdmz2oaEwtAVWUr98VzPwQh0+XfRZE2U3OCZ5DP+us+xlCw4kz2TKGDRs6jZPJneyZlP8+3cflls8c75JviC/AaZxzPxnpSsvkipHjySbGIQtCd44xco4xRY97hZm3CqDEkI1P3Qs0kKBsGfND/7Dr8QGKb0gwkHnifNeWK4eEKJLubrrMhtetarwS4p656n46EII74f/svrpfnRethMR9NylkSDFQxwKBnHcnkRi5747VwQw0flI0hA7Ct7yXVXSL27vv4+Kn5PHttyr3kaGEpWDgZj/xQoGvJahKwHR6mB/aAFVbTXG8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kJ3walx0.KIemE.x15Mvn2Csdh2taziIG1rWXpe2UEZuRo4IFJtSV_gRrhcnXyhma33uWNRoo1X P.YWjfv_BQSpWEnkclZMGUsK1sqoZG0vRO8oosBlS19wMS3p31Jwoh436AjhGd1vsB5R6mU01MgM HXREzsrt8nmcTo7RZeKjsqcUwnklQ X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Thu, 23 Feb 2023 17:33:00 +0000 Received: by hermes--production-ir2-65c64dfd66-q2fgd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8ec85c36a8fc96e5c6c9cae7fb0f5165; Thu, 23 Feb 2023 17:32:59 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: bug-gnu-emacs@gnu.org Subject: Fix typos in docstrings in c-ts-common.el Date: Thu, 23 Feb 2023 18:32:58 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" References: X-Mailer: WebService/1.1.21221 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1488 Received-SPF: pass client-ip=77.238.179.83; envelope-from=mardani29@yahoo.es; helo=sonic309-25.consmr.mail.ir2.yahoo.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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.4 (--) --=-=-= Content-Type: text/plain Tags: patch I've attached a patch to fix a couple of typos in c-ts-common.el. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Fix-typos-in-docstrings-in-c-ts-common.el.patch >From 3f110b0f7de1bd1f1e00b39fc48608ef9ef189c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= Date: Thu, 23 Feb 2023 18:30:36 +0100 Subject: [PATCH] ; Fix typos in docstrings in c-ts-common.el --- lisp/progmodes/c-ts-common.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index 8262e6261d4..55a6ab64aa3 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -268,7 +268,7 @@ c-ts-common-indent-offset statement indent functions to work.") (defvar c-ts-common-indent-type-regexp-alist nil - "An alist of of node type regexps. + "An alist of node type regexps. Each key in the alist is one of `if', `else', `do', `while', `for', `block', `close-bracket'. Each value in the alist @@ -313,7 +313,7 @@ c-ts-common--node-is nil)) (defun c-ts-common-statement-offset (node parent &rest _) - "This anchor is used for children of a statement inside a block. + "Return an offset for children of a statement inside a block. This function basically counts the number of block nodes (i.e., brackets) (defined by `c-ts-common-indent-block-type-regexp') -- 2.34.1 --=-=-=-- ------------=_1677300722-17639-1--