From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 11 21:05:16 2010 Received: (at quiet) by debbugs.gnu.org; 12 Sep 2010 01:05:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oub0N-0001WM-OF for submit@debbugs.gnu.org; Sat, 11 Sep 2010 21:05:15 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oub0M-0001WH-Cc for quiet@debbugs.gnu.org; Sat, 11 Sep 2010 21:05:14 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oub2Y-0006El-DU for quiet@debbugs.gnu.org; Sat, 11 Sep 2010 21:07:30 -0400 X-From-Line: emacs-devel-bounces+rgm=gnu.org@gnu.org Fri Jul 30 02:20:14 2010 Received: from mx10.gnu.org ([199.232.76.166]:38724) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oeix3-0006F7-Ck for rgm@gnu.org; Fri, 30 Jul 2010 02:20:13 -0400 Received: from lists.gnu.org ([199.232.76.165]:53201) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oeix3-0002i4-7l for rgm@gnu.org; Fri, 30 Jul 2010 02:20:13 -0400 Received: from localhost ([127.0.0.1]:39578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oeix2-000183-N1 for rgm@gnu.org; Fri, 30 Jul 2010 02:20:12 -0400 Received: from [140.186.70.92] (port=36433 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oebik-00073y-3c for emacs-devel@gnu.org; Thu, 29 Jul 2010 18:36:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oebii-0001fy-SZ for emacs-devel@gnu.org; Thu, 29 Jul 2010 18:36:58 -0400 Received: from smtp-out.google.com ([74.125.121.35]:17207) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oebii-0001fX-LJ for emacs-devel@gnu.org; Thu, 29 Jul 2010 18:36:56 -0400 Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o6TMarGm024792 for ; Thu, 29 Jul 2010 15:36:53 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1280443013; bh=BQn45pBMQNeYWQ5rqNzerZgItQg=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=Hc19Kams6Wg1bgMoC7/23EX/Y1qY62mTTKTxMXQarcVlwRkySINSgN0OhaXEgASJG asf4HEPmwcq5FZspIS6JA== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:date:message-id:subject:from:to:content-type:x-system-of-record; b=ubXdMidCxyvMirFdIDsdCQ0NpmeAX1suRzz9iMV+JJyDw6DwqO/yMAO7+ZYW/g1r9 HeBHBJ+DR7zK2nelcxVHQ== Received: from gwj22 (gwj22.prod.google.com [10.200.10.22]) by hpaq6.eem.corp.google.com with ESMTP id o6TMapcY030104 for ; Thu, 29 Jul 2010 15:36:52 -0700 Received: by gwj22 with SMTP id 22so431187gwj.10 for ; Thu, 29 Jul 2010 15:36:51 -0700 (PDT) Received: by 10.150.69.4 with SMTP id r4mr1987315yba.108.1280443009861; Thu, 29 Jul 2010 15:36:49 -0700 (PDT) Received: by 10.229.15.65 with HTTP; Thu, 29 Jul 2010 15:36:49 -0700 (PDT) Date: Thu, 29 Jul 2010 15:36:49 -0700 From: Nathan Weizenbaum To: quiet@debbugs.gnu.org X-Debbugs-No-Ack: yes X-System-Of-Record: true X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 30 Jul 2010 02:19:13 -0400 Subject: [Patch] Fix python-fill-paragraph when font-lock is disabled X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Lines: 52 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: quiet X-BeenThere: debbugs-submit@debbugs.gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=iso-8859-1 Package: emacs [ resent from emacs-devel ] 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. --==-=-= Content-Type: text/html; charset=iso-8859-1 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.
--==-=-=-- --=-=-= Content-Type: text/x-patch; name=0001-Fix-python-fill-paragraph-when-font-lock-is-disabled.patch Content-Disposition: attachment; filename=0001-Fix-python-fill-paragraph-when-font-lock-is-disabled.patch >From f187ecce1e2a86b8e712546a84f585ed5ff4d873 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 07:29:21 2012 Received: (at 7018) by debbugs.gnu.org; 10 Apr 2012 11:29:21 +0000 Received: from localhost ([127.0.0.1]:48148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHZGC-00046x-Mk for submit@debbugs.gnu.org; Tue, 10 Apr 2012 07:29:21 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:45718) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHZGA-00046q-EP for 7018@debbugs.gnu.org; Tue, 10 Apr 2012 07:29:19 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SHZF1-0007Pn-Oi; Tue, 10 Apr 2012 13:28:08 +0200 From: Lars Magne Ingebrigtsen To: Nathan Weizenbaum Subject: Re: [Patch] Fix python-fill-paragraph when font-lock is disabled References: X-Now-Playing: Patrick Cowley's _The Ultimate Collection_: "Get A Little" Date: Tue, 10 Apr 2012 13:28:07 +0200 In-Reply-To: (Nathan Weizenbaum's message of "Thu, 29 Jul 2010 15:36:49 -0700") Message-ID: User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1SHZF1-0007Pn-Oi X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1334662088.14635@9J2K56vGfex0BkiufQSOHw X-Spam-Status: No X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 7018 Cc: 7018@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Nathan Weizenbaum writes: > 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. Thanks; applied to the Emacs trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 07:29:23 2012 Received: (at control) by debbugs.gnu.org; 10 Apr 2012 11:29:23 +0000 Received: from localhost ([127.0.0.1]:48151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHZGF-00047B-CI for submit@debbugs.gnu.org; Tue, 10 Apr 2012 07:29:23 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:45724) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHZGD-00046z-D3 for control@debbugs.gnu.org; Tue, 10 Apr 2012 07:29:21 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SHZF5-0007Pz-AP for control@debbugs.gnu.org; Tue, 10 Apr 2012 13:28:11 +0200 Date: Tue, 10 Apr 2012 13:28:10 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #7018 X-MailScanner-ID: 1SHZF5-0007Pz-AP X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1334662091.55851@KJF/OMY15QGJ3I3L90c9NQ X-Spam-Status: No X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) tags 7018 fixed close 7018 24.2 From unknown Sat Sep 06 19:24:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 May 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator