A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/761 below:

markdown-get-lang-mode would accidentally enable treesit major modes globally · Issue #761 · jrblevin/markdown-mode · GitHub

In emacs 29, when markdown-get-lang-mode selects a python-ts-mode for python, it would also enable it globally for all *.py files.

Steps to produce:

Expected behavior: The xxx.py file is opened with python-mode major mode (which is the default)

Actual behavior: The xxx.py file is opened with python-ts-mode.

The reason is that, in emacs 29, running python-ts-mode even for single buffer would modify auto-mode-alist globally: https://github.com/emacs-mirror/emacs/blob/ba2c76fa2bc3aabfda7d1d09cc5148f3f9d8e08e/lisp/progmodes/python.el#L6751

This is also true for almost all other treesit based major modes.

(I think this is a bug in the emacs core. I would file a bug report there too.)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4