From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12314: 24.2.50; `add-to-history': use `setq' with `delete' Date: Sat, 08 Sep 2012 19:11:50 -0400 Message-ID: References: <7602D24B74DE42CF9901322634B85CA2@us.oracle.com> <87sjas4mc2.fsf@gnu.org> <83ipbomv6e.fsf@gnu.org> <2C45207ADF0E46BC98AF1B486695F632@us.oracle.com> <83fw6smti6.fsf@gnu.org> <9A8F619FD7584123A6319BD089E444E4@us.oracle.com> <83bohgmrdv.fsf@gnu.org> <83a9x0mq5e.fsf@gnu.org> <8E40573C868D4B339513A16A02588F5E@us.oracle.com> <837gs4mcqy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347145966 1736 80.91.229.3 (8 Sep 2012 23:12:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2012 23:12:46 +0000 (UTC) Cc: 12314@debbugs.gnu.org, cyd@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 01:12:48 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TAUCj-0004H2-OQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2012 01:12:45 +0200 Original-Received: from localhost ([::1]:55126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAUCg-0001NH-BS for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 19:12:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAUCc-0001N5-TC for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 19:12:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAUCa-0002hG-IZ for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 19:12:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAUCa-0002h6-FH for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 19:12:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TAUCz-0007ne-QW for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 19:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Sep 2012 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12314 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12314-submit@debbugs.gnu.org id=B12314.134714594129933 (code B ref 12314); Sat, 08 Sep 2012 23:13:01 +0000 Original-Received: (at 12314) by debbugs.gnu.org; 8 Sep 2012 23:12:21 +0000 Original-Received: from localhost ([127.0.0.1]:49203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TAUCK-0007mj-IQ for submit@debbugs.gnu.org; Sat, 08 Sep 2012 19:12:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:51764) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TAUCI-0007mc-E7 for 12314@debbugs.gnu.org; Sat, 08 Sep 2012 19:12:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09Ld+Y//2dsb2JhbABEsEiDSYEIghUBAQQBViMQCzQSFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="197874621" Original-Received: from 75-119-230-63.dsl.teksavvy.com (HELO pastel.home) ([75.119.230.63]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Sep 2012 19:11:51 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 09F8258FC1; Sat, 8 Sep 2012 19:11:50 -0400 (EDT) In-Reply-To: <837gs4mcqy.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 Sep 2012 00:21:57 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63982 Archived-At: >> > Why is it even necessary to talk about destructive modifications, if >> > we are to advise to assign the result anyway? >> Not sure I understand the question. It is because these operations can be >> destructive of list structure that we advise that. > If you need to forget about the old value and assign the new one > returned by 'delete', why does it matter that the modification was > destructive? Because it avoids memory allocation. I.e. 99% of the uses of delete/delq/nconc are simple optimizations. Stefan