[Python-checkins] CVS: python/dist/src/Misc python-mode.el,4.1,4.2
Barry Warsaw
bwarsaw@users.sourceforge.net
Mon, 18 Jun 2001 16:40:37 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv24639
Modified Files:
python-mode.el
Log Message:
(py-continuation-offset): New variable which controls how much to
indent continuation lines, defined as lines following those that end
in backslash.
(py-compute-indentation): Support for py-continuation-offset.
Index: python-mode.el
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/python-mode.el,v
retrieving revision 4.1
retrieving revision 4.2
diff -C2 -r4.1 -r4.2
*** python-mode.el 2001/04/11 22:27:41 4.1
--- python-mode.el 2001/06/18 23:40:35 4.2
***************
*** 9,13 ****
;; Keywords: python languages oop
! (defconst py-version "$Revision$"
"`python-mode' version number.")
--- 9,13 ----
;; Keywords: python languages oop
! (defconst py-version "4.1"
"`python-mode' version number.")
***************
*** 124,127 ****
--- 124,134 ----
:group 'python)
+ (defcustom py-continuation-offset 4
+ "*Additional amount of offset to give for continuation lines.
+ Continuation lines are those that immediately follow a backslash
+ terminated line."
+ :type 'integer
+ :group 'python)
+
(defcustom py-smart-indentation t
"*Should `python-mode' try to automagically set some indentation variables?
***************
*** 1801,1805 ****
;; column
(end-of-line)
! (setq endpos (point) searching t)
(back-to-indentation)
(setq startpos (point))
--- 1808,1813 ----
;; column
(end-of-line)
! (setq endpos (point)
! searching t)
(back-to-indentation)
(setq startpos (point))
***************
*** 1826,1830 ****
(goto-char startpos)
(skip-chars-forward "^ \t\n")))
! (1+ (current-column))))))
;; not on a continuation line
--- 1834,1839 ----
(goto-char startpos)
(skip-chars-forward "^ \t\n")))
! (+ (current-column) py-continuation-offset 1)
! ))))
;; not on a continuation line