From: Nathan Weizenbaum <nweiz@google.com>
To: emacs-devel@gnu.org
Subject: [Patch] Fix python-fill-paragraph when font-lock is disabled
Date: Thu, 29 Jul 2010 15:36:49 -0700 [thread overview]
Message-ID: <AANLkTim7OWTG_HwCrBBOC9dk4nH+YQeYMh+ci1Fbac8f@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 296 bytes --]
Hi,
Attached is a patch that makes python-fill-region in a multiline string work
when font-lock is disabled. The old version checked that (nth 3 syntax) was
explicitly t, rather than non-nil; this is the case when font-lock is
enabled, but when it's disabled (nth 3 syntax) is a number instead.
[-- Attachment #1.2: Type: text/html, Size: 327 bytes --]
[-- Attachment #2: 0001-Fix-python-fill-paragraph-when-font-lock-is-disabled.patch --]
[-- Type: text/x-patch, Size: 898 bytes --]
From f187ecce1e2a86b8e712546a84f585ed5ff4d873 Mon Sep 17 00:00:00 2001
From: Nathan Weizenbaum <nex342@gmail.com>
Date: Thu, 29 Jul 2010 11:31:02 -0700
Subject: [PATCH] Fix python-fill-paragraph when font-lock is disabled.
---
lisp/progmodes/python.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 4e0f326..8d540be 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1960,7 +1960,7 @@ the string's indentation."
;; paragraph in a multi-line string properly, so narrow
;; to the string and then fill around (the end of) the
;; current line.
- ((eq t (nth 3 syntax)) ; in fenced string
+ ((nth 3 syntax) ; in fenced string
(goto-char (nth 8 syntax)) ; string start
(setq start (line-beginning-position))
(setq end (condition-case () ; for unbalanced quotes
--
1.7.1
reply other threads:[~2010-07-29 22:36 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=AANLkTim7OWTG_HwCrBBOC9dk4nH+YQeYMh+ci1Fbac8f@mail.gmail.com \
--to=nweiz@google.com \
--cc=emacs-devel@gnu.org \
/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.