GNU bug report logs - #5971
23.1.95; `delete' modifies default value instead of buffer-local value

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 19 Apr 2010 02:43:02 UTC

Severity: minor

Tags: notabug, wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #36 received at 5971 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 5971 <at> debbugs.gnu.org, tracker <at> debbugs.gnu.org,
	'Stefan Monnier' <monnier <at> iro.umontreal.ca>,
	'GNU bug Tracking System' <help-debbugs <at> gnu.org>
Subject: Re: bug#5971: 23.1.95;
	`delete' modifies default value instead of buffer-local value
Date: Mon, 19 Apr 2010 18:31:53 +0200
"Drew Adams" <drew.adams <at> oracle.com> writes:

> Nothing in the doc states that they share list structure.

There is no buffer-local value before you set it.

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

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 13 years and 322 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.