From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re: CEDET merge Date: Thu, 01 Oct 2009 07:31:02 -0400 Message-ID: <1254396662.16450.80.camel@projectile.siege-engine.com> References: <87hbun9jbs.fsf@stupidchicken.com> Reply-To: eric@siege-engine.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1254396754 7646 80.91.229.12 (1 Oct 2009 11:32:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 11:32:34 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 01 13:32:27 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 1MtJsI-00034X-Q0 for ged-emacs-devel@m.gmane.org; Thu, 01 Oct 2009 13:31:07 +0200 Original-Received: from localhost ([127.0.0.1]:54003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtJsI-0006FQ-3l for ged-emacs-devel@m.gmane.org; Thu, 01 Oct 2009 07:31:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtJs5-0006Ey-FF for emacs-devel@gnu.org; Thu, 01 Oct 2009 07:30:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtJs3-0006EZ-Gl for emacs-devel@gnu.org; Thu, 01 Oct 2009 07:30:52 -0400 Original-Received: from [199.232.76.173] (port=41641 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtJs3-0006EV-53 for emacs-devel@gnu.org; Thu, 01 Oct 2009 07:30:51 -0400 Original-Received: from static-71-184-83-10.bstnma.fios.verizon.net ([71.184.83.10]:58021 helo=projectile.siege-engine.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtJs0-0008Dh-E9; Thu, 01 Oct 2009 07:30:48 -0400 Original-Received: from projectile.siege-engine.com (localhost [127.0.0.1]) by projectile.siege-engine.com (8.14.3/8.14.3/Debian-6) with ESMTP id n91BV2Qk016378; Thu, 1 Oct 2009 07:31:02 -0400 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.14.3/8.14.3/Submit) id n91BV2t0016377; Thu, 1 Oct 2009 07:31:02 -0400 X-Authentication-Warning: projectile.siege-engine.com: zappo set sender to eric@siege-engine.com using -f In-Reply-To: X-Mailer: Evolution 2.26.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:115826 Archived-At: On Thu, 2009-10-01 at 12:58 +0900, Miles Bader wrote: > Chong Yidong writes: > (2) > I get the following error with semantic-mode: > > (a) visit the following source file: > > ---- cut here ---- > #include > > int main () > { > printf ("hello world\n"); > return 0; > } > ---- cut here ---- > > (b) do M-x semantic-mode > > (c) position point after "printf" > > (d) use the command: "C-c , j" > (I don't even know what that command does, but it gets an error...) > > (e) I get the following error/backtrace: > > Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) > set-syntax-table(nil) > semantic-ctxt-current-symbol-default(nil) > semantic-ctxt-current-symbol() > semantic-ctxt-current-thing() > semantic-complete-default-to-tag(nil) > semantic-complete-read-tag-engine([object semantic-collector-buffer-deep "Sym$ > semantic-complete-read-tag-buffer-deep("Symbol: ") > semantic-complete-jump-local() > call-interactively(semantic-complete-jump-local nil nil) I haven't had the opportunity to use the Emacs/CEDET merged version, but I can provide some help here. The Semantic configuration was setup to be done in a .emacs file, or very early on, and all the necessary setup is done in mode hooks after that. If you load in a C file, then turn on Semantic, then your current buffer will not have the right variables setup. In this case, it is a variable that tweaks the syntax table. I think the right order would be M-x semantic-mode ;; create the file continue with above script. I would guess that the new semantic-mode should either warn on pre-existing buffers, or find a way to apply itself to pre-existing buffers. The standalone CEDET install works around this by the file that loads CEDET doing these installs in your .emacs file. The assumption being that if you installed CEDET, you want this stuff on, which is not the case for Emacs. Eric