unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Confused about buffer-local variables
Date: Mon, 31 Mar 2014 18:41:08 +0200	[thread overview]
Message-ID: <87eh1ipbh7.fsf@gmail.com> (raw)


Hi List, 

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 ...

-- 
cheers,
Thorsten





             reply	other threads:[~2014-03-31 16:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 16:41 Thorsten Jolitz [this message]
2014-03-31 19:47 ` Confused about buffer-local variables Nicolas Richard
2014-03-31 21:10   ` Thorsten Jolitz
2014-04-01 10:11     ` Nicolas Richard
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eh1ipbh7.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).