GNU logs - #3972, boring messages


Message sent to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:


X-Loop: owner@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Reply-To: Lennart Borgman <lennart.borgman@HIDDEN>, 3972 <at> debbugs.gnu.org
Resent-From: Lennart Borgman <lennart.borgman@HIDDEN>
Resent-To: bug-submit-list@HIDDEN
Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Resent-Date: Thu, 30 Jul 2009 05:55:04 +0000
Resent-Message-ID: <handler.3972.B.124893285914896@HIDDEN>
Resent-Sender: help-debbugs@HIDDEN
X-Emacs-PR-Message: report 3972
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by submit@HIDDEN id=B.124893285914896
          (code B ref -1); Thu, 30 Jul 2009 05:55:04 +0000
Received: (at submit) by emacsbugs.donarmstrong.com; 30 Jul 2009 05:47:39 +0000
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>
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'



Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@HIDDEN
From: help-debbugs@HIDDEN (Emacs bug Tracking System)
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: bug#3972: Acknowledgement (23.1.50; c-mode sets M-q to
 c-fill-paragraph)
Message-ID: <handler.3972.B.124893285914896.ack@HIDDEN>
References: <e01d8a50907292247i1c057389rc76136a033e27db7@HIDDEN>
X-Emacs-PR-Message: ack 3972
X-Emacs-PR-Package: emacs
Reply-To: 3972 <at> debbugs.gnu.org
Date: Thu, 30 Jul 2009 05:55:05 +0000


Thank you for filing a new bug report with Emacs.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Emacs Bugs <bug-gnu-emacs@HIDDEN>

If you wish to submit further information on this problem, please
send it to 3972 <at> debbugs.gnu.org, as before.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.


--=20
3972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3972
Emacs Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:


X-Loop: owner@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Reply-To: Alan Mackenzie <acm@HIDDEN>, 3972 <at> debbugs.gnu.org
Resent-From: Alan Mackenzie <acm@HIDDEN>
Resent-To: bug-submit-list@HIDDEN
Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Resent-Date: Thu, 30 Jul 2009 10:50:04 +0000
Resent-Message-ID: <handler.3972.B3972.124895070922916@HIDDEN>
Resent-Sender: help-debbugs@HIDDEN
X-Emacs-PR-Message: followup 3972
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by 3972-submit@HIDDEN id=B3972.124895070922916
          (code B ref 3972); Thu, 30 Jul 2009 10:50:04 +0000
Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 10:45:09 +0000
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
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).



Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@HIDDEN
From: help-debbugs@HIDDEN (Emacs bug Tracking System)
To: Alan Mackenzie <acm@HIDDEN>
Subject: bug#3972: Info received (bug#3972: 23.1.50; c-mode sets M-q to
 c-fill-paragraph)
Message-ID: <handler.3972.B3972.124895070922916.ackinfo@HIDDEN>
References: <20090730104722.GA2397@HIDDEN>
X-Emacs-PR-Message: ack-info 3972
X-Emacs-PR-Package: emacs
Reply-To: 3972 <at> debbugs.gnu.org
Date: Thu, 30 Jul 2009 10:50:05 +0000


Thank you for the additional information you have supplied regarding
this bug report.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Emacs Bugs <bug-gnu-emacs@HIDDEN>

If you wish to submit further information on this problem, please
send it to 3972 <at> debbugs.gnu.org, as before.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.


--=20
3972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3972
Emacs Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:


X-Loop: owner@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Reply-To: Alan Mackenzie <acm@HIDDEN>, 3972 <at> debbugs.gnu.org
Resent-From: Alan Mackenzie <acm@HIDDEN>
Resent-To: bug-submit-list@HIDDEN
Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Resent-Date: Thu, 30 Jul 2009 10:55:06 +0000
Resent-Message-ID: <handler.3972.B.124895110923664@HIDDEN>
Resent-Sender: help-debbugs@HIDDEN
X-Emacs-PR-Message: followup 3972
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by submit@HIDDEN id=B.124895110923664
          (code B ref -1); Thu, 30 Jul 2009 10:55:06 +0000
Received: (at submit) by emacsbugs.donarmstrong.com; 30 Jul 2009 10:51:49 +0000
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
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).



Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@HIDDEN
From: help-debbugs@HIDDEN (Emacs bug Tracking System)
To: Alan Mackenzie <acm@HIDDEN>
Subject: bug#3972: Info received (bug#3972: 23.1.50; c-mode sets M-q to
 c-fill-paragraph)
Message-ID: <handler.3972.B.124895110923664.ackinfo@HIDDEN>
References: <20090730104722.GA2397@HIDDEN>
X-Emacs-PR-Message: ack-info 3972
X-Emacs-PR-Package: emacs
Reply-To: 3972 <at> debbugs.gnu.org
Date: Thu, 30 Jul 2009 10:55:06 +0000


Thank you for the additional information you have supplied regarding
this bug report.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Emacs Bugs <bug-gnu-emacs@HIDDEN>

If you wish to submit further information on this problem, please
send it to 3972 <at> debbugs.gnu.org, as before.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.


--=20
3972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3972
Emacs Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:


X-Loop: owner@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Reply-To: Lennart Borgman <lennart.borgman@HIDDEN>, 3972 <at> debbugs.gnu.org
Resent-From: Lennart Borgman <lennart.borgman@HIDDEN>
Resent-To: bug-submit-list@HIDDEN
Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Resent-Date: Thu, 30 Jul 2009 13:45:08 +0000
Resent-Message-ID: <handler.3972.B3972.124896125412899@HIDDEN>
Resent-Sender: help-debbugs@HIDDEN
X-Emacs-PR-Message: followup 3972
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by 3972-submit@HIDDEN id=B3972.124896125412899
          (code B ref 3972); Thu, 30 Jul 2009 13:45:08 +0000
Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 13:40:54 +0000
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>
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).
>



Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@HIDDEN
From: help-debbugs@HIDDEN (Emacs bug Tracking System)
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: bug#3972: Info received (bug#3972: 23.1.50; c-mode sets M-q to
 c-fill-paragraph)
Message-ID: <handler.3972.B3972.124896125412899.ackinfo@HIDDEN>
References: <e01d8a50907300640y63dec176pd19df68d33ce27ec@HIDDEN>
X-Emacs-PR-Message: ack-info 3972
X-Emacs-PR-Package: emacs
Reply-To: 3972 <at> debbugs.gnu.org
Date: Thu, 30 Jul 2009 13:45:09 +0000


Thank you for the additional information you have supplied regarding
this bug report.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Emacs Bugs <bug-gnu-emacs@HIDDEN>

If you wish to submit further information on this problem, please
send it to 3972 <at> debbugs.gnu.org, as before.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.


--=20
3972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3972
Emacs Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:


X-Loop: owner@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Reply-To: Lennart Borgman <lennart.borgman@HIDDEN>, 3972 <at> debbugs.gnu.org
Resent-From: Lennart Borgman <lennart.borgman@HIDDEN>
Resent-To: bug-submit-list@HIDDEN
Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Resent-Date: Thu, 30 Jul 2009 14:50:05 +0000
Resent-Message-ID: <handler.3972.B3972.124896506920484@HIDDEN>
Resent-Sender: help-debbugs@HIDDEN
X-Emacs-PR-Message: followup 3972
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by 3972-submit@HIDDEN id=B3972.124896506920484
          (code B ref 3972); Thu, 30 Jul 2009 14:50:05 +0000
Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 14:44:29 +0000
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>
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...?



Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@HIDDEN
From: help-debbugs@HIDDEN (Emacs bug Tracking System)
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: bug#3972: Info received (bug#3972: 23.1.50; c-mode sets M-q to
 c-fill-paragraph)
Message-ID: <handler.3972.B3972.124896506920484.ackinfo@HIDDEN>
References: <e01d8a50907300744q3ac2b65bqf603f92302aa4f92@HIDDEN>
X-Emacs-PR-Message: ack-info 3972
X-Emacs-PR-Package: emacs
Reply-To: 3972 <at> debbugs.gnu.org
Date: Thu, 30 Jul 2009 14:50:05 +0000


Thank you for the additional information you have supplied regarding
this bug report.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Emacs Bugs <bug-gnu-emacs@HIDDEN>

If you wish to submit further information on this problem, please
send it to 3972 <at> debbugs.gnu.org, as before.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.


--=20
3972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3972
Emacs Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:


X-Loop: owner@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Reply-To: Stefan Monnier <monnier@HIDDEN>, 3972 <at> debbugs.gnu.org
Resent-From: Stefan Monnier <monnier@HIDDEN>
Resent-To: bug-submit-list@HIDDEN
Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Resent-Date: Thu, 30 Jul 2009 21:20:06 +0000
Resent-Message-ID: <handler.3972.B3972.12489883631942@HIDDEN>
Resent-Sender: help-debbugs@HIDDEN
X-Emacs-PR-Message: followup 3972
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by 3972-submit@HIDDEN id=B3972.12489883631942
          (code B ref 3972); Thu, 30 Jul 2009 21:20:06 +0000
Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 21:12:43 +0000
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>
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



Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@HIDDEN
From: help-debbugs@HIDDEN (Emacs bug Tracking System)
To: Stefan Monnier <monnier@HIDDEN>
Subject: bug#3972: Info received (bug#3972: 23.1.50; c-mode sets M-q to
 c-fill-paragraph)
Message-ID: <handler.3972.B3972.12489883631942.ackinfo@HIDDEN>
References: <jwv8wi5yj2g.fsf-monnier+emacsbugreports@HIDDEN>
X-Emacs-PR-Message: ack-info 3972
X-Emacs-PR-Package: emacs
Reply-To: 3972 <at> debbugs.gnu.org
Date: Thu, 30 Jul 2009 21:20:07 +0000


Thank you for the additional information you have supplied regarding
this bug report.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Emacs Bugs <bug-gnu-emacs@HIDDEN>

If you wish to submit further information on this problem, please
send it to 3972 <at> debbugs.gnu.org, as before.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.


--=20
3972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3972
Emacs Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:


X-Loop: owner@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Reply-To: Lennart Borgman <lennart.borgman@HIDDEN>, 3972 <at> debbugs.gnu.org
Resent-From: Lennart Borgman <lennart.borgman@HIDDEN>
Resent-To: bug-submit-list@HIDDEN
Resent-CC: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Resent-Date: Fri, 31 Jul 2009 02:25:11 +0000
Resent-Message-ID: <handler.3972.B3972.124900674827887@HIDDEN>
Resent-Sender: help-debbugs@HIDDEN
X-Emacs-PR-Message: followup 3972
X-Emacs-PR-Package: emacs
X-Emacs-PR-Keywords: 
Received: via spool by 3972-submit@HIDDEN id=B3972.124900674827887
          (code B ref 3972); Fri, 31 Jul 2009 02:25:11 +0000
Received: (at 3972) by emacsbugs.donarmstrong.com; 31 Jul 2009 02:19:08 +0000
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>
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).



Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: owner@HIDDEN
From: help-debbugs@HIDDEN (Emacs bug Tracking System)
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: bug#3972: Info received (bug#3972: 23.1.50; c-mode sets M-q to
 c-fill-paragraph)
Message-ID: <handler.3972.B3972.124900674827887.ackinfo@HIDDEN>
References: <e01d8a50907301752r7b9cd343xa00d8244f6feace8@HIDDEN>
X-Emacs-PR-Message: ack-info 3972
X-Emacs-PR-Package: emacs
Reply-To: 3972 <at> debbugs.gnu.org
Date: Fri, 31 Jul 2009 02:25:11 +0000


Thank you for the additional information you have supplied regarding
this bug report.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Emacs Bugs <bug-gnu-emacs@HIDDEN>

If you wish to submit further information on this problem, please
send it to 3972 <at> debbugs.gnu.org, as before.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.


--=20
3972: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3972
Emacs Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message received at control@HIDDEN:


Received: (at control) by emacsbugs.donarmstrong.com; 5 Nov 2009 03:28:18 +0000
From rgm@HIDDEN Wed Nov  4 19:28:17 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.8 required=4.0 tests=AWL,ONEWORD autolearn=no
	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 nA53SGXq010584
	for <control@HIDDEN>; Wed, 4 Nov 2009 19:28:17 -0800
Received: from rgm by fencepost.gnu.org with local (Exim 4.67)
	(envelope-from <rgm@HIDDEN>)
	id 1N5t1E-0004SR-1R
	for control@HIDDEN; Wed, 04 Nov 2009 22:28:16 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <19186.17999.977447.593930@HIDDEN>
Date: Wed, 4 Nov 2009 22:28:15 -0500
From: Glenn Morris <rgm@HIDDEN>
To: control <control <at> debbugs.gnu.org>
Subject: control

close 1363
close 1531
close 2797
tags 4858 moreinfo
reassign 3972 emacs,cc-mode
tags 3859 moreinfo
tags 3878 moreinfo



Message sent to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph
Resent-From: Andrew Hyatt <ahyatt@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN
Resent-Date: Fri, 12 Feb 2016 04:18:01 +0000
Resent-Message-ID: <handler.3972.B3972.145525064322751 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 3972
X-GNU-PR-Package: emacs,cc-mode
X-GNU-PR-Keywords: 
To: Lennart Borgman <lennart.borgman@HIDDEN>
Cc: Alan Mackenzie <acm@HIDDEN>, 3972 <at> debbugs.gnu.org
Received: via spool by 3972-submit <at> debbugs.gnu.org id=B3972.145525064322751
          (code B ref 3972); Fri, 12 Feb 2016 04:18:01 +0000
Received: (at 3972) by debbugs.gnu.org; 12 Feb 2016 04:17:23 +0000
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>
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-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.




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


Received: (at control) by debbugs.gnu.org; 12 Feb 2016 04:17:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 11 23:17:39 2016
Received: from localhost ([127.0.0.1]:37172 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aU5Ap-0005vM-9Y
	for submit <at> debbugs.gnu.org; Thu, 11 Feb 2016 23:17:39 -0500
Received: from mail-qg0-f53.google.com ([209.85.192.53]:33314)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <ahyatt@HIDDEN>) id 1aU5Ao-0005vA-2w
 for control <at> debbugs.gnu.org; Thu, 11 Feb 2016 23:17:38 -0500
Received: by mail-qg0-f53.google.com with SMTP id b35so54528908qge.0
 for <control <at> debbugs.gnu.org>; Thu, 11 Feb 2016 20:17:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=date:message-id:to:from:subject;
 bh=kPPX/RsYBWeEY2555sPPtpF0nd1H7uEeMV345pghQn0=;
 b=scLJiPui9XIq25ge4viO+sZJbDucsJdF4umhvdwRuKMOCwx4wvzfPXut2dTOWY0Fst
 uniCfmc97am2kGr0rbap2Iwxr81vW7woCQkDMbBAZeez7C0J1QKxtTyC4j7V04DyLjzj
 l+lY5OArhMKsDRYRQUpTu3diAfhmRtGpF504hRw/nDZgSzPgizIua9LtaOBFg4ssl/2r
 ppIBflmMjziM9BBi1FxR0vOyuuIy4DVdx0Zov8C1dpMR7wC5Dm0ag20Okfte7rwhy/eh
 J64HUCNq+YeQmFGFVaz9UiRwqgfpzPm/grQUPOZEI7I0wZzLI+15w0B0R+dz594r/q8d
 TY7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:date:message-id:to:from:subject;
 bh=kPPX/RsYBWeEY2555sPPtpF0nd1H7uEeMV345pghQn0=;
 b=OIRyQqCFPsoEk+W+pnXDQiO73urd+IS6/pUiomqZVfFzMPpq/VfrMU/Lj5PFoA1fmf
 3l6dGjXE0EBVX850O2bl75QJ7WlD3htDWZB+xWuRyyrkP8OJeiUx9T7M8xm+1qB+VikC
 JAy52OyKhRNGdMQ2T1DSJlhW7QicTfLg6sxCovNmdEDYHdyZCBG1Su1zBYl9VM/jcQWy
 AcEjxxB3RxXRz/0YQgOriWY0ycOkb+1MHtC2Ks7cqRg9GtccgyPE/+gPr6qpyqQptiCY
 BtH0cdCiWtJvJuRDLk7ewCi3O9OB6kcTqYCm+dWMpgs2D2EvbSz8gcfmWZzOB6IgKOII
 7OHw==
X-Gm-Message-State: AG10YOT+HCvhEfyjx2eJSZwK0zFzh8xM59nGiQDim2qqnR4MTm3pvirEagRW/lIcz3yHcg==
X-Received: by 10.140.100.244 with SMTP id s107mr35044016qge.19.1455250652819; 
 Thu, 11 Feb 2016 20:17:32 -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 66sm4815442qhp.4.2016.02.11.20.17.31
 for <control <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 11 Feb 2016 20:17:32 -0800 (PST)
Date: Thu, 11 Feb 2016 23:17:31 -0500
Message-Id: <m2pow2zhno.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Andrew Hyatt <ahyatt@HIDDEN>
Subject: control message for bug #3972
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
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 (/)

severity 3972 wishlist





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.