aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 849951a633a..2f65ffa1e17 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -782,7 +782,7 @@ Set `python-indent' locally to the value guessed."
782 '(("else" "if" "elif" "while" "for" "try" "except") 782 '(("else" "if" "elif" "while" "for" "try" "except")
783 ("elif" "if" "elif") 783 ("elif" "if" "elif")
784 ("except" "try" "except") 784 ("except" "try" "except")
785 ("finally" "try" "except")) 785 ("finally" "else" "try" "except"))
786 "Alist of keyword matches. 786 "Alist of keyword matches.
787The car of an element is a keyword introducing a statement which 787The car of an element is a keyword introducing a statement which
788can close a block opened by a keyword in the cdr.") 788can close a block opened by a keyword in the cdr.")
@@ -2285,6 +2285,7 @@ the if condition."
2285(eval-when-compile 2285(eval-when-compile
2286 ;; Define a user-level skeleton and add it to the abbrev table. 2286 ;; Define a user-level skeleton and add it to the abbrev table.
2287(defmacro def-python-skeleton (name &rest elements) 2287(defmacro def-python-skeleton (name &rest elements)
2288 (declare (indent 2))
2288 (let* ((name (symbol-name name)) 2289 (let* ((name (symbol-name name))
2289 (function (intern (concat "python-insert-" name)))) 2290 (function (intern (concat "python-insert-" name))))
2290 `(progn 2291 `(progn
@@ -2297,7 +2298,6 @@ the if condition."
2297 (define-skeleton ,function 2298 (define-skeleton ,function
2298 ,(format "Insert Python \"%s\" template." name) 2299 ,(format "Insert Python \"%s\" template." name)
2299 ,@elements))))) 2300 ,@elements)))))
2300(put 'def-python-skeleton 'lisp-indent-function 2)
2301 2301
2302;; From `skeleton-further-elements' set below: 2302;; From `skeleton-further-elements' set below:
2303;; `<': outdent a level; 2303;; `<': outdent a level;