🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1159

Buffer local variables in the minibuffer

#1159
From: Josef Sachs
Date: Thu, 10 Nov 1988 01:33
26 lines
1107 bytes
I can't seem to make a buffer local variable stick
in the minibuffer.  It seems as though the first time
I read from the minibuffer, the variable goes back
to its global binding.  Is this a bug, or a feature,
or am I doing something dumb?  Thanks in advance.

Example:
(save-excursion (set-buffer " *Minibuf-0*")
		(symbol-value 'meta-prefix-char))
=>27

(save-excursion (set-buffer " *Minibuf-0*")
		(make-variable-buffer-local 'meta-prefix-char)
		(setq meta-prefix-char 28))
=>28

(save-excursion (set-buffer " *Minibuf-0*")
		(symbol-value 'meta-prefix-char))
=>28

(read-string "Foo ")	; read from the minibuffer
=>"bar"

(save-excursion (set-buffer " *Minibuf-0*")
		(symbol-value 'meta-prefix-char))
=>27
Technical Details
Message-ID: <8811100133.AA08917@s2.Morgan.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!morgan.com!sachs

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!morgan.com!sachs
From: sachs@morgan.com (Josef Sachs)
Newsgroups: gnu.emacs.bug
Subject: Buffer local variables in the minibuffer
Message-ID: <8811100133.AA08917@s2.Morgan.COM>
Date: 10 Nov 88 01:33:26 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 26