diff options
| author | Joakim Verona | 2010-09-06 11:56:58 +0200 |
|---|---|---|
| committer | Joakim Verona | 2010-09-06 11:56:58 +0200 |
| commit | 5f09724dbf7335f829e435ecf104071074e309e1 (patch) | |
| tree | e005648ecd6c7b52b325f8272a39ee03507dfc7a /lisp/progmodes/python.el | |
| parent | 542dbe5c80102f83226baf87d9bae724ed8efcfb (diff) | |
| parent | ed96ace9289c2e04db3e8fc63321fde248c3f3f8 (diff) | |
| download | emacs-5f09724dbf7335f829e435ecf104071074e309e1.tar.gz emacs-5f09724dbf7335f829e435ecf104071074e309e1.zip | |
merge from upstream
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
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. |
| 787 | The car of an element is a keyword introducing a statement which | 787 | The car of an element is a keyword introducing a statement which |
| 788 | can close a block opened by a keyword in the cdr.") | 788 | can 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; |