From acm@muc.de Thu Sep 4 01:29:07 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,IMPRONONCABLE_1, MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Sep 2008 08:29:07 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m848T3bg020016 for ; Thu, 4 Sep 2008 01:29:04 -0700 Received: from mail.gnu.org ([199.232.76.166]:45595 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KbABX-0000Hk-Jh for emacs-pretest-bug@gnu.org; Thu, 04 Sep 2008 04:27:23 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KbAD2-0000kh-2z for emacs-pretest-bug@gnu.org; Thu, 04 Sep 2008 04:29:02 -0400 Received: from colin.muc.de ([193.149.48.1]:1875 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 ) id 1KbAD1-0000kD-J7 for emacs-pretest-bug@gnu.org; Thu, 04 Sep 2008 04:28:55 -0400 Received: (qmail 25542 invoked by uid 3782); 4 Sep 2008 08:28:52 -0000 Received: from acm.muc.de (pD9E53DB1.dip.t-dialin.net [217.229.61.177]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 04 Sep 2008 10:28:50 +0200 Received: (qmail 2580 invoked by uid 1000); 4 Sep 2008 08:33:17 -0000 Date: Thu, 4 Sep 2008 08:33:17 +0000 To: "Lennart Borgman \(gmail\)" Cc: emacs-pretest-bug@gnu.org Subject: Re: 23.0.60; c-mode indentation and php Message-ID: <20080904083317.GA1611@muc.de> References: <48BF02CC.1010704@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48BF02CC.1010704@gmail.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Hi, Lennart, On Wed, Sep 03, 2008 at 11:34:04PM +0200, Lennart Borgman (gmail) wrote: > In php-mode.el (not yet a part of Emacs, but has been discussed for > inclusion) c-indent-line is used for indentation. UUURRRKKK!!! > That works nicely for the php code part of a php template page, but > there is a disturbing glitch that probably can be fixed. > Constructs like the one below are rather common. > if (1) { > ?> > ... > } > If you try to indent the line with the single "}" in c-mode it does not > get aligned with "if (1) {". I have narrowed this down to > if (1) { > ?php > } > Adding a semicolon after "?php" makes everything work. Without the semicolon, the close brace is on a "statement continued" (statement-cont) line. > Is the current indentation behaviour in this case useful in some way? Yes. I'm characterising your "in this case" as "after a line lacking ; or }". It's essential to normal C indentation. E.g.: a = b + c // no semicolon + d ; // statement-cont (use C-s C-c) gets more indentation. > Is there some option to change it? Yes. Write a PHP-specific function to determine whether a line ends with a "virtual semicolon", and set `c-at-vsemi-p-fn' to this function. This mechanism is used for AWK Mode, and is described in detail in cc-defs.el (search for "virtual"). > The example came from a bug report/question for nXhtml: > https://answers.launchpad.net/nxhtml/+question/43320 > In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) > of 2008-09-03 > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (3.4) --no-opt --cflags > -Ic:/g/include -fno-crossjumping' -- Alan Mackenzie (Nuremberg, Germany). From lekktu@gmail.com Thu Sep 4 04:12:46 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,BAYES_00,ONEWORD,REFWD, VALID_BTS_CONTROL autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 4 Sep 2008 11:12:46 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84BChHS012636 for ; Thu, 4 Sep 2008 04:12:44 -0700 Received: by an-out-0708.google.com with SMTP id b20so600123ana.9 for ; Thu, 04 Sep 2008 04:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=EdfenyfmFfRySlhPtsmD+x5D0jzj0OqO4nIMNFDxIZk=; b=fkdMmV1jbi44s/z5S1gdJcJ/fWv++yzMPm9JdBWQzkU64LMjWsoa17YT8YnnGFGVcr atfS0706KiGBVZyu9z3HbuJsLT/6OC5uerA97P1iTjIhS3mw+sB/e5vPoEeZJ+7DPXe5 Hyo1sLDClXqS4gLliTLzjlAJt/LyRTuMIgitk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=x0McRBJ/cpMNYnKFY6hjlRiPczEjjMbsELFuTw8Fct+x9miPK4MMnyJdTSbLvt/8j7 n7kQbnxJJrQHYfw6nJJjDt6wkfG60/CGTubKBnWjQGqGfbotFy10Ysp6v/wgr4l9omsP geviKPIwjQHvbPYL/+GshR9M7l1BCNe2OS1SY= Received: by 10.100.111.5 with SMTP id j5mr10648812anc.3.1220526762794; Thu, 04 Sep 2008 04:12:42 -0700 (PDT) Received: by 10.100.194.19 with HTTP; Thu, 4 Sep 2008 04:12:42 -0700 (PDT) Message-ID: Date: Thu, 4 Sep 2008 13:12:42 +0200 From: "Juanma Barranquero" To: control@debbugs.gnu.org Subject: Re: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: reassign 880 emacs,cc-mode forcemerge 877 880 quit From rgm@gnu.org Thu Sep 4 09:43:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 880) by emacsbugs.donarmstrong.com; 4 Sep 2008 16:43:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84GhiZP029815 for <880@emacsbugs.donarmstrong.com>; Thu, 4 Sep 2008 09:43:45 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KbHuG-0001P3-9A; Thu, 04 Sep 2008 12:42:04 -0400 From: Glenn Morris To: lennart.borgman@gmail.com Cc: 880@debbugs.gnu.org Subject: Re: bug#880: 23.0.60; c-mode indentation and php References: <48BF02CC.1010704@gmail.com> <20080904083317.GA1611@muc.de> X-Spook: Peking passwd Ft. Meade corporate security Leuken-Baden X-Ran: -T^J1OdK:jU\RroP?vC;x$sN:]~EDoh2F'J=-"o.ix(;W_KJyZqh9~;2xnJL5D|R?=%1oE X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 04 Sep 2008 12:42:04 -0400 In-Reply-To: <20080904083317.GA1611@muc.de> (Alan Mackenzie's message of "Thu, 4 Sep 2008 08:33:17 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii If you want to be "helpful" and cc bug reports to people when you file them, plese use X-Debbugs-CC instead of CC, so that they get a copy with the bug report number in the address. From rgm@gnu.org Thu Sep 4 09:44:34 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.4 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 4 Sep 2008 16:44:34 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84GiVnu029930 for ; Thu, 4 Sep 2008 09:44:32 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KbHv1-0001QC-OL; Thu, 04 Sep 2008 12:42:51 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18624.4107.673105.410193@fencepost.gnu.org> Date: Thu, 4 Sep 2008 12:42:51 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: i,L|jFt>a~z'3J:;VfxM6fECwKk)NY$k;]8w}WdJ=QG(-\Tjz$TaZu5|5[)QCFVgZefa`a X-Debbugs-No-Ack: yes reassign 877 php-mode From rgm@gnu.org Mon Nov 30 13:46:47 2009 Received: (at control) by emacsbugs.donarmstrong.com; 30 Nov 2009 21:46:47 +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=-3.7 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL 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 nAULkjmj029601 for ; Mon, 30 Nov 2009 13:46:47 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1NFE4z-0002d6-6T; Mon, 30 Nov 2009 16:46:45 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19220.15685.127098.612370@fencepost.gnu.org> Date: Mon, 30 Nov 2009 16:46:45 -0500 From: Glenn Morris To: control Subject: control reassign 490 notemacs reassign 2488 notemacs reassign 877 notemacs reassign 3988 emacs reassign 485 notemacs reassign 1683 notemacs reassign 1763 notemacs merge 1763 1683 close 1683 reassign 1036 notemacs reassign 92 emacs,gnus reassign 4540 emacs,ns reassign 4566 emacs,ns severity 4566 minor reassign 485 notemacs severity 5069 minor From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 01 04:00:58 2011 Received: (at control) by debbugs.gnu.org; 1 Mar 2011 09:00:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuLRy-0001GM-Al for submit@debbugs.gnu.org; Tue, 01 Mar 2011 04:00:58 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuLRx-0001G7-JG for control@debbugs.gnu.org; Tue, 01 Mar 2011 04:00:57 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1PuLRs-0006ey-D7 for control@debbugs.gnu.org; Tue, 01 Mar 2011 04:00:52 -0500 Date: Tue, 01 Mar 2011 04:00:52 -0500 Message-Id: Subject: control message for bug 877 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -6.3 (------) close 877 From unknown Fri Jun 20 18:16:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 29 Mar 2011 11:24:04 +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