From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#3972: 23.1.50; c-mode sets M-q to c-fill-paragraph Date: Thu, 30 Jul 2009 15:40:43 +0200 Message-ID: References: <20090730104722.GA2397@muc.de> Reply-To: Lennart Borgman , 3972@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248963268 20242 80.91.229.12 (30 Jul 2009 14:14:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2009 14:14:28 +0000 (UTC) Cc: 3972@emacsbugs.donarmstrong.com To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 30 16:14:21 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWWOj-00008z-1Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 16:14:21 +0200 Original-Received: from localhost ([127.0.0.1]:41324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWWOi-00031l-4K for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 10:14:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWW8g-0004bH-Vu for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 09:57:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWW8b-0004Yc-Jp for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 09:57:46 -0400 Original-Received: from [199.232.76.173] (port=35741 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWW8b-0004YW-EU for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 09:57:41 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59071) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWW8a-0004pQ-5s for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 09:57:41 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6UDvVMd014501; Thu, 30 Jul 2009 06:57:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6UDj984013212; Thu, 30 Jul 2009 06:45:09 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 30 Jul 2009 13:45:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3972 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3972-submit@emacsbugs.donarmstrong.com id=B3972.124896125412899 (code B ref 3972); Thu, 30 Jul 2009 13:45:08 +0000 Original-Received: (at 3972) by emacsbugs.donarmstrong.com; 30 Jul 2009 13:40:54 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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@emacsbugs.donarmstrong.com>; Thu, 30 Jul 2009 06:40:50 -0700 Original-Received: by yxe42 with SMTP id 42so476226yxe.13 for <3972@emacsbugs.donarmstrong.com>; 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= Original-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@muc.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 30 Jul 2009 09:57:46 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29730 Archived-At: On Thu, Jul 30, 2009 at 12:47 PM, Alan Mackenzie 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). >