emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.60; python.el: auto-indentation doesn't work with continuation


From: Glenn Morris
Subject: Re: 23.0.60; python.el: auto-indentation doesn't work with continuation lines
Date: Mon, 28 Apr 2008 15:53:07 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Stefan Monnier wrote:

> Could someone take a closer look (including trying it out with Dave
> Love's version)?

Syncing this change from DL's version fixes it:

*** python.el   17 Apr 2008 20:09:54 -0000      1.85
--- python.el   28 Apr 2008 19:51:29 -0000
***************
*** 977,985 ****
  multi-line bracketed expressions."
    (beginning-of-line)
    (python-beginning-of-string)
!   (let ((point (point)))
      (while (and (python-continuation-line-p)
!               (> point (setq point (point))))
        (beginning-of-line)
        (if (python-backslash-continuation-line-p)
          (progn
--- 977,987 ----
  multi-line bracketed expressions."
    (beginning-of-line)
    (python-beginning-of-string)
!   (let (point)
      (while (and (python-continuation-line-p)
!               (if point
!                   (< (point) point)
!                 t))
        (beginning-of-line)
        (if (python-backslash-continuation-line-p)
          (progn
***************
*** 987,993 ****
            (while (python-backslash-continuation-line-p)
              (forward-line -1)))
        (python-beginning-of-string)
!       (python-skip-out))))
    (back-to-indentation))
  
  (defun python-skip-out (&optional forward syntax)
--- 989,996 ----
            (while (python-backslash-continuation-line-p)
              (forward-line -1)))
        (python-beginning-of-string)
!       (python-skip-out))
!       (setq point (point))))
    (back-to-indentation))
  
  (defun python-skip-out (&optional forward syntax)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]