🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98905

bug in buffer-local-variables init (18.56)

#98905
From: Bruno Verlyck
Date: Wed, 30 Jan 1991 14:46
23 lines
1377 bytes
When I do

 (buffer-local-variables) LFD

in the *scratch* buffer, I get something like (on one line, etc):

((buffer-undo-list nil (165 . 166) nil (143 . 165) ("buffer-lo" . -143) nil ...)
 (0 . [3 3 3 3 3 3 3 3 3 0 12 3 12 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 0 3 7 ...])
 (local-abbrev-table . [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...])
 (mode-name . "Lisp Interaction")
 (major-mode . lisp-interaction-mode)
[ etc, etc.. ]
)

As you can see, the name of the 2d local variable is not a symbol, but the
number 0.  Adding

  DEFVAR_PER_BUFFER ("local-syntax-table", &current_buffer->syntax_table,
    "Local (mode-specific) syntax table of current buffer.");

in syms_of_buffer () fixes the problem.

Bruno.
Technical Details
Message-ID: <9101301446.AA09621@future.gipsi.fr>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!FUTURE.GIPSI.FR!bruno

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,b69d4ca00fde098d,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-01-30 06:46:07 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!FUTURE.GIPSI.FR!bruno
From: bruno@FUTURE.GIPSI.FR (Bruno Verlyck)
Newsgroups: gnu.emacs.bug
Subject: bug in buffer-local-variables init (18.56)
Message-ID: <9101301446.AA09621@future.gipsi.fr>
Date: 30 Jan 91 14:46:07 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: bruno@gipsi.gipsi.fr
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 23
Approved: bug-gnu-emacs@prep.ai.mit.edu