From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: hash strangeness Date: Mon, 3 Nov 2014 21:29:17 +0000 (UTC) Message-ID: References: <87fve1v50t.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1415050207 5049 80.91.229.3 (3 Nov 2014 21:30:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 21:30:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 22:29:55 2014 Return-path: Envelope-to: geh-help-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 1XlPCB-00077R-8r for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2014 22:29:51 +0100 Original-Received: from localhost ([::1]:37435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlPCA-00035P-Sb for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2014 16:29:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlPBu-00035E-F9 for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 16:29:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlPBo-0004k6-I9 for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 16:29:34 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlPBo-0004k0-Bk for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 16:29:28 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XlPBm-0006tN-E5 for help-gnu-emacs@gnu.org; Mon, 03 Nov 2014 22:29:26 +0100 Original-Received: from 195-38-125-62.pool.digikabel.hu ([195.38.125.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 22:29:26 +0100 Original-Received: from adatgyujto by 195-38-125-62.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 22:29:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 195.38.125.62 (Mozilla/5.0 (Windows NT 6.1; rv:33.0) Gecko/20100101 Firefox/33.0) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100700 Archived-At: Barry Margolin alum.mit.edu> writes: > > > > I expect '(a b c) to create a new list with these symbols > > every time it runs. > > Why do you expect that? > > '(a b c) is short for (quote (a b c)). quote returns its argument, it > doesn't make a copy of it. Okay, but when I write '(a b c) in a function then I'd consider it an ad hoc list in the current context in the function, not as an object which outlives the exiting of the function and then returns in the next invocation, unexpectedly connecting the different invocations. > I'm sure somewhere in the Elisp programming manual it mentions that you > shouldn't use destructive functions on literal lists, like the Common > Lisp spec does. Well, the quoting page doesn't mention it: https://www.gnu.org/software/emacs/manual/html_node/elisp/Quoting.html