From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Confused about buffer-local variables
Date: Tue, 01 Apr 2014 12:11:50 +0200 [thread overview]
Message-ID: <87d2h11hqx.fsf@yahoo.fr> (raw)
In-Reply-To: <87a9c6oz0c.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 31 Mar 2014 23:10:27 +0200")
Thorsten Jolitz <tjolitz@gmail.com> writes:
> Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:
>> 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 ?
> with point in buffer local-var-test.org:
>
> ,----
> | "Y"
> `----
Sorry, I don't see how that is unexpected : it matches both your and my
expectation. I tried your recipe to check and I also get "Y".
--
Nico.
next prev parent reply other threads:[~2014-04-01 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 16:41 Confused about buffer-local variables Thorsten Jolitz
2014-03-31 19:47 ` Nicolas Richard
2014-03-31 21:10 ` Thorsten Jolitz
2014-04-01 10:11 ` Nicolas Richard [this message]
2014-04-01 10:33 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2h11hqx.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=help-gnu-emacs@gnu.org \
--cc=tjolitz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.