unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Aleksandr Vityazev <avityazev@posteo.org>
To: 61318@debbugs.gnu.org
Subject: bug#61318: emacs-29; [PATCH] * lisp/treesit.el (treesit): Fix shortdoc example form.
Date: Mon, 06 Feb 2023 10:49:08 +0000	[thread overview]
Message-ID: <87357j5asb.fsf@posteo.org> (raw)

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

Tags: patch

Hi,

Since treesit-parser-create requires at the least one arg, I think it
better to add it to example-form. The patch was created in the emacs-29
branch.


-- 
Best regards,
Aleksandr Vityazev

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-treesit.el-treesit-Fix-shortdoc-example-form.patch --]
[-- Type: text/patch, Size: 862 bytes --]

From 747d9202330e8eb3fb853002d8ec8089ff343b09 Mon Sep 17 00:00:00 2001
Message-Id: <747d9202330e8eb3fb853002d8ec8089ff343b09.1675679959.git.avityazev@posteo.org>
From: Aleksandr Vityazev <avityazev@posteo.org>
Date: Mon, 6 Feb 2023 13:39:10 +0300
Subject: [PATCH] * lisp/treesit.el (treesit): Fix shortdoc example form.

---
 lisp/treesit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index 7bd68c9a6d9..6015e78bbd5 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -2963,7 +2963,7 @@ treesit
 
   "Parsers"
   (treesit-parser-create
-   :no-eval (treesit-parser-create)
+   :no-eval (treesit-parser-create 'c)
    :eg-result-string "#<treesit-parser for c>")
   (treesit-parser-delete
    :no-value (treesit-parser-delete parser))

base-commit: 5a6dfab1e4d5d89e5d5ff3bef73279926f067dbc
-- 
2.39.1


             reply	other threads:[~2023-02-06 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-06 10:49 Aleksandr Vityazev [this message]
2023-02-06 14:38 ` bug#61318: emacs-29; [PATCH] * lisp/treesit.el (treesit): Fix shortdoc example form Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87357j5asb.fsf@posteo.org \
    --to=avityazev@posteo.org \
    --cc=61318@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).