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

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

Re: Confused about buffer-local variables


From: Nicolas Richard
Subject: Re: Confused about buffer-local variables
Date: Mon, 31 Mar 2014 21:47:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thorsten Jolitz <tjolitz@gmail.com> writes:
> assume function `foo' is defined in library A and uses variable `bar'
> defined in that library with value "X". Now I call function `foo' from a
> buffer where variable `bar' is set as a buffer-local variable to a
> different value "Y".
>
> Which value is `foo' going to use - "X" or "Y"? I would have said "Y"
> but feel a bit confused right now ...

I'd say 'Y' also, but maybe I'm confused and I do not know it. Do you
have any code sample that doesn't do what you expected ?

-- 
Nico.



reply via email to

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