all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, David Robinow <drobinow@gmail.com>
Subject: Re: 23.0.60; python.el: auto-indentation doesn't work with continuation lines
Date: Mon, 28 Apr 2008 15:53:07 -0400	[thread overview]
Message-ID: <b0bq3t21uk.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwv1w4pesaz.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 28 Apr 2008 14:41:55 -0400")

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	other threads:[~2008-04-28 19:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <18495.14283.684156.693737@fencepost.gnu.org>
2008-04-24  7:24 ` 23.0.60; python.el: auto-indentation doesn't work with continuation lines Torsten Bronger
2008-04-26 18:32   ` Edward O'Connor
2008-04-26 18:51     ` Torsten Bronger
2008-04-28 17:06       ` David Robinow
2008-04-28 18:02         ` Glenn Morris
2008-04-28 18:41           ` Stefan Monnier
2008-04-28 19:53             ` Glenn Morris [this message]
2008-04-29  1:03               ` Stefan Monnier
2008-04-29  3:45                 ` Glenn Morris
2008-04-29  4:22                   ` Stefan Monnier
2008-05-29 23:20   ` bug#155: marked as done (23.0.60; python.el: auto-indentation doesn't work with continuation lines) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b0bq3t21uk.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=drobinow@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.