[Python-checkins] CVS: python/dist/src/Misc python-mode.el,3.106,3.107
Barry Warsaw
python-dev@python.org
2000年6月23日 13:24:28 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.88,2.89 dictobject.c,2.53,2.54 funcobject.c,2.21,2.22 listobject.c,2.74,2.75 tupleobject.c,2.37,2.38
- Next message: [Python-checkins] CVS: distutils/distutils extension.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Misc
In directory slayer.i.sourceforge.net:/tmp/cvs-serv28410
Modified Files:
python-mode.el
Log Message:
(py-execute-region): Make sure the new temporary buffer is current for
the insertion of the text.
Index: python-mode.el
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/python-mode.el,v
retrieving revision 3.106
retrieving revision 3.107
diff -C2 -r3.106 -r3.107
*** python-mode.el 2000年05月23日 05:47:43 3.106
--- python-mode.el 2000年06月23日 20:24:25 3.107
***************
*** 1285,1292 ****
(save-excursion
(goto-char start)
! (when (/= (py-point 'bol) (py-point 'boi))
(set-buffer buf)
! (insert "if 1:\n"))
! (insert-buffer-substring cur start end))
(cond
;; always run the code in its own asynchronous subprocess
--- 1285,1293 ----
(save-excursion
(goto-char start)
! (let ((needs-if (/= (py-point 'bol) (py-point 'boi))))
(set-buffer buf)
! (when needs-if
! (insert "if 1:\n"))
! (insert-buffer-substring cur start end)))
(cond
;; always run the code in its own asynchronous subprocess
- Previous message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.88,2.89 dictobject.c,2.53,2.54 funcobject.c,2.21,2.22 listobject.c,2.74,2.75 tupleobject.c,2.37,2.38
- Next message: [Python-checkins] CVS: distutils/distutils extension.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]