2006-05-02  Jim Blandy  <jimb@codesourcery.com>

	* python.el (python-skip-comments/blanks): Work around 'int'
	vs. EMACS_INT range bug in forward-comment by passing it very
	large numbers that fit in 32 bits, not most-negative-fixnum and
	most-positive-fixnum.

diff -c lisp/progmodes/python.el.\~1\~ lisp/progmodes/python.el
*** lisp/progmodes/python.el.~1~	2005-10-18 15:33:10.000000000 -0700
--- lisp/progmodes/python.el	2006-05-02 16:47:32.000000000 -0700
***************
*** 277,285 ****
  treated as whitespace so that continued blank lines are skipped.
  Doesn't move out of comments -- should be outside or at end of line."
    (with-syntax-table python-space-backslash-table
!     (forward-comment (if backward
! 			 most-negative-fixnum
! 		       most-positive-fixnum))))
  
  (defun python-backslash-continuation-line-p ()
    "Non-nil if preceding line ends with backslash that is not in a comment."
--- 277,287 ----
  treated as whitespace so that continued blank lines are skipped.
  Doesn't move out of comments -- should be outside or at end of line."
    (with-syntax-table python-space-backslash-table
!     ;; Fforward_comment in syntax.c uses an 'int' for the count.  On
!     ;; 64-bit machines, Lisp_Objects are 64 bits long, but int is
!     ;; still only 32 bits.  So we can't use most-negative-fixnum or
!     ;; most-positive-fixnum here.
!     (forward-comment (lsh (if backward -1 1) 30))))
  
  (defun python-backslash-continuation-line-p ()
    "Non-nil if preceding line ends with backslash that is not in a comment."
