From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: bug#12045: 24.1.50; semantic :: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p nil) Date: Thu, 11 Oct 2012 22:45:54 +0200 Message-ID: <87txu0d9fh.fsf@engster.org> References: <81sjcfopjw.fsf@gmail.com> <87mx2n8rz7.fsf@engster.org> <87393zrunv.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349988382 8815 80.91.229.3 (11 Oct 2012 20:46:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2012 20:46:22 +0000 (UTC) Cc: 12045@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 11 22:46:29 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TMPeG-0003Xt-BF for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2012 22:46:28 +0200 Original-Received: from localhost ([::1]:48751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMPeA-000891-0r for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2012 16:46:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMPe6-00088d-QY for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 16:46:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMPe5-0007kr-5F for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 16:46:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMPe4-0007kf-Mo for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 16:46:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TMPeo-0004Nc-Fs for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 16:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Oct 2012 20:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12045 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12045-submit@debbugs.gnu.org id=B12045.134998840616810 (code B ref 12045); Thu, 11 Oct 2012 20:47:02 +0000 Original-Received: (at 12045) by debbugs.gnu.org; 11 Oct 2012 20:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:39966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMPeY-0004N5-Fa for submit@debbugs.gnu.org; Thu, 11 Oct 2012 16:46:46 -0400 Original-Received: from randomsample.de ([83.169.19.17]:44556) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMPeV-0004Mw-Hv for 12045@debbugs.gnu.org; Thu, 11 Oct 2012 16:46:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=4kPzGTsmvkoHcRDS0B3aS5yCuoaaQzO1yb2jALjdzdk=; b=AF5ZJ5aIeyy3R/etEn1fuOXgAsmp9kIEtWdAd37I0ZTs+jboaPvNFvk5cJpAg9saNlxKopyupVDdHRyQP3tqq5vCQM6XCwZomnLCBEftcN5n96Ek7jtd2Yj5Z9yJQZiD; Original-Received: from dslc-082-083-044-080.pools.arcor-ip.net ([82.83.44.80] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TMPdj-0008H0-Fn; Thu, 11 Oct 2012 22:45:55 +0200 In-Reply-To: <87393zrunv.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 07 Aug 2012 13:38:36 +0530") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65499 Archived-At: Jambunathan K. writes: > My original report was on Windows. The current report is on Debian > Squeeze against CEDET bzr repo. So, consider this a bug report against > the "future"-CEDET. > > When I do "C-c , j" on some symbol, that I know is defined in current > .el file, I get > ,---- > | Jump to symbol: org-e-odt-lib-dir [No Match] [5 times] > `---- > > When I partially type up the symbol and do TAB for completion, I get > ,---- > | semantic-analyze-current-context: Cannot analyze buffers not supported > | by Semantic > `---- > > If semantic does not support EmacsLisp files [1], > 1. It should report an error or warning when the buffer tries to enter > semantic-mode. > > 2. Disable menu items (starting with Developement->etc) that doesn't > apply to current buffer. You are right, this problem still exists. It is due to the fact that semantic-mode is active for all buffers (it is a minor mode after all), whether they could be parsed or not. Raising an error or warning for all buffers that cannot be parsed would surely be very annoying, so we cannot do that. However, we can check if a buffer was parsed by calling `semantic-active-p' (which simply returns `semantic-new-buffer-fcn-was-run'). The solution for the menu items is pretty simple (checking for `semantic-active-p' instead of only looking at `semantic-mode'). I've now pushed a change to CEDET upstream that does this, and I will merge it soon. Regarding interactive commands, especially those with a pre-defined keybinding, I'm not entirely sure what would be the best fix. The easiest way would be if keymaps could be activated dependend on a buffer-local variable, just as I can do that via the :visible attribute for menu items. I don't think this is possible, but maybe someone around here knows a solution. Otherwise, we'd have to check for `semantic-active-p' in all interactive commands. -David