public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/emacs] rawhide: Eliminate spurious Recommends: tree-sitter()
@ 2026-08-12 12:01 Peter Oliver
  0 siblings, 0 replies; only message in thread
From: Peter Oliver @ 2026-08-12 12:01 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/emacs
            Branch : rawhide
            Commit : 3554f423927c93b962aa56882615435d59ffa4b6
            Author : Peter Oliver <git@mavit.org.uk>
            Date   : 2026-08-12T12:59:57+01:00
            Stats  : +5/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/emacs/c/3554f423927c93b962aa56882615435d59ffa4b6?branch=rawhide

            Log:
            Eliminate spurious Recommends: tree-sitter()

This occurred because function treesit-ready-p can take a list rather than a symbol.

---
diff --git a/emacs_lisp.rec b/emacs_lisp.rec
index ff05a72..97f44f5 100755
--- a/emacs_lisp.rec
+++ b/emacs_lisp.rec
@@ -15,7 +15,11 @@
 (defun add-parser-at-point ()
   "Add symbol at point to list `parsers' (unless in a comment)."
   (unless (nth 4 (syntax-ppss))
-    (add-to-list 'parsers (thing-at-point 'symbol t))))
+    (let ((parser-name (thing-at-point 'symbol t)))
+      (if parser-name (add-to-list 'parsers parser-name)
+        (forward-char)
+        (dolist (parser-symbol (read (thing-at-point 'list t)))
+          (add-to-list 'parsers (symbol-name parser-symbol)))))))
 
 (condition-case nil
     (while (setq filename (read-from-minibuffer ""))

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-12 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12 12:01 [rpms/emacs] rawhide: Eliminate spurious Recommends: tree-sitter() Peter Oliver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox