unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] ; Fix incorrect function name in treesit manual
@ 2023-02-09 11:46 Simon Pugnet
  2023-02-10  7:41 ` Yuan Fu
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Pugnet @ 2023-02-09 11:46 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 812 bytes --]

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/

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Fix-incorrect-function-name-in-treesit-manual.patch --]
[-- Type: text/x-patch, Size: 2081 bytes --]

From f090d2bc91330efa5ef4cc855db027c2930c2778 Mon Sep 17 00:00:00 2001
From: Simon Pugnet <simon@polaris64.net>
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
---
 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
--- a/admin/notes/tree-sitter/html-manual/Multiple-Languages.html
+++ b/admin/notes/tree-sitter/html-manual/Multiple-Languages.html
@@ -223,9 +223,9 @@
 </p>
 <div class="example">
 <pre class="example">;; Create parsers.
-(setq html (treesit-get-parser-create 'html))
-(setq css (treesit-get-parser-create 'css))
-(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))
 </pre><pre class="example">
 
 </pre><pre class="example">;; Set CSS ranges.
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index cebb59b6501..72bf6874f1c 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -1584,9 +1584,9 @@ Multiple Languages
 @example
 @group
 ;; Create parsers.
-(setq html (treesit-get-parser-create 'html))
-(setq css (treesit-get-parser-create 'css))
-(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
 
 @group
-- 
2.39.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ; Fix incorrect function name in treesit manual
  2023-02-09 11:46 [PATCH] ; Fix incorrect function name in treesit manual Simon Pugnet
@ 2023-02-10  7:41 ` Yuan Fu
  2023-02-10  8:44   ` Eli Zaretskii
  2023-02-10 11:54   ` Simon Pugnet
  0 siblings, 2 replies; 4+ messages in thread
From: Yuan Fu @ 2023-02-10  7:41 UTC (permalink / raw)
  To: Simon Pugnet; +Cc: Emacs developers, Stefan Monnier



> On Feb 9, 2023, at 3:46 AM, Simon Pugnet <simon@polaris64.net> wrote:
> 
> 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).

Thanks, applied! The commit message is in the right format, nice! I would send patches like this straight to debbugs, also we need to use two spaces after each sentence when writing any prose in Emacs codebase. I don’t have the assignment form but someone should send you one soon.

Yuan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ; Fix incorrect function name in treesit manual
  2023-02-10  7:41 ` Yuan Fu
@ 2023-02-10  8:44   ` Eli Zaretskii
  2023-02-10 11:54   ` Simon Pugnet
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2023-02-10  8:44 UTC (permalink / raw)
  To: Yuan Fu; +Cc: simon, emacs-devel, monnier

> From: Yuan Fu <casouri@gmail.com>
> Date: Thu, 9 Feb 2023 23:41:25 -0800
> Cc: Emacs developers <emacs-devel@gnu.org>,
>  Stefan Monnier <monnier@iro.umontreal.ca>
> 
> > 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).
> 
> Thanks, applied! The commit message is in the right format, nice! I would send patches like this straight to debbugs, also we need to use two spaces after each sentence when writing any prose in Emacs codebase. I don’t have the assignment form but someone should send you one soon.

Form sent off-list.

Thanks.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ; Fix incorrect function name in treesit manual
  2023-02-10  7:41 ` Yuan Fu
  2023-02-10  8:44   ` Eli Zaretskii
@ 2023-02-10 11:54   ` Simon Pugnet
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Pugnet @ 2023-02-10 11:54 UTC (permalink / raw)
  To: Yuan Fu; +Cc: Emacs developers, Stefan Monnier

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

Yuan Fu <casouri@gmail.com> writes:

>> On Feb 9, 2023, at 3:46 AM, Simon Pugnet <simon@polaris64.net> 
>> wrote:
>> 
>> Dear Emacs maintainers,
>> 
>> This is my first time posting a patch so please forgive me if I 
>> have made any mistakes.
>> 
> Thanks, applied! The commit message is in the right format, nice! I
> would send patches like this straight to debbugs, also we need to 
> use
> two spaces after each sentence when writing any prose in Emacs
> codebase. I don’t have the assignment form but someone should send 
> you
> one soon.

Thanks for the feedback! I'll be sure to take it into account and to 
send patches like this to bug-gnu-emacs@gnu.org in future.

Kind regards,

-- 
Simon Pugnet
https://www.polaris64.net/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-10 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 11:46 [PATCH] ; Fix incorrect function name in treesit manual Simon Pugnet
2023-02-10  7:41 ` Yuan Fu
2023-02-10  8:44   ` Eli Zaretskii
2023-02-10 11:54   ` Simon Pugnet

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).