From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 20:08:07 -0400 Message-ID: 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 1350000559 8096 80.91.229.3 (12 Oct 2012 00:09:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 00:09:19 +0000 (UTC) Cc: Jambunathan K , 12045@debbugs.gnu.org To: David Engster Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 02:09:25 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 1TMSoe-000196-Kz for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 02:09:24 +0200 Original-Received: from localhost ([::1]:37393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMSoX-00006a-V1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Oct 2012 20:09:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMSoV-00006V-SJ for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 20:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMSoV-0002dp-0k for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 20:09:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMSoU-0002dl-Tn for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 20:09:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TMSpF-0000Vk-Lw for bug-gnu-emacs@gnu.org; Thu, 11 Oct 2012 20:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Oct 2012 00:10:01 +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.13500005421898 (code B ref 12045); Fri, 12 Oct 2012 00:10:01 +0000 Original-Received: (at 12045) by debbugs.gnu.org; 12 Oct 2012 00:09:02 +0000 Original-Received: from localhost ([127.0.0.1]:40059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMSoI-0000UZ-KW for submit@debbugs.gnu.org; Thu, 11 Oct 2012 20:09:02 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:42740) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMSoH-0000U3-7z for 12045@debbugs.gnu.org; Thu, 11 Oct 2012 20:09:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxLQG/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCwsOJgcLFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="201161781" Original-Received: from 69-196-180-6.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Oct 2012 20:08:08 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B21B459516; Thu, 11 Oct 2012 20:08:07 -0400 (EDT) In-Reply-To: <87txu0d9fh.fsf@engster.org> (David Engster's message of "Thu, 11 Oct 2012 22:45:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) 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:65502 Archived-At: > 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. Stefan