aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorEli Zaretskii2023-05-20 17:56:40 +0300
committerEli Zaretskii2023-05-20 17:56:40 +0300
commit8c56557cd9dff754b7f28f5fb919ca3b2c58ebf3 (patch)
tree36ac1017007a9f97746af4563ddb0421a2edaa1f /lisp/progmodes/python.el
parent58eb38cfb47b9802581ff55117510186bcc53b67 (diff)
downloademacs-8c56557cd9dff754b7f28f5fb919ca3b2c58ebf3.tar.gz
emacs-8c56557cd9dff754b7f28f5fb919ca3b2c58ebf3.zip
Fix Skeletons menu-bar menu in Python modes
* lisp/progmodes/python.el (python-mode, python-ts-mode): Call 'python-skeleton-add-menu-items' here, not in 'python-base-mode', since the "Python" menu is not yet set up in the latter. (Bug#63598)
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index f810f1e2164..6fc05b246a6 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6694,8 +6694,6 @@ implementations: `python-mode' and `python-ts-mode'."
6694 6694
6695 (setq-local prettify-symbols-alist python-prettify-symbols-alist) 6695 (setq-local prettify-symbols-alist python-prettify-symbols-alist)
6696 6696
6697 (python-skeleton-add-menu-items)
6698
6699 (make-local-variable 'python-shell-internal-buffer) 6697 (make-local-variable 'python-shell-internal-buffer)
6700 6698
6701 (add-hook 'flymake-diagnostic-functions #'python-flymake nil t)) 6699 (add-hook 'flymake-diagnostic-functions #'python-flymake nil t))
@@ -6719,6 +6717,8 @@ implementations: `python-mode' and `python-ts-mode'."
6719 6717
6720 (add-hook 'which-func-functions #'python-info-current-defun nil t) 6718 (add-hook 'which-func-functions #'python-info-current-defun nil t)
6721 6719
6720 (python-skeleton-add-menu-items)
6721
6722 (when python-indent-guess-indent-offset 6722 (when python-indent-guess-indent-offset
6723 (python-indent-guess-indent-offset))) 6723 (python-indent-guess-indent-offset)))
6724 6724
@@ -6745,6 +6745,8 @@ implementations: `python-mode' and `python-ts-mode'."
6745 #'python--treesit-defun-name) 6745 #'python--treesit-defun-name)
6746 (treesit-major-mode-setup) 6746 (treesit-major-mode-setup)
6747 6747
6748 (python-skeleton-add-menu-items)
6749
6748 (when python-indent-guess-indent-offset 6750 (when python-indent-guess-indent-offset
6749 (python-indent-guess-indent-offset)) 6751 (python-indent-guess-indent-offset))
6750 6752