diff options
author | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2012-12-11 04:22:55 -0300 |
---|---|---|
committer | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2012-12-11 04:22:55 -0300 |
commit | 2c43a9adb2ba4904ac95e0d7be452536d003c37c (patch) | |
tree | be1586e51408bc0b515c1156dac266ac3e8fb4f8 | |
parent | 645c6a30a7779cc313165591e4f1c3bf000c8166 (diff) | |
download | emacs-2c43a9adb2ba4904ac95e0d7be452536d003c37c.tar.gz |
* progmodes/python.el (python-skeleton-class)
(python-skeleton-def): Do not add space after defun name.
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/progmodes/python.el | 16 |
2 files changed, 13 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 37d6e340399..c77cc286c76 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-12-11 Fabián Ezequiel Gallina <fgallina@cuca> + + * progmodes/python.el (python-skeleton-class) + (python-skeleton-def): Do not add space after defun name. + 2012-12-09 Chong Yidong <cyd@gnu.org> * simple.el (set-mark-default-inactive): Mark as obsolete, for diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7cd59c0c1b4..98ba437d4ef 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2681,17 +2681,17 @@ The skeleton will be bound to python-skeleton-NAME." (python-skeleton-define def nil "Function name: " - "def " str " (" ("Parameter, %s: " - (unless (equal ?\( (char-before)) ", ") - str) "):" \n - "\"\"\"" - "\"\"\"" \n - > _ \n) + "def " str "(" ("Parameter, %s: " + (unless (equal ?\( (char-before)) ", ") + str) "):" \n + "\"\"\"" - "\"\"\"" \n + > _ \n) (python-skeleton-define class nil "Class name: " - "class " str " (" ("Inheritance, %s: " - (unless (equal ?\( (char-before)) ", ") - str) + "class " str "(" ("Inheritance, %s: " + (unless (equal ?\( (char-before)) ", ") + str) & ")" | -2 ":" \n "\"\"\"" - "\"\"\"" \n |