# HG changeset patch # User Stefan Monnier # Date 1175044907 0 # Node ID e359709ed895825173448c25eb2537951000e704 # Parent 3693d2ee35b8789dd331201eb11d02c084707891 (python-mode): Skip comments when parsing. diff -r 3693d2ee35b8 -r e359709ed895 lisp/ChangeLog --- a/lisp/ChangeLog Wed Mar 28 01:19:43 2007 +0000 +++ b/lisp/ChangeLog Wed Mar 28 01:21:47 2007 +0000 @@ -1,5 +1,7 @@ 2007-03-28 Stefan Monnier + * progmodes/python.el (python-mode): Skip comments when parsing. + * vc-arch.el (vc-with-current-file-buffer): New macro. (vc-arch-file-source-p): Use it to avoid infloop. diff -r 3693d2ee35b8 -r e359709ed895 lisp/progmodes/python.el --- a/lisp/progmodes/python.el Wed Mar 28 01:19:43 2007 +0000 +++ b/lisp/progmodes/python.el Wed Mar 28 01:21:47 2007 +0000 @@ -2225,6 +2225,7 @@ ;; . python-font-lock-syntactic-face-function) )) (set (make-local-variable 'parse-sexp-lookup-properties) t) + (set (make-local-variable 'parse-sexp-ignore-comments) t) (set (make-local-variable 'comment-start) "# ") (set (make-local-variable 'indent-line-function) #'python-indent-line) (set (make-local-variable 'indent-region-function) #'python-indent-region)