From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: end-of-defun acts weirdly in c-mode; also, mark-defun in c-mode Date: Tue, 3 Feb 2009 10:50:35 +0000 Message-ID: <20090203105035.GB1396@muc.de> References: <20090202202703.GB11077@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233657081 7564 80.91.229.12 (3 Feb 2009 10:31:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 10:31:21 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org To: Miles Bader Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Tue Feb 03 11:32:35 2009 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists.sourceforge.net ([216.34.181.88]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUIa0-0000lf-Ut for sf-cc-mode-help@m.gmane.org; Tue, 03 Feb 2009 11:32:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by 335xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LUIYh-0003eV-BF; Tue, 03 Feb 2009 10:31:11 +0000 Original-Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by 335xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LUIYg-0003eP-4G for cc-mode-help@lists.sourceforge.net; Tue, 03 Feb 2009 10:31:10 +0000 Received-SPF: neutral (29vjzd1.ch3.sourceforge.com: 140.186.70.10 is neither permitted nor denied by domain of muc.de) client-ip=140.186.70.10; envelope-from=acm@muc.de; helo=fencepost.gnu.org; Original-Received: from fencepost.gnu.org ([140.186.70.10]) by 29vjzd1.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1LUIYd-0004ZJ-Pz for cc-mode-help@lists.sourceforge.net; Tue, 03 Feb 2009 10:31:10 +0000 Original-Received: from mail.gnu.org ([199.232.76.166]:56124 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LUIWr-0002G2-0B for bug-cc-mode@gnu.org; Tue, 03 Feb 2009 05:29:17 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LUIYX-0002W6-0f for bug-cc-mode@gnu.org; Tue, 03 Feb 2009 05:31:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,SPF_PASS autolearn=ham version=3.1.0 Original-Received: from colin.muc.de ([193.149.48.1]:1385 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 1LUIYW-0002Vg-Gk for bug-cc-mode@gnu.org; Tue, 03 Feb 2009 05:31:00 -0500 Original-Received: (qmail 12096 invoked by uid 3782); 3 Feb 2009 10:30:57 -0000 Original-Received: from acm.muc.de (pD9E51F3C.dip.t-dialin.net [217.229.31.60]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 03 Feb 2009 11:30:56 +0100 Original-Received: (qmail 9622 invoked by uid 1000); 3 Feb 2009 10:50:35 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-Spam-Score: -2.8 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -4.0 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [140.186.70.10 listed in list.dnswl.org] 1.2 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) X-Headers-End: 1LUIYd-0004ZJ-Pz X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:5297 gmane.emacs.devel:108668 Archived-At: Hi, Miles! On Tue, Feb 03, 2009 at 06:17:06PM +0900, Miles Bader wrote: > > 3 int foo () > > 4 { > > 5 return bar () ; > > 6 } > > 7 > > 8 > > , C-M-e moves pointo to BOL 7. Honest, I've just tried it, with CVS > > from a few days ago, with -Q. That looks consistent to me. I must > > have missed something, somewhere. > For me, with emacs -Q, and from-CVS-as-of-this-morning, point always > moves to BOL 8. I've tried it on a bunch of different C files, and it > always does the same thing. If there is no blank line at 7, then it > will stop at BOL 7 though. > Could you it try again after updating from CVS? Maybe it's a recently > introduce bug... I've just updated and built CVSmacs. M-x emacs-versions gives: GNU Emacs 23.0.90.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2009-02-03 on acm I start it with emacs -Q. Regardless of whether there's a blank line at L7 or not, I cannot get C-M-e to go anywhere but BOL 7. Would you please send me your foo.c as an attachment, tell me where to put point so that C-M-e will fail. Thanks! > -Miles -- Alan Mackenzie (Nuremberg, Germany). ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com