diff options
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 979197be0c9..e17d73f174c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2007-03-28 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-03-28 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * progmodes/python.el (python-mode): Skip comments when parsing. | ||
| 4 | |||
| 3 | * vc-arch.el (vc-with-current-file-buffer): New macro. | 5 | * vc-arch.el (vc-with-current-file-buffer): New macro. |
| 4 | (vc-arch-file-source-p): Use it to avoid infloop. | 6 | (vc-arch-file-source-p): Use it to avoid infloop. |
| 5 | 7 | ||
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 226d4bdc62d..1709428a611 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2225,6 +2225,7 @@ with skeleton expansions for compound statement templates. | |||
| 2225 | ;; . python-font-lock-syntactic-face-function) | 2225 | ;; . python-font-lock-syntactic-face-function) |
| 2226 | )) | 2226 | )) |
| 2227 | (set (make-local-variable 'parse-sexp-lookup-properties) t) | 2227 | (set (make-local-variable 'parse-sexp-lookup-properties) t) |
| 2228 | (set (make-local-variable 'parse-sexp-ignore-comments) t) | ||
| 2228 | (set (make-local-variable 'comment-start) "# ") | 2229 | (set (make-local-variable 'comment-start) "# ") |
| 2229 | (set (make-local-variable 'indent-line-function) #'python-indent-line) | 2230 | (set (make-local-variable 'indent-line-function) #'python-indent-line) |
| 2230 | (set (make-local-variable 'indent-region-function) #'python-indent-region) | 2231 | (set (make-local-variable 'indent-region-function) #'python-indent-region) |