Quote all calls to "auxiliary skeleton"s to prevent infloops.
This commit is contained in:
parent
9ce3eb9a3f
commit
6c64cd0434
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-01-20 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* progmodes/python.el: Quote all calls to "auxiliary skeleton"s to
|
||||
prevent infloops.
|
||||
|
||||
2008-01-20 Martin Svenson <phromo@gmail.com> (tiny change)
|
||||
|
||||
* progmodes/python.el (python-imports): Default to "None".
|
||||
|
|
|
@ -2052,7 +2052,7 @@ The default contents correspond to the elements of `python-skeletons'.")
|
|||
< ; Avoid wrong indentation after block opening.
|
||||
"elif " str ":" \n
|
||||
> _ \n nil)
|
||||
(python-else) | ^)
|
||||
'(python-else) | ^)
|
||||
|
||||
(define-skeleton python-else
|
||||
"Auxiliary skeleton."
|
||||
|
@ -2066,24 +2066,24 @@ The default contents correspond to the elements of `python-skeletons'.")
|
|||
"Condition: "
|
||||
"while " str ":" \n
|
||||
> _ \n
|
||||
(python-else) | ^)
|
||||
'(python-else) | ^)
|
||||
|
||||
(def-python-skeleton for
|
||||
"Target, %s: "
|
||||
"for " str " in " (skeleton-read "Expression, %s: ") ":" \n
|
||||
> _ \n
|
||||
(python-else) | ^)
|
||||
'(python-else) | ^)
|
||||
|
||||
(def-python-skeleton try/except
|
||||
nil
|
||||
"try:" \n
|
||||
> _ \n
|
||||
("Exception, %s: "
|
||||
< "except " str (python-target) ":" \n
|
||||
< "except " str '(python-target) ":" \n
|
||||
> _ \n nil)
|
||||
< "except:" \n
|
||||
> _ \n
|
||||
(python-else) | ^)
|
||||
'(python-else) | ^)
|
||||
|
||||
(define-skeleton python-target
|
||||
"Auxiliary skeleton."
|
||||
|
|
Loading…
Add table
Reference in a new issue