]> git.eshelyaron.com Git - emacs.git/commit
; Replace error with signal in treesit.el
authorYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 16:58:08 +0000 (09:58 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 17:01:51 +0000 (10:01 -0700)
commit784f53a2152181b687f9543ddba9c393dda1c715
tree98ee4adf89ffad3f3489118792c01f39934f7269
parent673a55780d2194f74c5774de83d0dce5131e7a31
; Replace error with signal in treesit.el

(or (treesit-parser-create language)
    (error "Cannot find a parser for %s" language))

is turned into

(treesit-parser-create language)

because treesit-parser-create never returns nil.  (We used to use
treesit-get-parser which don't create parser automatically.)

* lisp/treesit.el (treesit-buffer-root-node): Replace error with signal.
lisp/treesit.el