* make-variable-buffer-local + make-local-variable ?
@ 2008-09-22 14:42 Lennart Borgman (gmail)
2008-09-22 15:49 ` Chong Yidong
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-22 14:42 UTC (permalink / raw)
To: Emacs Devel
Is there anything wrong with using
(setq (make-local-variable 'my-var) value)
when my-var has been made buffer local with
(make-variable-buffer-local 'my-var)
Except that it looks unnecessary of course ... ;-)
But it is not in my use case.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: make-variable-buffer-local + make-local-variable ?
2008-09-22 14:42 make-variable-buffer-local + make-local-variable ? Lennart Borgman (gmail)
@ 2008-09-22 15:49 ` Chong Yidong
2008-09-22 15:50 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2008-09-22 15:49 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> Is there anything wrong with using
>
> (setq (make-local-variable 'my-var) value)
>
> when my-var has been made buffer local with
>
> (make-variable-buffer-local 'my-var)
>
> Except that it looks unnecessary of course ... ;-)
No, but the setq should be a set.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: make-variable-buffer-local + make-local-variable ?
2008-09-22 15:49 ` Chong Yidong
@ 2008-09-22 15:50 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-22 15:50 UTC (permalink / raw)
To: Chong Yidong; +Cc: Emacs Devel
Chong Yidong wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>
>> Is there anything wrong with using
>>
>> (setq (make-local-variable 'my-var) value)
>>
>> when my-var has been made buffer local with
>>
>> (make-variable-buffer-local 'my-var)
>>
>> Except that it looks unnecessary of course ... ;-)
>
> No, but the setq should be a set.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-22 15:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 14:42 make-variable-buffer-local + make-local-variable ? Lennart Borgman (gmail)
2008-09-22 15:49 ` Chong Yidong
2008-09-22 15:50 ` Lennart Borgman (gmail)
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.