From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#5971: 23.1.95; `delete' modifies default value instead of buffer-local value Date: Mon, 19 Apr 2010 20:42:51 +0200 Message-ID: References: <1ED47ADCD80A4C019EF77D4CB7C5D863@us.oracle.com> <8348D62071EB468F8FD5D95D35201C08@us.oracle.com> <8092CBDD05AF419298FFE73B27D1E5C7@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271703717 31686 80.91.229.12 (19 Apr 2010 19:01:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 19:01:57 +0000 (UTC) Cc: 5971@debbugs.gnu.org, tracker@debbugs.gnu.org, 'GNU bug Tracking System' To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 19 21:01:54 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O3wEC-0007sg-Dx for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 21:01:52 +0200 Original-Received: from localhost ([127.0.0.1]:56002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3wEB-0002wk-Qb for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 15:01:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3wBi-0000Kd-Us for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 14:59:19 -0400 Original-Received: from [140.186.70.92] (port=47008 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3wBg-0000Hj-Qa for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 14:59:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3wBd-0001HT-Pe for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 14:59:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45763) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3wBd-0001HP-Ni for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 14:59:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O3vvy-0002aF-Mt; Mon, 19 Apr 2010 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Apr 2010 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5971 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 5971-submit@debbugs.gnu.org id=B5971.12717025819925 (code B ref 5971); Mon, 19 Apr 2010 18:43:02 +0000 Original-Received: (at 5971) by debbugs.gnu.org; 19 Apr 2010 18:43:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3vvw-0002a2-PH for submit@debbugs.gnu.org; Mon, 19 Apr 2010 14:43:01 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3vvv-0002Zs-1u; Mon, 19 Apr 2010 14:43:00 -0400 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id F25761C0019E; Mon, 19 Apr 2010 20:42:53 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id C2C249033F; Mon, 19 Apr 2010 20:42:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan1.mnet-online.de [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id ZjO7YlORy-aQ; Mon, 19 Apr 2010 20:42:52 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-100-218.dynamic.mnet-online.de [88.217.100.218]) by mail.mnet-online.de (Postfix) with ESMTP; Mon, 19 Apr 2010 20:42:52 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 493C1CA297; Mon, 19 Apr 2010 20:42:52 +0200 (CEST) X-Yow: My face is new, my license is expired, and I'm under a doctor's care!!!! In-Reply-To: <8092CBDD05AF419298FFE73B27D1E5C7@us.oracle.com> (Drew Adams's message of "Mon, 19 Apr 2010 10:03:09 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.95 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Apr 2010 14:43:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36323 Archived-At: "Drew Adams" 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."