From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Meyering Newsgroups: gmane.emacs.bugs Subject: bug#6086: Symbol's value as variable is void: fundamental-mode-syntax-table Date: Mon, 03 May 2010 07:58:34 +0200 Message-ID: <87sk69v851.fsf@meyering.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272899656 8534 80.91.229.12 (3 May 2010 15:14:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 May 2010 15:14:16 +0000 (UTC) Cc: Stefan Monnier To: 6086@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 03 17:14:14 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O8xLa-0000fu-49 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 17:14:14 +0200 Original-Received: from localhost ([127.0.0.1]:42627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8xLZ-0002Fc-G0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 11:14:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8p6P-0007Ic-6o for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 02:26:01 -0400 Original-Received: from [140.186.70.92] (port=57470 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8p6N-0007IU-8c for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 02:26:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8p6L-00014f-Iy for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 02:25:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54068) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8p6L-00014b-GZ for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 02:25:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O8ogI-0007IZ-Jp; Mon, 03 May 2010 01:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2010 05:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6086 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127286633228046 (code B ref -1); Mon, 03 May 2010 05:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 May 2010 05:58:52 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8og8-0007IJ-3O for submit@debbugs.gnu.org; Mon, 03 May 2010 01:58:52 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8og5-0007IE-En for submit@debbugs.gnu.org; Mon, 03 May 2010 01:58:50 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:39370) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O8og2-0005XO-7L for submit@debbugs.gnu.org; Mon, 03 May 2010 01:58:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8og1-0002He-Hk for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 01:58:45 -0400 Original-Received: from [140.186.70.92] (port=36466 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8ofz-0002HW-Rg for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 01:58:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8ofy-0005FJ-7T for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 01:58:43 -0400 Original-Received: from smtp1-g21.free.fr ([212.27.42.1]:51236) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8ofx-0005En-JF for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 01:58:42 -0400 Original-Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 7757B9400AD for ; Mon, 3 May 2010 07:58:36 +0200 (CEST) Original-Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp1-g21.free.fr (Postfix) with ESMTP id 9B64E9400C8 for ; Mon, 3 May 2010 07:58:34 +0200 (CEST) Original-Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 3FDF2F034; Mon, 3 May 2010 07:58:34 +0200 (CEST) Original-Lines: 35 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 03 May 2010 01:59:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 03 May 2010 11:13:26 -0400 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36657 Archived-At: Hello, I use snapshots built from the latest sources. Starting about a week ago (April 28th), this code in my ~/.emacs has been making that snapshot version fail: Loading ~/emacs/startup...done Symbol's value as variable is void: fundamental-mode-syntax-table The offending code is here: (defun my-_-hook (modename) (add-hook (intern (concat modename "-mode-hook")) `(lambda () (modify-syntax-entry ?_ "w" ,(intern (concat modename "-mode-syntax-table")))))) ;;; Treat underscores as word-constituent characters in these modes. (mapcar 'my-_-hook '("c" "c++" "perl" "makefile" "text" "fundamental" "m4" "shell-script" "autoconf")) This looks like the change set that provoked it: 2010-04-28 Stefan Monnier Make it possible to locally disable a globally enabled mode. * simple.el (fundamental-mode): Run fundamental-mode-hook. * emacs-lisp/derived.el (define-derived-mode): Use fundamental-mode rather than kill-all-local-variables so it runs fundamental-mode-hook. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Use fundamental-mode-hook to run MODE-enable-in-buffers earlier, so that subsequent hooks get a chance to disable it. For now, I've simply removed "fundamental" from the list. Is there a better way?