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: Sun, 14 Oct 2012 21:41:26 +0200 Message-ID: <87ehl0c049.fsf@engster.org> References: <81sjcfopjw.fsf@gmail.com> <87mx2n8rz7.fsf@engster.org> <87393zrunv.fsf@gmail.com> <87txu0d9fh.fsf@engster.org> <87haq0cj9x.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350243725 19190 80.91.229.3 (14 Oct 2012 19:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2012 19:42:05 +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 Sun Oct 14 21:42:12 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 1TNU4g-0004Fx-FR for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 21:42:10 +0200 Original-Received: from localhost ([::1]:53858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNU4Y-0004ZF-Vc for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 15:42:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNU4W-0004YT-KL for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 15:42:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNU4V-0004Wh-Md for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 15:42:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNU4V-0004Wb-7V for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 15:41:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TNU5V-0005wL-Ps for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 15:43:01 -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: Sun, 14 Oct 2012 19:43: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.135024376222803 (code B ref 12045); Sun, 14 Oct 2012 19:43:01 +0000 Original-Received: (at 12045) by debbugs.gnu.org; 14 Oct 2012 19:42:42 +0000 Original-Received: from localhost ([127.0.0.1]:44138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNU5B-0005vj-RS for submit@debbugs.gnu.org; Sun, 14 Oct 2012 15:42:42 -0400 Original-Received: from randomsample.de ([83.169.19.17]:56352) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNU58-0005vX-6c for 12045@debbugs.gnu.org; Sun, 14 Oct 2012 15:42:40 -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=uCjp9se6ERhZmc5oAdzNGUr/qiDVazR8PZrlq66B5lY=; b=ouNchYtpk8rG9KX9ySHP7USl+Jw6OYGMkD2apcH1Ii/vp/ORgavI9ckY+WIMqNYP+fEYZfFkW4TJ1RbzJD7fN3jUWcVMh71DkcXU9TJ5aU4jepkA3ZOHGV0tDv4T5zky; Original-Received: from dslc-082-083-033-238.pools.arcor-ip.net ([82.83.33.238] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TNU3z-0004fe-TZ; Sun, 14 Oct 2012 21:41:28 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 12 Oct 2012 09:47:08 -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:65610 Archived-At: Stefan Monnier writes: >> 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. > > Also, compared to making the binding conditional, this has the advantage > that the error message can say *why* the binding doesn't work, contrary > to a laconic " is undefined". I've now merged those changes into Emacs trunk. The Semantic menu items should now be inactive when the buffer is not parsed. Also, I added the above described check to some of the interactive functions so they raise a proper error. Please let me know if I missed some important ones here. -David