From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Simon Pugnet
Newsgroups: gmane.emacs.devel
Subject: [PATCH] ; Fix incorrect function name in treesit manual
Date: Thu, 09 Feb 2023 11:46:30 +0000
Message-ID: <87sfffnjfk.fsf@polaris64.net>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
micalg=pgp-sha256; protocol="application/pgp-signature"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="31847"; mail-complaints-to="usenet@ciao.gmane.io"
To: emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 09 14:50:35 2023
Return-path:
Envelope-to: ged-emacs-devel@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 1pQ7Jq-00080D-57
for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Feb 2023 14:50:34 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1pQ7JF-00086t-S3; Thu, 09 Feb 2023 08:49:57 -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 1pQ5VU-0006D2-2o
for emacs-devel@gnu.org; Thu, 09 Feb 2023 06:54:28 -0500
Original-Received: from mout-p-202.mailbox.org ([80.241.56.172])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
(Exim 4.90_1) (envelope-from )
id 1pQ5VP-0006gR-66
for emacs-devel@gnu.org; Thu, 09 Feb 2023 06:54:25 -0500
Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest
SHA256) (No client certificate requested)
by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PCFdY1023z9spq
for ; Thu, 9 Feb 2023 12:54:09 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polaris64.net;
s=MBO0001; t=1675943649;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type;
bh=WbxHBu/2zHZl3C6DtTXmarMjkw9iwzSblRJT232MVKU=;
b=UbdAhHANe2OC5IG6SJJQrDfZvOUF0MlyFVRyCv1ZWeiuajXMPxOQR7BGC+BNcCSNYeKMvm
613v6NMKE47sWuGm96LhW6mBkVKsG+ynggb9gJYT7DVSGGKpdqBu53XAKepqLtWLTDks8Y
Xc8dV4E1beHBmxrtSu4pQE6qeXry8xUwQyhpEfrvTbKVG8qkIpf739oRtyqOuZ/NcoweJe
4U2YCKKjSvHm8Q+3Cv1TIN+UwQiIToKXLoVgjF6rOuWZMcce5BVn0V3USlRZWUYpGB3bfG
bBJXvs4ZTFjk4+pVuRSWM9B++pG0NCtPVaG/JZa2L9oTBlZnQh0jf50Gpu0VXg==
Received-SPF: pass client-ip=80.241.56.172; envelope-from=simon@polaris64.net;
helo=mout-p-202.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.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,
RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Mailman-Approved-At: Thu, 09 Feb 2023 08:49:56 -0500
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.devel:303077
Archived-At:
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="
--=-=-=
Content-Type: text/plain; format=flowed
Dear Emacs maintainers,
This is my first time posting a patch so please forgive me if I have
made any mistakes.
I am currently working on a PHP tree sitter major mode and while
reading the manual I noticed what I think is an error in one of the
examples. I have attached a small patch which changes these examples,
so if that is indeed an error then please could you apply it for me?
I'm not sure whether I'll get this new PHP tree sitter mode to a
suitably high quality, but nevertheless I would like to start
contributing the Emacs development so I will go ahead with completing
the copyright assignment paperwork. The attached patch is very small
however so I believe this is exampt from copyright assignment (I have
marked it as such).
Kind regards,
--
Simon Pugnet
https://www.polaris64.net/
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
filename=0001-Fix-incorrect-function-name-in-treesit-manual.patch
Content-Transfer-Encoding: quoted-printable
From=20f090d2bc91330efa5ef4cc855db027c2930c2778 Mon Sep 17 00:00:00 2001
From: Simon Pugnet
Date: Thu, 9 Feb 2023 11:33:31 +0000
Subject: [PATCH] ; Fix incorrect function name in treesit manual
An example in the documentation uses the function
'treesit-get-parser-create' which does not exist. Replace this with
'treesit-parser-create'.
* admin/notes/tree-sitter/html-manual/Multiple-Languages.html (Next):
* doc/lispref/parsing.texi (Multiple Languages):
Change example.
Copyright-paperwork-exempt: yes
=2D--
admin/notes/tree-sitter/html-manual/Multiple-Languages.html | 6 +++---
doc/lispref/parsing.texi | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/admin/notes/tree-sitter/html-manual/Multiple-Languages.html b/=
admin/notes/tree-sitter/html-manual/Multiple-Languages.html
index 65507687d51..390d9082590 100644
=2D-- a/admin/notes/tree-sitter/html-manual/Multiple-Languages.html
+++ b/admin/notes/tree-sitter/html-manual/Multiple-Languages.html
@@ -223,9 +223,9 @@
;; Create parsers.
=2D(setq html (treesit-get-parser-create 'html))
=2D(setq css (treesit-get-parser-create 'css))
=2D(setq js (treesit-get-parser-create 'javascript))
+(setq html (treesit-parser-create 'html))
+(setq css (treesit-parser-create 'css))
+(setq js (treesit-parser-create 'javascript))
=20
;; Set CSS ranges.
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index cebb59b6501..72bf6874f1c 100644
=2D-- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -1584,9 +1584,9 @@ Multiple Languages
@example
@group
;; Create parsers.
=2D(setq html (treesit-get-parser-create 'html))
=2D(setq css (treesit-get-parser-create 'css))
=2D(setq js (treesit-get-parser-create 'javascript))
+(setq html (treesit-parser-create 'html))
+(setq css (treesit-parser-create 'css))
+(setq js (treesit-parser-create 'javascript))
@end group
=20
@group
=2D-=20
2.39.1
--=-=-=--
--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCAAyFiEEO/eF3hYsAMj7Tab9uhNZqCwLPvkFAmPk3t8UHHNpbW9uQHBv
bGFyaXM2NC5uZXQACgkQuhNZqCwLPvk32RAAj515z1GsRTR/nTZmZMC7TCeoOAM1
fXZjoNWciRtlTzxoul56HP4v0T0fBQAJDGEYQ8H9K3ZRZt8mUTbZJ4suUurQmVpK
w27ENQCSJvJc94bqwuRKQyy4VtdRIHXlQDLp8Gjf9/02GVWI5+QLh1WmO3+RLvkG
7crrpPUiKcWSzKD6z7INGQq4U7X7zPeNTnzcH8hhjUWWYGyuQeMjo4XKvdPKS0zO
qkfYelCJt7jSf2EeZLqgL+lbYEY2HL1TVTUZh/t+Nc1M2hnC+KFNFQxl9mp+UvdC
nGqQhaMOBss2IREn9d/QBcQIirwcFt3L9gVy+LjBaYf+saGl0CW68fhMUMSwPHyZ
3y30mowQrMeyfJDlgGdbRZm2IEtN5BckOYEI64E2krjq6jNG0MBmW5/4LWxN/yph
3fZUFVzOiY/lZoeZsvraJRgL3Albt8gF8Zf3nSYxZzwMBRbuNB9rPytsHYUFKoaI
S57HVO+ZylvaUtIBoX0QCOl5q5sSNF0lmRKuPtDiYuFD92B1BWImVsqowL/Mv08j
ofHaSleA4/b7LXMwzS1nZ7sTIHFlksH7kALYlA9V+RN1Obu1Uytm9xUjbhzApawY
xuyDiJwfTU0HdrhErluHhnWmjsHfzH4vkFVPfZAx6VYRpOZ3w+vI/cI+chFb9xiv
wuszclL72L1/gJk=
=aT0e
-----END PGP SIGNATURE-----
--==-=-=--