From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#5971: 23.1.95; `delete' modifies default value instead of buffer-local value Date: Sun, 18 Apr 2010 22:24:42 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271654968 11372 80.91.229.12 (19 Apr 2010 05:29:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 05:29:28 +0000 (UTC) Cc: 5971@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 19 07:29:26 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 1O3jXw-0003YA-As for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 07:29:24 +0200 Original-Received: from localhost ([127.0.0.1]:49132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3jXv-0006tM-Nj for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 01:29:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3jXo-0006tH-Dt for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 01:29:16 -0400 Original-Received: from [140.186.70.92] (port=57901 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3jXl-0006t9-Eb for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 01:29:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3jXj-0003FV-Iy for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 01:29:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46112) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3jXj-0003FP-Fc for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 01:29:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O3jUg-0002mc-OZ; Mon, 19 Apr 2010 01:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" 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 05:26: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: Original-Received: via spool by 5971-submit@debbugs.gnu.org id=B5971.127165474810690 (code B ref 5971); Mon, 19 Apr 2010 05:26:02 +0000 Original-Received: (at 5971) by debbugs.gnu.org; 19 Apr 2010 05:25:48 +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 1O3jUS-0002mN-Jh for submit@debbugs.gnu.org; Mon, 19 Apr 2010 01:25:48 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3jUQ-0002mF-3X for 5971@debbugs.gnu.org; Mon, 19 Apr 2010 01:25:46 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3J5Pd97007929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 19 Apr 2010 05:25:41 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3IMRimK001314; Mon, 19 Apr 2010 05:25:37 GMT Original-Received: from abhmt013.oracle.com by acsmt354.oracle.com with ESMTP id 186218161271654663; Sun, 18 Apr 2010 22:24:23 -0700 Original-Received: from dradamslap1 (/10.175.221.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 18 Apr 2010 22:24:23 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcrfeBQdPzUaaE56S+ekQTs2QIONHwAB37sw In-Reply-To: X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090209.4BCBE956.0066:SCFMA922111,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Apr 2010 01:26: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:36296 Archived-At: > > This doesn't seem right to me. > > Why not? That's the whole reason for the existence of two functions: > `delete' and `remove'. I'm aware that `delete' modifies the list structure and `remove' uses a copy. What I don't understand is the interaction with a default value instead of a buffer-local value. Why would `delete' cause the behavior described? The same code BTW uses `nconc' apparently without causing such modify-the-default-value behavior: (setq wide-n-restrictions (nconc (nthcdr arg wide-n-restrictions) latest)) What is the relation between `delete's modification of the list structure of a cons that is a buffer-local value of a variable and its (apparent) modification of the default value of the variable?