mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-29
b7f0333355Improve warning about changing the string returned by sym...e62f8b0239Fix visiting XBM/XPM files when 'c-ts-mode' is active94d1c81cf0* lisp/mpc.el (mpc-format): Fix oversight in commit 48b6c...a4d97811edBail early from eglot--apply-text-edits if nothing to do61d571760b; Clarify in-code commentary of eglot--after-change5bbbd70f56Improve ergonomics of Eglot's inlay hintsc3a543123aProtect against too large size of 'recent-keys' vector231190b37f* lisp/net/tramp.el (tramp-yn-prompt-regexp): Fix regexp.0bebd0e5f0; Remove 'build-module' and 'html-manual' directories fro...6674c362adMerge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/...829e5dfabeUpdate to Org 9.6.1-48-g92471ee84f878e19; * admin/notes/tree-sitter/starter-guide: Update starter...ea0949853fMerge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/...11592bcfda; * lisp/nxml/xmltok.el (xmltok-scan-attributes): Fix las...e388a77cf0; Minor copyedits of recent changes in ELisp reference ma...33a2670368; Minor fixes in recent Eglot changesd2cf1386fa; * doc/misc/eglot.texi (Eglot Commands): Improve indexing.b75e489362; Again correct node reference casing in doc/misc/eglot.texia55d2edc5a; Remove overly verbose commentary22a70451f3Merge confusing duplicate sections on commands in Eglot m...3293f93988Don't take over mouse-1 binding on Eglot diagnostics (bug...013057e351; Prefer "language server" to "LSP server" in Eglot manual94a21c8864* lisp/progmodes/eglot.el (eglot--connect): Improve Tramp...0eddfa28ebAvoid slowdowns in xmltok-scan-attributes647c6bf2a6; * test/lisp/abbrev-tests.el (abbrev--possibly-save-test...531f8f7103; * admin/git-bisect-start: Update failing commits # Conflicts: # admin/notes/tree-sitter/build-module/batch.sh # admin/notes/tree-sitter/build-module/build.sh
This commit is contained in:
commit
42fba8f36b
39 changed files with 287 additions and 3560 deletions
|
|
@ -1100,10 +1100,15 @@ the code is C or C++ and based on that chooses whether to enable
|
|||
'("\\(\\.ii\\|\\.\\(CC?\\|HH?\\)\\|\\.[ch]\\(pp\\|xx\\|\\+\\+\\)\\|\\.\\(cc\\|hh\\)\\)\\'"
|
||||
. c++-ts-mode)))
|
||||
|
||||
(if (treesit-ready-p 'c)
|
||||
(add-to-list 'auto-mode-alist
|
||||
'("\\(\\.[chi]\\|\\.lex\\|\\.y\\(acc\\)?\\|\\.x[bp]m\\)\\'"
|
||||
. c-ts-mode)))
|
||||
(when (treesit-ready-p 'c)
|
||||
(add-to-list 'auto-mode-alist
|
||||
'("\\(\\.[chi]\\|\\.lex\\|\\.y\\(acc\\)?\\)\\'" . c-ts-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.x[pb]m\\'" . c-ts-mode))
|
||||
;; image-mode's association must be before the C mode, otherwise XPM
|
||||
;; images will be initially visited as C files. Also note that the
|
||||
;; regexp must be different from what files.el does, or else
|
||||
;; add-to-list will not add the association where we want it.
|
||||
(add-to-list 'auto-mode-alist '("\\.x[pb]m\\'" . image-mode)))
|
||||
|
||||
(if (and (treesit-ready-p 'cpp)
|
||||
(treesit-ready-p 'c))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue