From: Andreas Schwab <schwab@linux-m68k.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 5971@debbugs.gnu.org, tracker@debbugs.gnu.org,
'GNU bug Tracking System' <help-debbugs@gnu.org>
Subject: bug#5971: 23.1.95; `delete' modifies default value instead of buffer-local value
Date: Mon, 19 Apr 2010 20:42:51 +0200 [thread overview]
Message-ID: <m2hbn7l1w4.fsf@igel.home> (raw)
In-Reply-To: <8092CBDD05AF419298FFE73B27D1E5C7@us.oracle.com> (Drew Adams's message of "Mon, 19 Apr 2010 10:03:09 -0700")
"Drew Adams" <drew.adams@oracle.com> writes:
>> > Nothing in the doc states that they share list structure.
>>
>> There is no buffer-local value before you set it.
>
> Yes, I know that. And I noted that explicitly.
So you know that the default value is *the value you are modifying*.
>> The doc is pretty clear that a buffer-local value only starts to exist
>> the first time it is set:
>>
>> Make VARIABLE become buffer-local whenever it is set.
>> At any time, the value for the current buffer is in effect,
>> unless the variable has never been set in this buffer,
>> in which case the default value is in effect.
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Yes, and I explictly said that too. Please read what I wrote.
Please read what I wrote.
> What is _not_ documented AFAICT is that using `delete' to set the buffer-local
> value in buffer X also modifies the default value. There is no reason to expect
> that, from reading the doc.
You are *not* modifying the buffer-local value, because *it does not
exist* yet.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2010-04-19 18:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 2:41 bug#5971: 23.1.95; `delete' modifies default value instead of buffer-local value Drew Adams
2010-04-19 4:23 ` Stefan Monnier
2010-04-19 5:24 ` Drew Adams
2010-04-19 6:25 ` Stefan Monnier
2010-04-19 15:09 ` Drew Adams
2010-04-19 15:56 ` Glenn Morris
2010-04-19 16:05 ` Andreas Schwab
2010-04-19 16:15 ` Drew Adams
2010-04-19 16:31 ` Andreas Schwab
2010-04-19 17:03 ` Drew Adams
2010-04-19 18:42 ` Andreas Schwab [this message]
2010-04-19 18:58 ` Drew Adams
2010-04-19 20:18 ` Andreas Schwab
2010-04-19 20:31 ` Drew Adams
2010-04-19 20:38 ` Andreas Schwab
2010-04-19 22:06 ` Drew Adams
2010-04-21 7:29 ` Kevin Rodgers
2010-04-21 11:58 ` Drew Adams
2011-07-09 5:47 ` Glenn Morris
2010-04-19 15:09 ` bug#5971: - reopen Drew Adams
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=m2hbn7l1w4.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=5971@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
--cc=help-debbugs@gnu.org \
--cc=tracker@debbugs.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.
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.