[Top][All Lists]

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

Re: buffer-local-value confusion

From: Eric Abrahamsen
Subject: Re: buffer-local-value confusion
Date: Wed, 08 Oct 2014 15:34:46 +0800
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Marco Wahl <> writes:

> Eric Abrahamsen <> writes:
>> (defvar nngnorb-attachment-file-list nil)
>> (make-variable-buffer-local 'nngnorb-attachment-file-list)
>> I'm first setting a value for it in the buffer referred to by
>> nnir-tmp-buffer, then trying to copy that buffer-local value to a
>> different buffer. Here's what I'm seeing, which confuses me:
>> (with-current-buffer (get-buffer nnir-tmp-buffer)
>>   nngnorb-attachment-file-list) --> proper, populated value
>> (buffer-local-value
>>  nngnorb-attachment-file-list
>>  (get-buffer nnir-tmp-buffer)) --> nil
> Missing quote?  E.g.
> (buffer-local-value
>  'nngnorb-attachment-file-list
>  (get-buffer nnir-tmp-buffer))

Dangit, that was it! That's the first time I've run into a
quoted/not-quoted mistake that didn't result in an error, so that didn't
even occur to me.


reply via email to

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