mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-05-31 01:32:00 -07:00
Fix warning message in 'markdown-ts-mode--initialize'
* lisp/textmodes/markdown-ts-mode.el (markdown-ts-mode--initialize): Tweak the warning message when Tree-sitter is not available. (Bug#81100)
This commit is contained in:
parent
7df8604ea6
commit
3de7f0ce5e
1 changed files with 5 additions and 2 deletions
|
|
@ -5402,9 +5402,12 @@ With a prefix argument, ARG, if needed, install parsers for `html',
|
|||
(markdown-ts--set-up))
|
||||
(t
|
||||
(warn "markdown-ts-mode cannot be set up; using fundamental-mode.
|
||||
The tree-sitter parsers `markdown' and `markdown-inline' were not found.
|
||||
%s."
|
||||
(if (treesit-available-p)
|
||||
"The tree-sitter parsers `markdown' and `markdown-inline' were not found.
|
||||
Use the command `markdown-ts-mode-install-parsers' to install them.
|
||||
With a prefix argument, it can also install optional parsers.")
|
||||
With a prefix argument, it can also install optional parsers"
|
||||
"Emacs was built without Tree-sitter support, or could not load Tree-sitter"))
|
||||
(fundamental-mode)))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue