GNU bug report logs - #3972
23.1.50; c-mode sets M-q to c-fill-paragraph

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Severity: wishlist; Reported by: Lennart Borgman <lennart.borgman@HIDDEN>; dated Thu, 30 Jul 2009 05:55:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Andrew Hyatt <ahyatt@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 3972 <at> debbugs.gnu.org:


Received: (at 3972) by debbugs.gnu.org; 12 Feb 2016 04:17:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 11 23:17:23 2016
Received: from localhost ([127.0.0.1]:37169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aU5AZ-0005ut-0e
	for submit <at> debbugs.gnu.org; Thu, 11 Feb 2016 23:17:23 -0500
Received: from mail-qk0-f178.google.com ([209.85.220.178]:36470)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <ahyatt@HIDDEN>) id 1aU5AX-0005ug-JO
 for 3972 <at> debbugs.gnu.org; Thu, 11 Feb 2016 23:17:21 -0500
Received: by mail-qk0-f178.google.com with SMTP id s68so27360607qkh.3
 for <3972 <at> debbugs.gnu.org>; Thu, 11 Feb 2016 20:17:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type:content-transfer-encoding;
 bh=tsh0et4Ze/J2Cd9iBHnO6iYiIxnaypAQ2RJiqsPrmdI=;
 b=dEVnh7pDnRmkvtc+4Q8VNeAWUyXa+WIaT7w9/2Wv4bl024pWCaRT8qyKcJ+UXb4hzt
 MiaUMaxzef80ZdDSQJa3GlYWdii1OsSPl50pEoa6OV1O+2ZNwd+5/pL211mBXfL/LlRI
 lbq/ySD4P7jjn9tbZz1XvnVHaMQzEmRQLVniPUpOQSN9WY80yyzJwDFF7aRS5Jo5QgZb
 8V6XdXRTjt/tDo8rXJ/vA+2oQhaca45adq58K63/gmPMHAbluKDFR0t2AIH45e0+a0Ca
 OaxHFWd3NSuTA3HZ0tPSLEhm98IeRJEkOVuPpALSSnFVkuzDy6vlN+BDyfGBvsyjc3JN
 QsNQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-type
 :content-transfer-encoding;
 bh=tsh0et4Ze/J2Cd9iBHnO6iYiIxnaypAQ2RJiqsPrmdI=;
 b=EeE0iOc24qXrxCPVwFlwuhrcAEb9reYna/Fw0j8uuzS32u4eBsHie++3wUD9RioKIF
 voaCwVswY4OCWjHXGMeaIW+4794CZrjhw+pSs4ebhMfSqqB4rWTBBaw6QOplXVNynbge
 ZwqDFD2kcSN04YwxD856y+iSHRIejYpiG9DRbYP9p82XIM9acN2PGAA9QNAJlnOr2Xkx
 S1gQkPTFmVPtl655LGL2+jQ1vYf+liknF66uZWRcQEpRRBhXTEbBCe8Hn8ljo9+3jS3A
 WDjnQpZpKsw6PeCmxO1MxJ/qCPqmXDiS28FzHDR7pQpjXWxfYShk8peM5rD7eyVGyf6/
 FuMQ==
X-Gm-Message-State: AG10YORXs66R/NfvdP8e9T+DNFGDb+9zJA+Gjfhq2oqEKGNjV9EJBjDydzs/6ZG9RirfIw==
X-Received: by 10.55.23.224 with SMTP id 93mr46905882qkx.64.1455250636284;
 Thu, 11 Feb 2016 20:17:16 -0800 (PST)
Received: from Andrews-MacBook-Pro.local.ahyatt-laptop
 (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199])
 by smtp.gmail.com with ESMTPSA id q66sm4804592qhb.31.2016.02.11.20.17.13
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 11 Feb 2016 20:17:14 -0800 (PST)
From: Andrew Hyatt <ahyatt@HIDDEN>
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: Re: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
 <20090730104722.GA2397@HIDDEN>
 <e01d8a50907300640y63dec176pd19df68d33ce27ec@HIDDEN>
 <e01d8a50907300744q3ac2b65bqf603f92302aa4f92@HIDDEN>
 <e01d8a50907301752r7b9cd343xa00d8244f6feace8@HIDDEN>
Date: Thu, 11 Feb 2016 23:17:13 -0500
In-Reply-To: <e01d8a50907301752r7b9cd343xa00d8244f6feace8@HIDDEN>
 (Lennart Borgman's message of "Fri, 31 Jul 2009 02:52:02 +0200")
Message-ID: <m2r3gizho6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 3972
Cc: Alan Mackenzie <acm@HIDDEN>, 3972 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Lennart Borgman <lennart.borgman@HIDDEN> writes:

> On Thu, Jul 30, 2009 at 4:44 PM, Lennart
> Borgman<lennart.borgman@HIDDEN> wrote:
>> On Thu, Jul 30, 2009 at 3:40 PM, Lennart
>> Borgman<lennart.borgman@HIDDEN> wrote:
>>
>>> The problem I am actually fighting is a bit different I believe.
>>> c-fill-paragraph is a bit complicated so I am not sure. What I see
>>> when I am testing is that c-fill-paragraph works in some MuMaMo chunks
>>> (ie a chunk of the buffer with one major mode, other than in the
>>> chunks before and after it) and not others, though in both cases the
>>> major mode is php-mode. My guess so far is that it is because of a
>>> (widen) somewhere inside c-fill-paragraph that makes a call to
>>> something, perhaps to syntax-ppss or similar, come back with bad
>>> information (since it is influenced by contents in other chunks).
>>>
>>> What do you think about this guess?
>>
>> I tried to flet widen to ignore. That worked, but when trying to byte
>> compile I got:
>>
>> =C2=A0mumamo.el:6734:57:Error: Byte-compiling a redefinition of `widen'
>> will not work - use `labels' instead
>>
>> But `labels' does a lexical binding, not a dynamic binding so that
>> obviously will not work. So now I don't know what to do...
>> defadvice...?
>
>
> I decided to use defadvice on `widen' (+ enable/disable) for the
> moment. It seems to work fine.
>
> However that c-fill-paragraph is bound to M-q is still a problem, I
> had to rebind that.
>
> I noticed some other problems:
>
> - The doc string for fill-paragraph-function does not say anything
> about the functions arguments.
> - The arguments to c-fill-paragraph is not the expected ones though it
> is used as fill-paragraph-function. (But it works - and I don't
> understand why at the moment...)
>
> Also the double role of c-fill-paragraph is perhaps a difficult design
> (it is used both for M-x and fill-paragraph-function).

This bug feels like a wishlist to me. I don't see a user-visible issue,
just (valid-seeming) design issues. The documentation does seem like a
potential bug, but I'd assume that any function defined in
fill-paragraph-function won't be called with any arguments, since they
aren't mentioned (and I'm not sure which arguments would make sense
anyway).

I'm going to mark this as wishlist, but feel free to disagree.




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#3972; Package emacs,cc-mode. Full text available.
bug reassigned from package 'emacs' to 'emacs,cc-mode'. Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.

Message received at 3972@HIDDEN:


Received: (at 3972) by emacsbugs.donarmstrong.com; 31 Jul 2009 02:19:08 +0000
From lennart.borgman@HIDDEN Thu Jul 30 19:19:08 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail-yw0-f186.google.com (mail-yw0-f186.google.com [209.85.211.186])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6V2J39Y027881
	for <3972@HIDDEN>; Thu, 30 Jul 2009 19:19:05 -0700
Received: by ywh16 with SMTP id 16so1400555ywh.24
        for <3972@HIDDEN>; Thu, 30 Jul 2009 19:18:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:cc:content-type
         :content-transfer-encoding;
        bh=nJKAIxHIL6LyIehGp8FuxgoBqzRs9c4l6V0+HZLq8XY=;
        b=W7SnVbyxb3gWqaR/bqGiOlTSzwhqxd9JbbIEXPtyWrWh08atPnT1uaEp+YGOJujqxP
         lFbY5laHEhy5TQ4SfZoVaDfxm3fp+CKCbPA31BjBMzcC+5ygmg/psq4vi5lqDUc62zJp
         3KiJiTL/ZuW4wU0EWE+lNOVM+Satr1Zy+nSm0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type:content-transfer-encoding;
        b=oG/14yrW+PJ9e1XxH5MTFm/GM1m+hXPS0I3uk8vb8ABwtB2cdrVQcffrNcNUi6jCkk
         ARHpb1lLJCkMd76hX9M6wZvwD6JgiyZPK/V/5oiBOJQTYoJvK+BoSi/uICz0Z7yVF8PM
         3VLYePT88P0DlcE7uN/9DiUWernMtvyokQ0Xw=
MIME-Version: 1.0
Received: by 10.100.208.9 with SMTP id f9mr2543436ang.55.1249001522298; Thu, 
	30 Jul 2009 17:52:02 -0700 (PDT)
In-Reply-To: <e01d8a50907300744q3ac2b65bqf603f92302aa4f92@HIDDEN>
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
	 <20090730104722.GA2397@HIDDEN>
	 <e01d8a50907300640y63dec176pd19df68d33ce27ec@HIDDEN>
	 <e01d8a50907300744q3ac2b65bqf603f92302aa4f92@HIDDEN>
Date: Fri, 31 Jul 2009 02:52:02 +0200
Message-ID: <e01d8a50907301752r7b9cd343xa00d8244f6feace8@HIDDEN>
Subject: Re: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
From: Lennart Borgman <lennart.borgman@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Cc: 3972 <at> debbugs.gnu.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 30, 2009 at 4:44 PM, Lennart
Borgman<lennart.borgman@HIDDEN> wrote:
> On Thu, Jul 30, 2009 at 3:40 PM, Lennart
> Borgman<lennart.borgman@HIDDEN> wrote:
>
>> The problem I am actually fighting is a bit different I believe.
>> c-fill-paragraph is a bit complicated so I am not sure. What I see
>> when I am testing is that c-fill-paragraph works in some MuMaMo chunks
>> (ie a chunk of the buffer with one major mode, other than in the
>> chunks before and after it) and not others, though in both cases the
>> major mode is php-mode. My guess so far is that it is because of a
>> (widen) somewhere inside c-fill-paragraph that makes a call to
>> something, perhaps to syntax-ppss or similar, come back with bad
>> information (since it is influenced by contents in other chunks).
>>
>> What do you think about this guess?
>
> I tried to flet widen to ignore. That worked, but when trying to byte
> compile I got:
>
> =C2=A0mumamo.el:6734:57:Error: Byte-compiling a redefinition of `widen'
> will not work - use `labels' instead
>
> But `labels' does a lexical binding, not a dynamic binding so that
> obviously will not work. So now I don't know what to do...
> defadvice...?


I decided to use defadvice on `widen' (+ enable/disable) for the
moment. It seems to work fine.

However that c-fill-paragraph is bound to M-q is still a problem, I
had to rebind that.

I noticed some other problems:

- The doc string for fill-paragraph-function does not say anything
about the functions arguments.
- The arguments to c-fill-paragraph is not the expected ones though it
is used as fill-paragraph-function. (But it works - and I don't
understand why at the moment...)

Also the double role of c-fill-paragraph is perhaps a difficult design
(it is used both for M-x and fill-paragraph-function).



Acknowledgement sent to Lennart Borgman <lennart.borgman@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3972; Package emacs. Full text available.

Message received at 3972@HIDDEN:


Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 21:12:43 +0000
From monnier@HIDDEN Thu Jul 30 14:12:43 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-4.4 required=4.0 tests=AWL,HAS_BUG_NUMBER,
	MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6ULCbRs001929
	for <3972@HIDDEN>; Thu, 30 Jul 2009 14:12:39 -0700
Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177])
	by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n6ULCasd015935;
	Thu, 30 Jul 2009 17:12:36 -0400
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 832603A06B; Thu, 30 Jul 2009 17:12:36 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Cc: 3972 <at> debbugs.gnu.org,
        Lennart Borgman <lennart.borgman@HIDDEN>
Subject: Re: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Message-ID: <jwv8wi5yj2g.fsf-monnier+emacsbugreports@HIDDEN>
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
	<20090730104722.GA2397@HIDDEN>
Date: Thu, 30 Jul 2009 17:12:36 -0400
In-Reply-To: <20090730104722.GA2397@HIDDEN> (Alan Mackenzie's message of "Thu,
	30 Jul 2009 10:47:22 +0000")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV3330=0

> I've just looked at fill-paragraph's source, and it looks like it's
> broken.  If it's called interactively, transient mark mode is enabled,
> the mark "is active", the region is non-zero length, and it's currently
> a full moon, each paragraph in the region is filled by calling
> fill-region, bypassing fill-paragraph-function.  Or maybe I've missed
> something.

That's a long standing design bug, indeed.

I think fill.el needs to introduce fill-forward-paragraph-function and
some kind of fill-region-as-paragraph-function (and obsolete
fill-paragraph-function).

Patches welcome,


        Stefan



Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3972; Package emacs. Full text available.

Message received at 3972@HIDDEN:


Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 14:44:29 +0000
From lennart.borgman@HIDDEN Thu Jul 30 07:44:29 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail-yw0-f186.google.com (mail-yw0-f186.google.com [209.85.211.186])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6UEiOwd020476
	for <3972@HIDDEN>; Thu, 30 Jul 2009 07:44:25 -0700
Received: by ywh16 with SMTP id 16so749423ywh.24
        for <3972@HIDDEN>; Thu, 30 Jul 2009 07:44:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:cc:content-type
         :content-transfer-encoding;
        bh=TWlkdlIeJ84rDTyKnUH5Dr91WhYucyI5JcC+ZN6QxyQ=;
        b=YT0zCQcDVtT2IwGxjIEUUIkTmggGWk2L5IudcGVSxfI+2e2QJGv4hI+qYp26bMvf5G
         vSp6KiitPPmvsbFKm/8leKH2gPLoN5cAGGA5YdWaBDfXrtNW5vokLET1IuJrW6yjPvZY
         t1QTQT/r5Gp0DppZUP2jQLKYbxInfOm4diVxg=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type:content-transfer-encoding;
        b=XSjVyweAVPAkw99Uyw+vEoCo+A0ilLLl+Hpj2UU320VECIRHQId+IMnaBLpqko1UIi
         qdo/jxeyCLArWHtiHst1WV4zhq55SfMugBUMAI1FLW90C7iVLfj75KmQwpDB9y9FpxyF
         hzlhAb8zoM6JhfQXoUPqSjCKRv91UolrRPuK4=
MIME-Version: 1.0
Received: by 10.100.38.12 with SMTP id l12mr1616098anl.167.1248965058778; Thu, 
	30 Jul 2009 07:44:18 -0700 (PDT)
In-Reply-To: <e01d8a50907300640y63dec176pd19df68d33ce27ec@HIDDEN>
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
	 <20090730104722.GA2397@HIDDEN>
	 <e01d8a50907300640y63dec176pd19df68d33ce27ec@HIDDEN>
Date: Thu, 30 Jul 2009 16:44:18 +0200
Message-ID: <e01d8a50907300744q3ac2b65bqf603f92302aa4f92@HIDDEN>
Subject: Re: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
From: Lennart Borgman <lennart.borgman@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Cc: 3972 <at> debbugs.gnu.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

On Thu, Jul 30, 2009 at 3:40 PM, Lennart
Borgman<lennart.borgman@HIDDEN> wrote:

> The problem I am actually fighting is a bit different I believe.
> c-fill-paragraph is a bit complicated so I am not sure. What I see
> when I am testing is that c-fill-paragraph works in some MuMaMo chunks
> (ie a chunk of the buffer with one major mode, other than in the
> chunks before and after it) and not others, though in both cases the
> major mode is php-mode. My guess so far is that it is because of a
> (widen) somewhere inside c-fill-paragraph that makes a call to
> something, perhaps to syntax-ppss or similar, come back with bad
> information (since it is influenced by contents in other chunks).
>
> What do you think about this guess?

I tried to flet widen to ignore. That worked, but when trying to byte
compile I got:

  mumamo.el:6734:57:Error: Byte-compiling a redefinition of `widen'
will not work - use `labels' instead

But `labels' does a lexical binding, not a dynamic binding so that
obviously will not work. So now I don't know what to do...
defadvice...?



Acknowledgement sent to Lennart Borgman <lennart.borgman@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3972; Package emacs. Full text available.

Message received at 3972@HIDDEN:


Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 13:40:54 +0000
From lennart.borgman@HIDDEN Thu Jul 30 06:40:54 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail-yx0-f204.google.com (mail-yx0-f204.google.com [209.85.210.204])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6UDem98012887
	for <3972@HIDDEN>; Thu, 30 Jul 2009 06:40:50 -0700
Received: by yxe42 with SMTP id 42so476226yxe.13
        for <3972@HIDDEN>; Thu, 30 Jul 2009 06:40:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:cc:content-type
         :content-transfer-encoding;
        bh=uJa6KnK+5Yck8P7PLWkbuUA6Q5k5ioFrbUM8xVLGlt4=;
        b=dl0HKje/fV7mxH8TXDKazwhYnBxuJkKxysnmFGEx8JRZhRLvFkNwjtyjQDlz4g/oxR
         BR/afXo1qLH713yyKAjgP+B9F91B4fw4RtIboNF1386qXPmC7M0Qc0W4HWNaWRZ/Zydd
         va/UxI5YkPUS62j3S6UBm5gXow/izwb0d7iaE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type:content-transfer-encoding;
        b=E2pKEiSkGT69Ad/s+E5pJDGh1yfkPd0lWEKlRa7RGXIAsPcK4zMSfxCEcAM5wEmPU2
         czJraNlKMVvTmJW49SJwWZL272tFpCmwrqBrFUMsdP4fjXP2qoTGs40c8dUPOZt61y9a
         7O/Y+r1UrF5IT4NtzEKMkfRsl/s/UAF71JWI8=
MIME-Version: 1.0
Received: by 10.100.208.9 with SMTP id f9mr1610362ang.55.1248961243406; Thu, 
	30 Jul 2009 06:40:43 -0700 (PDT)
In-Reply-To: <20090730104722.GA2397@HIDDEN>
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
	 <20090730104722.GA2397@HIDDEN>
Date: Thu, 30 Jul 2009 15:40:43 +0200
Message-ID: <e01d8a50907300640y63dec176pd19df68d33ce27ec@HIDDEN>
Subject: Re: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
From: Lennart Borgman <lennart.borgman@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Cc: 3972 <at> debbugs.gnu.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 30, 2009 at 12:47 PM, Alan Mackenzie<acm@HIDDEN> wrote:
> Hi, Lennart!


Hi Alan, thanks for answering me. It makes my frustration a bit less ... ;-=
)


> On Thu, Jul 30, 2009 at 07:47:32AM +0200, Lennart Borgman wrote:
>> [c-mode sets M-q to c-fill-paragraph]
>> Instead it should set the variable fill-paragraph.
>
> It would be nice, wouldn't it?
>
> Have you tried it, and does it work? =C2=A0Does it always work?


No, sigh, this is one of the desperate bug reports I send when I am
unable to get a "simple" thing to work in MuMaMo. I just gets confused
and gets things a bit wrong.

I realized after sending the bug report that you probably had some
good reason for doing it the way you do, as you confirm below. (But
that looks like a bug, but not the one I thought I found.)

The problem I am actually fighting is a bit different I believe.
c-fill-paragraph is a bit complicated so I am not sure. What I see
when I am testing is that c-fill-paragraph works in some MuMaMo chunks
(ie a chunk of the buffer with one major mode, other than in the
chunks before and after it) and not others, though in both cases the
major mode is php-mode. My guess so far is that it is because of a
(widen) somewhere inside c-fill-paragraph that makes a call to
something, perhaps to syntax-ppss or similar, come back with bad
information (since it is influenced by contents in other chunks).

What do you think about this guess?



> I've just looked at fill-paragraph's source, and it looks like it's
> broken. =C2=A0If it's called interactively, transient mark mode is enable=
d,
> the mark "is active", the region is non-zero length, and it's currently
> a full moon, each paragraph in the region is filled by calling
> fill-region, bypassing fill-paragraph-function. =C2=A0Or maybe I've misse=
d
> something.
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>



Acknowledgement sent to Lennart Borgman <lennart.borgman@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3972; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 30 Jul 2009 10:51:49 +0000
From acm@HIDDEN Thu Jul 30 03:51:49 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6UApjnC023659
	for <submit@HIDDEN>; Thu, 30 Jul 2009 03:51:46 -0700
Received: from mx10.gnu.org ([199.232.76.166]:51371)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <acm@HIDDEN>)
	id 1MWTEe-0006fp-V7
	for emacs-pretest-bug@HIDDEN; Thu, 30 Jul 2009 06:51:45 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <acm@HIDDEN>)
	id 1MWTEc-0007FX-RN
	for emacs-pretest-bug@HIDDEN; Thu, 30 Jul 2009 06:51:44 -0400
Received: from colin.muc.de ([193.149.48.1]:2615 helo=mail.muc.de)
	by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <acm@HIDDEN>)
	id 1MWTEc-0007F3-6i
	for emacs-pretest-bug@HIDDEN; Thu, 30 Jul 2009 06:51:42 -0400
Received: (qmail 17035 invoked by uid 3782); 30 Jul 2009 10:44:59 -0000
Received: from acm.muc.de (pD9E52005.dip.t-dialin.net [217.229.32.5]) by
	colin2.muc.de (tmda-ofmipd) with ESMTP;
	Thu, 30 Jul 2009 12:44:57 +0200
Received: (qmail 2751 invoked by uid 1000); 30 Jul 2009 10:47:22 -0000
Date: Thu, 30 Jul 2009 10:47:22 +0000
To: Lennart Borgman <lennart.borgman@HIDDEN>,
        3972 <at> debbugs.gnu.org
Cc: emacs-pretest-bug@HIDDEN
Subject: Re: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Message-ID: <20090730104722.GA2397@HIDDEN>
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
User-Agent: Mutt/1.5.9i
X-Delivery-Agent: TMDA/1.1.5 (Fettercairn)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9

Hi, Lennart!

On Thu, Jul 30, 2009 at 07:47:32AM +0200, Lennart Borgman wrote:
> [c-mode sets M-q to c-fill-paragraph]
> Instead it should set the variable fill-paragraph.

It would be nice, wouldn't it?

Have you tried it, and does it work?  Does it always work?

I've just looked at fill-paragraph's source, and it looks like it's
broken.  If it's called interactively, transient mark mode is enabled,
the mark "is active", the region is non-zero length, and it's currently
a full moon, each paragraph in the region is filled by calling
fill-region, bypassing fill-paragraph-function.  Or maybe I've missed
something.

-- 
Alan Mackenzie (Nuremberg, Germany).



Acknowledgement sent to Alan Mackenzie <acm@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3972; Package emacs. Full text available.

Message received at 3972@HIDDEN:


Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 10:45:09 +0000
From acm@HIDDEN Thu Jul 30 03:45:08 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail.muc.de (qmailr@HIDDEN [193.149.48.1])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6UAj01s022757
	for <3972@HIDDEN>; Thu, 30 Jul 2009 03:45:03 -0700
Received: (qmail 17022 invoked by uid 3782); 30 Jul 2009 10:44:59 -0000
Received: from acm.muc.de (pD9E52005.dip.t-dialin.net [217.229.32.5]) by
	colin2.muc.de (tmda-ofmipd) with ESMTP;
	Thu, 30 Jul 2009 12:44:57 +0200
Received: (qmail 2751 invoked by uid 1000); 30 Jul 2009 10:47:22 -0000
Date: Thu, 30 Jul 2009 10:47:22 +0000
To: Lennart Borgman <lennart.borgman@HIDDEN>,
        3972 <at> debbugs.gnu.org
Cc: emacs-pretest-bug@HIDDEN
Subject: Re: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Message-ID: <20090730104722.GA2397@HIDDEN>
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
User-Agent: Mutt/1.5.9i
X-Delivery-Agent: TMDA/1.1.5 (Fettercairn)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN

Hi, Lennart!

On Thu, Jul 30, 2009 at 07:47:32AM +0200, Lennart Borgman wrote:
> [c-mode sets M-q to c-fill-paragraph]
> Instead it should set the variable fill-paragraph.

It would be nice, wouldn't it?

Have you tried it, and does it work?  Does it always work?

I've just looked at fill-paragraph's source, and it looks like it's
broken.  If it's called interactively, transient mark mode is enabled,
the mark "is active", the region is non-zero length, and it's currently
a full moon, each paragraph in the region is filled by calling
fill-region, bypassing fill-paragraph-function.  Or maybe I've missed
something.

-- 
Alan Mackenzie (Nuremberg, Germany).



Acknowledgement sent to Alan Mackenzie <acm@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3972; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 30 Jul 2009 05:47:39 +0000
From lennart.borgman@HIDDEN Wed Jul 29 22:47:38 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.8 required=4.0 tests=AWL autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6U5lYlc014889
	for <submit@HIDDEN>; Wed, 29 Jul 2009 22:47:36 -0700
Received: from mail.gnu.org ([199.232.76.166]:55794 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <lennart.borgman@HIDDEN>)
	id 1MWOUI-0000J6-I0
	for emacs-pretest-bug@HIDDEN; Thu, 30 Jul 2009 01:47:34 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <lennart.borgman@HIDDEN>)
	id 1MWOUH-0006iK-Or
	for emacs-pretest-bug@HIDDEN; Thu, 30 Jul 2009 01:47:34 -0400
Received: from mail-yw0-f184.google.com ([209.85.211.184]:45121)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <lennart.borgman@HIDDEN>)
	id 1MWOUH-0006iF-Fh
	for emacs-pretest-bug@HIDDEN; Thu, 30 Jul 2009 01:47:33 -0400
Received: by ywh14 with SMTP id 14so419051ywh.1
        for <emacs-pretest-bug@HIDDEN>; Wed, 29 Jul 2009 22:47:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:date:message-id:subject
         :from:to:content-type:content-transfer-encoding;
        bh=KA+V7y4AR56haXPvyqgiym291nI5rCp1UeiDqnTwVm4=;
        b=CVaUozOuAFK2Rrqpggg38kTBoksZ377VsQaBFdpc8/nd2CjlZQJUxR2UOAi1lwUd4/
         59dIV48aFIW5UAqQ7gNDSfC+bcIi3lCI0+zO0gUH7Vdy3gK00ADSZywWh0oHdODLgVwr
         EVR54YLrbDFjLdfff0lhnen0nXo9/oybSrv4s=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        b=k/AXSSpLoetNvWV1mTXoK8jJ+M54PIzV3a+QKIdnVmaOHQeAXTVrpB4SJIrOhEjIUj
         y9ryBH2/jZfJ3C7sz5v/qVPoTM8I0AoikDDRqxWs7LmmZLpGQQ21GtwhTZ0FBYHZ/7DN
         LcZCT9Gh+EcukKZirPM72XBu+PAzAvm3uP9z0=
MIME-Version: 1.0
Received: by 10.100.47.10 with SMTP id u10mr1048087anu.17.1248932852892; Wed, 
	29 Jul 2009 22:47:32 -0700 (PDT)
Date: Thu, 30 Jul 2009 07:47:32 +0200
Message-ID: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
Subject: 23.1.50; c-mode sets M-q to c-fill-paragraph
From: Lennart Borgman <lennart.borgman@HIDDEN>
To: emacs-pretest-bug@HIDDEN
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)

Instead it should set the variable fill-paragraph.


In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-06-30
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'



Acknowledgement sent to Lennart Borgman <lennart.borgman@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3972; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.