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: Sun, 04 Oct 2009 01:52:36 -0400 Message-ID: <87ljjrogd7.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> <87ab08gcg7.fsf@stupidchicken.com> <1254623454.6961.75.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 1254635583 24215 80.91.229.12 (4 Oct 2009 05:53:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2009 05:53:03 +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 07:52:56 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 1MuK1f-0003wh-OO for ged-emacs-devel@m.gmane.org; Sun, 04 Oct 2009 07:52:56 +0200 Original-Received: from localhost ([127.0.0.1]:45395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuK1f-000185-27 for ged-emacs-devel@m.gmane.org; Sun, 04 Oct 2009 01:52:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MuK1V-00015I-OK for emacs-devel@gnu.org; Sun, 04 Oct 2009 01:52:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MuK1Q-0000yq-CH for emacs-devel@gnu.org; Sun, 04 Oct 2009 01:52:44 -0400 Original-Received: from [199.232.76.173] (port=41304 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuK1Q-0000yc-6Z for emacs-devel@gnu.org; Sun, 04 Oct 2009 01:52:40 -0400 Original-Received: from pantheon-po45.its.yale.edu ([130.132.50.79]:55478) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MuK1P-0000X6-Rq for emacs-devel@gnu.org; Sun, 04 Oct 2009 01:52:39 -0400 Original-Received: from furry (adsl-99-69-49-102.dsl.wlfrct.sbcglobal.net [99.69.49.102]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n945qbOh005605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 4 Oct 2009 01:52:38 -0400 Original-Received: by furry (Postfix, from userid 1000) id B8673C070; Sun, 4 Oct 2009 01:52:36 -0400 (EDT) In-Reply-To: <1254623454.6961.75.camel@projectile.siege-engine.com> (Eric M. Ludlam's message of "Sat, 03 Oct 2009 22:30:54 -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:115891 Archived-At: "Eric M. Ludlam" writes: > Does the Emacs integrated CEDET no longer use mode-local to call > semantic-new-buffer-fcn? That could be good news. The hooks available > in Emacs to detect a change in major mode for mode-local.el have been > challenging to get right, and I think they can still sometimes not work > right. No, semantic-new-buffer-fcn is still called from mode-local. I was proposing to move the parser setup functions from the mode hooks into semantic-new-buffer-fcn. That way, we can parse an existing buffer (e.g., a buffer that already exists by the time Semantic is enabled, or a buffer that Srecode wants to parse without enabling Semantic globally), simply by calling semantic-new-buffer-fcn.