You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
The issue can be reproduced on the latest available commit of Doom.
The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)
Expected behavior
When I open a python buffer, anaconda-mode should not be enabled since I am already using eglot. I think the issue is because the following condition fails to detect that I am running eglot, perhaps because eglot--managed-mode is only activated after the condition is checked? See doom/modules/lang/python/config.el
(add-hook! 'python-mode-local-vars-hook :append
(defun +python-init-anaconda-mode-maybe-h ()
"Enable `anaconda-mode' if `lsp-mode' is absent and
`python-shell-interpreter' is present."
(unless (or (bound-and-true-p lsp-mode)
(bound-and-true-p eglot--managed-mode)
(bound-and-true-p lsp--buffer-deferred)
(not (executable-find python-shell-interpreter t)))
(anaconda-mode +1))))
Current behavior
When I open a python buffer, anaconda-mode is enabled. Bindings like M-. should not be taken over by anaconda-mode.
Steps to reproduce
Enable (lsp +eglot) and (python +lsp) in init.el. Then open emacs and open a python buffer. Then use C-h m to check the active modes, and you will see anaconda-mode show up.
I confirm that...
I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
The issue can be reproduced on the latest available commit of Doom.
The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)
Expected behavior
When I open a python buffer, anaconda-mode should not be enabled since I am already using eglot. I think the issue is because the following condition fails to detect that I am running eglot, perhaps because
eglot--managed-mode
is only activated after the condition is checked? Seedoom/modules/lang/python/config.el
Current behavior
When I open a python buffer, anaconda-mode is enabled. Bindings like
M-.
should not be taken over by anaconda-mode.Steps to reproduce
Enable
(lsp +eglot)
and(python +lsp)
ininit.el
. Then open emacs and open a python buffer. Then useC-h m
to check the active modes, and you will see anaconda-mode show up.System Information
https://pastebin.com/LnNZuLUD
The text was updated successfully, but these errors were encountered: