help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting non-user variables


From: Héctor Lahoz
Subject: Re: setting non-user variables
Date: Thu, 1 Jun 2017 11:24:03 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Eli Zaretskii wrote:
> > From: "Héctor Lahoz" <hectorlahoz@gmail.com>
> > Date: Wed, 31 May 2017 16:26:44 +0200
> > 
> > Recently I upgraded my Emacs to version 24 (I don't like to live on
> > the edge :-) and noticed that I can't use set-variable to set
> > this buffer-local variable anymore. What should I do?
> > Why was this changed?
> > 
> > ;; before I did:
> > ;; set-variable RET mpkg-master-file RET "file.txt" RET
> > (make-variable-buffer-local
> >  (defvar mpkg-master-file))
> 
> What package defines mpkg-master-file?  I couldn't find it in packages
> bundled with Emacs.

It is my own. Not published yet.
 
> Also, what version of Emacs did you have before the upgrade?

23.4.1

So, to be clear. The variable is defined like this:

(make-variable-buffer-local
 (defvar mpkg-master-file nil
         "The path of the video associated to the current buffer"))

With 23 I could set the variable interactively, with 24 I can't.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]