[Python-checkins] CVS: python/dist/src/Misc python-mode.el,4.6,4.7
Barry Warsaw
bwarsaw@users.sourceforge.net
Fri, 15 Mar 2002 08:46:48 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv11038
Modified Files:
python-mode.el
Log Message:
(py-honor-comment-indentation, py-compute-indentation): Fix the
implementation to match the documentation for
py-honor-comment-indentation w.r.t. not nil or t value. In that case
it should still ignore ## for indentation purposes. Closes SF bug
#523825, w/ patch provided by Christian Stork (mod'd by Barry).
Python 2.2.1 candidate.
Index: python-mode.el
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/python-mode.el,v
retrieving revision 4.6
retrieving revision 4.7
diff -C2 -d -r4.6 -r4.7
*** python-mode.el 6 Jul 2001 20:38:11 -0000 4.6
--- python-mode.el 15 Mar 2002 16:46:46 -0000 4.7
***************
*** 185,190 ****
purposes.
! When not nil or t, comment lines that begin with a `#' are used as
! indentation hints, unless the comment character is in column zero."
:type '(choice
(const :tag "Skip all comment lines (fast)" nil)
--- 185,190 ----
purposes.
! When not nil or t, comment lines that begin with a single `#' are used
! as indentation hints, unless the comment character is in column zero."
:type '(choice
(const :tag "Skip all comment lines (fast)" nil)
***************
*** 1903,1907 ****
(save-excursion
(back-to-indentation)
! (not (zerop (current-column)))))
))
)))
--- 1903,1911 ----
(save-excursion
(back-to-indentation)
! (and (not (looking-at prefix-re))
! (or (looking-at "[^#]")
! (not (zerop (current-column)))
! ))
! ))
))
)))