From unknown Fri Sep 05 16:40:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6086 <6086@debbugs.gnu.org> To: bug#6086 <6086@debbugs.gnu.org> Subject: Status: Provide fundamental-mode-syntax-table Reply-To: bug#6086 <6086@debbugs.gnu.org> Date: Fri, 05 Sep 2025 23:40:34 +0000 retitle 6086 Provide fundamental-mode-syntax-table reassign 6086 emacs submitter 6086 Jim Meyering severity 6086 wishlist tag 6086 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 03 01:58:52 2010 Received: (at submit) by debbugs.gnu.org; 3 May 2010 05:58:52 +0000 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 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 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.0 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 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 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) 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) Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 3FDF2F034; Mon, 3 May 2010 07:58:34 +0200 (CEST) From: Jim Meyering To: bug-gnu-emacs@gnu.org Subject: 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> Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: submit Cc: Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) 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? From debbugs-submit-bounces@debbugs.gnu.org Mon May 03 13:34:13 2010 Received: (at 6086) by debbugs.gnu.org; 3 May 2010 17:34:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zX3-0004ZY-KM for submit@debbugs.gnu.org; Mon, 03 May 2010 13:34:13 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zX2-0004ZR-2p for 6086@debbugs.gnu.org; Mon, 03 May 2010 13:34:12 -0400 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o43HY5Dp002104; Mon, 3 May 2010 13:34:05 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 6CD7CB4C27; Mon, 3 May 2010 13:34:05 -0400 (EDT) From: Stefan Monnier To: Jim Meyering Subject: Re: bug#6086: Symbol's value as variable is void: fundamental-mode-syntax-table Message-ID: References: <87sk69v851.fsf@meyering.net> Date: Mon, 03 May 2010 13:34:05 -0400 In-Reply-To: <87sk69v851.fsf@meyering.net> (Jim Meyering's message of "Mon, 03 May 2010 07:58:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3526=0 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 6086 Cc: 6086@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > (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")) In prior versions of Emacs, the "fundamental" entry had no effect at all: it just added a function to an unused hook. So the fact that the function would fail if it were run was not noticed. > For now, I've simply removed "fundamental" from the list. Looks right. > Is there a better way? I guess we could provide a (defconst fundamental-mode-syntax-table (standard-syntax-table)). Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon May 03 13:44:17 2010 Received: (at 6086) by debbugs.gnu.org; 3 May 2010 17:44:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zgm-0004e2-Qo for submit@debbugs.gnu.org; Mon, 03 May 2010 13:44:16 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zgj-0004dw-3A for 6086@debbugs.gnu.org; Mon, 03 May 2010 13:44:15 -0400 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id BA5BE94007F for <6086@debbugs.gnu.org>; Mon, 3 May 2010 19:44:05 +0200 (CEST) Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp1-g21.free.fr (Postfix) with ESMTP for <6086@debbugs.gnu.org>; Mon, 3 May 2010 19:44:04 +0200 (CEST) Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id E14B1DFCB; Mon, 3 May 2010 19:44:03 +0200 (CEST) From: Jim Meyering To: Stefan Monnier Subject: Re: bug#6086: Symbol's value as variable is void: fundamental-mode-syntax-table In-Reply-To: (Stefan Monnier's message of "Mon, 03 May 2010 13:34:05 -0400") References: <87sk69v851.fsf@meyering.net> Date: Mon, 03 May 2010 19:44:03 +0200 Message-ID: <87ocgw7ue4.fsf@meyering.net> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 6086 Cc: 6086@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) Stefan Monnier wrote: >> (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")) > > In prior versions of Emacs, the "fundamental" entry had no effect at > all: it just added a function to an unused hook. So the fact that the > function would fail if it were run was not noticed. > >> For now, I've simply removed "fundamental" from the list. > > Looks right. > >> Is there a better way? > > I guess we could provide a > (defconst fundamental-mode-syntax-table (standard-syntax-table)). Thanks for explaining. From debbugs-submit-bounces@debbugs.gnu.org Mon May 03 22:09:50 2010 Received: (at submit) by debbugs.gnu.org; 4 May 2010 02:09:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O97a2-00007B-20 for submit@debbugs.gnu.org; Mon, 03 May 2010 22:09:50 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O97Zz-000076-Ox for submit@debbugs.gnu.org; Mon, 03 May 2010 22:09:48 -0400 Received: from lists.gnu.org ([199.232.76.165]:46813) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O97Zw-0007t9-0d for submit@debbugs.gnu.org; Mon, 03 May 2010 22:09:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O97Zv-0005a3-GX for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 22:09:43 -0400 Received: from [140.186.70.92] (port=41282 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O97Zt-0005Zl-8x for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 22:09:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O97Zr-0002Un-A4 for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 22:09:41 -0400 Received: from lo.gmane.org ([80.91.229.12]:57042) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O97Zq-0002UY-VS for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 22:09:39 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O97Zo-00063X-Ny for bug-gnu-emacs@gnu.org; Tue, 04 May 2010 04:09:36 +0200 Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 May 2010 04:09:36 +0200 Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 May 2010 04:09:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org connect(): No such file or directory From: Kevin Rodgers Subject: Re: bug#6086: Symbol's value as variable is void: fundamental-mode-syntax-table Date: Mon, 03 May 2010 20:09:31 -0600 Lines: 50 Message-ID: References: <87sk69v851.fsf@meyering.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) In-Reply-To: <87sk69v851.fsf@meyering.net> 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-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Jim Meyering wrote: > 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")))))) Why not call the syntax-table function instead of constructing and referencing the FOO-mode-syntax-table variable? > ;;; 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? > > > > > > -- Kevin Rodgers Denver, Colorado, USA From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 12 16:58:59 2012 Received: (at control) by debbugs.gnu.org; 12 Dec 2012 21:58:59 +0000 Received: from localhost ([127.0.0.1]:39565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TiuKQ-0002YO-Pu for submit@debbugs.gnu.org; Wed, 12 Dec 2012 16:58:59 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:46692) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TiuKP-0002YI-3I for control@debbugs.gnu.org; Wed, 12 Dec 2012 16:58:57 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TiuJc-0003V1-7h for control@debbugs.gnu.org; Wed, 12 Dec 2012 16:58:08 -0500 Date: Wed, 12 Dec 2012 16:58:08 -0500 Message-Id: Subject: control message for bug 6086 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) tag 6086 wontfix close 6086 From unknown Fri Sep 05 16:40:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Jan 2013 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator