[Top][All Lists]

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

Re: setting non-user variables

From: Emanuel Berg
Subject: Re: setting non-user variables
Date: Wed, 31 May 2017 16:45:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

"Héctor Lahoz" <address@hidden> writes:

> 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))
> Do I need an interactive command to set the variable?
> (defun set-master-file (filename)
>   (interative "fFilename: ")
>   (setq mpkg-master-file filename))

... what? :)


    (set-variable 'mpkg-master-file "file.txt" t)

with t as in MAKE-LOCAL.

underground experts united

reply via email to

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