[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


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

AltStyle によって変換されたページ (->オリジナル) /