From: Karl Chen <quarl@hkn.eecs.berkeley.edu>
Subject: [patch] python.el (python-open-block-statement-p)
Date: 11 Jun 2004 16:52:52 +0200 [thread overview]
Message-ID: <quack.20040611T1652.sr5659ykuyj@PCOLRENT20.cern.ch> (raw)
There's a bug in `python-open-block-statement-p' that causes
indentation after a block opening containing a comment to fail,
e.g.:
if foo: # comment
<-- doesn't indent correctly here
Patch below fixes it.
Index: python.el
===================================================================
--- python.el (revision 6501)
+++ python.el (working copy)
@@ -323,7 +323,8 @@
line-end))
(save-excursion (python-end-of-statement))
t)
- (not (python-in-string/comment)))))
+ (not (progn (goto-char (match-beginning 0))
+ (python-in-string/comment))))))
(defun python-close-block-statement-p (&optional bos)
"Return non-nil if current line is a statement closing a block.
--
Karl 2004-06-11 16:48
reply other threads:[~2004-06-11 14:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=quack.20040611T1652.sr5659ykuyj@PCOLRENT20.cern.ch \
--to=quarl@hkn.eecs.berkeley.edu \
/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.