From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Semantic parser uses c-forward-conditional Date: Wed, 23 Sep 2009 09:24:32 +0000 Message-ID: <20090923092432.GA2372@muc.de> References: <87zl8oumvl.fsf@stupidchicken.com> <20090922105735.GA3722@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253697690 10828 80.91.229.12 (23 Sep 2009 09:21:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2009 09:21:30 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Richard Stallman , "Eric M. Ludlam" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 23 11:21:22 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MqO29-0008VQ-Fo for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2009 11:21:09 +0200 Original-Received: from localhost ([127.0.0.1]:46783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqO28-00021r-In for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2009 05:21:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqO20-00020Y-JI for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:21:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqO1u-0001x1-Lp for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:20:59 -0400 Original-Received: from [199.232.76.173] (port=57622 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqO1u-0001wy-Bi for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:20:54 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:1957 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 1MqO1t-0007T4-FO for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:20:53 -0400 Original-Received: (qmail 10813 invoked by uid 3782); 23 Sep 2009 09:20:51 -0000 Original-Received: from acm.muc.de (pD9E50D49.dip.t-dialin.net [217.229.13.73]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 23 Sep 2009 11:20:49 +0200 Original-Received: (qmail 2981 invoked by uid 1000); 23 Sep 2009 09:24:32 -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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115539 Archived-At: Hi, Richard and Eric! On Wed, Sep 23, 2009 at 02:30:18AM -0400, Richard Stallman wrote: > I'm not very keen on that, but how about this instead: a new defun > c-forward-conditional-1 which does the same, except it doesn't push a > mark, doesn't throw errors like "No following conditional at this > level", and returns the final point, or nil? > Since that would be meant as a command for other programs to use, > and not merely a subroutine, it would be better to give it a name > that fits. Um, well, thanks for the suggestion. ;-) How about `c-scan-conditionals', since the function does the same as scan-lists, more or less? Actually, more, since it moves point to the end position, unlike scan-lists. Maybe the new c-scan-conditionals shouldn't move point? Eric, what do you think? -- Alan Mackenzie (Nuremberg, Germany).