From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: CEDET merge Date: Sat, 03 Oct 2009 21:44:24 -0400 Message-ID: <87ab08gcg7.fsf@stupidchicken.com> References: <87hbun9jbs.fsf@stupidchicken.com> <1254397096.16450.84.camel@projectile.siege-engine.com> <87my48i6ge.fsf@stupidchicken.com> <1254601878.6961.66.camel@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254620688 32307 80.91.229.12 (4 Oct 2009 01:44:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2009 01:44:48 +0000 (UTC) Cc: Sascha Wilde , emacs-devel@gnu.org To: eric@siege-engine.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 04 03:44:41 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 1MuG9O-0006nI-K8 for ged-emacs-devel@m.gmane.org; Sun, 04 Oct 2009 03:44:38 +0200 Original-Received: from localhost ([127.0.0.1]:34676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuG9O-00089I-2G for ged-emacs-devel@m.gmane.org; Sat, 03 Oct 2009 21:44:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MuG9I-00087h-Pn for emacs-devel@gnu.org; Sat, 03 Oct 2009 21:44:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MuG9E-00083m-25 for emacs-devel@gnu.org; Sat, 03 Oct 2009 21:44:32 -0400 Original-Received: from [199.232.76.173] (port=59604 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuG9D-00083R-SF for emacs-devel@gnu.org; Sat, 03 Oct 2009 21:44:27 -0400 Original-Received: from pantheon-po32.its.yale.edu ([130.132.50.88]:59402) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MuG9D-0003Rs-Jh for emacs-devel@gnu.org; Sat, 03 Oct 2009 21:44:27 -0400 Original-Received: from furry (adsl-99-69-49-102.dsl.wlfrct.sbcglobal.net [99.69.49.102]) (authenticated bits=0) by pantheon-po32.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n941iQuN021387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 3 Oct 2009 21:44:26 -0400 Original-Received: by furry (Postfix, from userid 1000) id 5FA15C070; Sat, 3 Oct 2009 21:44:26 -0400 (EDT) In-Reply-To: <1254601878.6961.66.camel@projectile.siege-engine.com> (Eric M. Ludlam's message of "Sat, 03 Oct 2009 16:31:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:115889 Archived-At: "Eric M. Ludlam" writes: >> Building in EDE should now work---provided Semantic is enabled from the >> start. We still need to provide a way for SRecode to call Semantic to >> parse the template buffer, when Semantic is not currently enabled (this >> functionality will be useful for other parts of Emacs too). > > Semantic can parse files even if all the other related utilities are > never enabled. As long as srecode-template-mode sets up the parser info > itself, and not in the new "semantic-mode", then it can use the Semantic > API to parse buffers during template compilation without interfering > with someones desire to not enable Semantic parsing and utilities in > other files, like C++ mode. How about this: In the Emacs-integrated version of Semantic, we semantic-new-buffer-fcn so that it runs the mode-dependent parser setup functions before doing anything else. This is as opposed to running the parser setup functions from the mode-hooks, as your upstream code does, or in the body of semantic-mode, as the Emacs version currently does. So, when srecode calls semantic-new-buffer-fcn, the right setup will take place. What do you think?