[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 8c56557cd9d: Fix Skeletons menu-bar menu in Python modes
From: |
Eli Zaretskii |
Subject: |
emacs-29 8c56557cd9d: Fix Skeletons menu-bar menu in Python modes |
Date: |
Sat, 20 May 2023 10:57:10 -0400 (EDT) |
branch: emacs-29
commit 8c56557cd9dff754b7f28f5fb919ca3b2c58ebf3
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
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)
---
lisp/progmodes/python.el | 6 ++++--
1 file 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'."
(setq-local prettify-symbols-alist python-prettify-symbols-alist)
- (python-skeleton-add-menu-items)
-
(make-local-variable 'python-shell-internal-buffer)
(add-hook 'flymake-diagnostic-functions #'python-flymake nil t))
@@ -6719,6 +6717,8 @@ implementations: `python-mode' and `python-ts-mode'."
(add-hook 'which-func-functions #'python-info-current-defun nil t)
+ (python-skeleton-add-menu-items)
+
(when python-indent-guess-indent-offset
(python-indent-guess-indent-offset)))
@@ -6745,6 +6745,8 @@ implementations: `python-mode' and `python-ts-mode'."
#'python--treesit-defun-name)
(treesit-major-mode-setup)
+ (python-skeleton-add-menu-items)
+
(when python-indent-guess-indent-offset
(python-indent-guess-indent-offset))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 8c56557cd9d: Fix Skeletons menu-bar menu in Python modes,
Eli Zaretskii <=