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: Fri, 12 Oct 2012 08:10:50 +0200 Message-ID: <87haq0cj9x.fsf@engster.org> References: <81sjcfopjw.fsf@gmail.com> <87mx2n8rz7.fsf@engster.org> <87393zrunv.fsf@gmail.com> <87txu0d9fh.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350022283 27713 80.91.229.3 (12 Oct 2012 06:11:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 06:11:23 +0000 (UTC) Cc: Jambunathan K , 12045@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 08:11: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 1TMYT1-0002kj-Pf for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 08:11:27 +0200 Original-Received: from localhost ([::1]:58755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMYSv-0002UJ-4i for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 02:11:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMYSs-0002UC-L0 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 02:11:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMYSo-0000Gh-NR for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 02:11:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMYSo-0000Ga-71 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 02:11:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TMYTa-0001z2-FT for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 02:12: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: Fri, 12 Oct 2012 06:12: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.13500223067601 (code B ref 12045); Fri, 12 Oct 2012 06:12:02 +0000 Original-Received: (at 12045) by debbugs.gnu.org; 12 Oct 2012 06:11:46 +0000 Original-Received: from localhost ([127.0.0.1]:40217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMYTK-0001yY-1p for submit@debbugs.gnu.org; Fri, 12 Oct 2012 02:11:46 -0400 Original-Received: from randomsample.de ([83.169.19.17]:45125) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMYTG-0001yO-JN for 12045@debbugs.gnu.org; Fri, 12 Oct 2012 02:11:44 -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=/xbQ8milOLssIV2CVbLVYO88gsulIS//6FUYDOUf3NU=; b=Ux9cjJ0WJBho+d+Kb9pXRajhzxxqfpHzeCz33IjqjEb6XJTBu6l3DytIe0FXgMqFAXtAjQ88/npBPCMzmea9InQOXR9Npjx7CR+rhWeXOnyEtbwpW4KNYW4YePYSGEz0; Original-Received: from dslc-082-083-056-193.pools.arcor-ip.net ([82.83.56.193] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TMYSR-00049V-22; Fri, 12 Oct 2012 08:10:51 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 11 Oct 2012 20:08:07 -0400") 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:65509 Archived-At: Stefan Monnier writes: >> 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. > > Minor mode keymaps work exactly this way (the minor-mode variable > enables/disables the corresponding keymap). But usually it's not > necessary to disable a binding just because it's currently unusable. > Just like most menu items use :enable rather than :visible, since that > lets the user know that there is such a feature, even though it > currently can't be used. OK, so I will change the Semantic menu items to :visible semantic-mode :enable (semantic-active-p) Regarding the key bindings however, I think we can agree that the current situation needs improvement. The interactive commands usually assume that the buffer was correctly set up for parsing and hence raise some cryptic error if that isn't the case (see subject). So if the keybindings should simply stay enabled in all buffers if semantic-mode is active, I will have to add some `semantic-raise-error-if-unparsed' function at the beginning of every interactive function. -David