From: Barry Warsaw Date: Thu, 16 Apr 1998 20:04:59 +0000 (+0000) Subject: (py-compute-indentation): Use forward-comment to skip over all X-Git-Tag: v1.5.2a1~903 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77d1fce2f651e98e68506cc2ce7321bed7036850;p=python (py-compute-indentation): Use forward-comment to skip over all whitespace and comment noise. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 5dcd53285c..0262210670 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -1592,7 +1592,7 @@ the new line indented." (/= startpos (save-excursion (goto-char (1+ open-bracket-pos)) - (skip-chars-forward " \t\n") + (forward-comment (point-max)) (point)))) ;; again mimic the first list item (current-indentation)