From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: using setq to create lists based on other lists... Date: Mon, 3 Dec 2018 00:30:49 +0900 Message-ID: References: <874lbw4059.fsf@gmx.net> <87zhto2i0d.fsf@gmx.net> <6512D5B6-B3BE-4B02-81E0-B73F4BED9FCE@gmail.com> <87r2f02cue.fsf@rub.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543764635 19942 195.159.176.226 (2 Dec 2018 15:30:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2018 15:30:35 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 16:30:31 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTThX-00055S-49 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Dec 2018 16:30:31 +0100 Original-Received: from localhost ([::1]:44926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTTjd-0007JR-FU for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Dec 2018 10:32:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTTi6-0006s0-15 for help-gnu-emacs@gnu.org; Sun, 02 Dec 2018 10:31:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTThx-0000ZR-4O for help-gnu-emacs@gnu.org; Sun, 02 Dec 2018 10:31:01 -0500 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:46062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTThu-0000Yi-IB for help-gnu-emacs@gnu.org; Sun, 02 Dec 2018 10:30:56 -0500 Original-Received: by mail-pl1-x62c.google.com with SMTP id a14so5142799plm.12 for ; Sun, 02 Dec 2018 07:30:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=XzgblXAQxMikZPqy1YgZ6Fw2/mqI31hgCIWuBoq2uSo=; b=AoWsajXH9rj3qkFzStaFUSY3+IhZTPWVVTLsC3v4sIQoeENyR3trpPY57bIN0azTLj or83A3ew/iS2T4EUjeOifm8p+EEWBiBR8yqG9LzVC5SaldZJMuix8w27CrP19/MWK3yJ e/K+TjmPtcwA2+pdX7nvKk3kBRaK8cJ4e5fGI2WbJcO3l9pOLTJJKsiLVz0DXPgG1HhR zwR3j60QufT5wR2xY0j8BzEri3uniIS3bh/ezZ1wFJlv4E7blzEd7izveUzgMJdkKbzY 3yrEYz2gNIaEZT7Jpi62Ol78sj39r9Ei4LPCqG6y+liliviPqouRb4LfL+Edr6m9qJdN 2BKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=XzgblXAQxMikZPqy1YgZ6Fw2/mqI31hgCIWuBoq2uSo=; b=t3FRu0NVlLg/95lzQGXC9nMbBnDuZlS1fgzzPgUx5P1CQkmAhfh11/ynFjnW0vH9xZ stvZyi3MMXiQy+bR8u7Y7Lkc2og2yC2bD0aqALgX81+HCJtQ7YUEfXc1DvwLGcxp8SDb 73XFchJcqSLjTIq7UD8dfJ56NkRuF0Gk6eRIvgbMXfbeaRK6dvEZCkcTwRidAozXHqK5 +7rgzW0mSKM+DMuBEX/MgZNFTIAizEleCzc/0GBEmoHcr/QViSU/cIa54ZaDV24FmR+2 KWLKu8cSb8FuP731bkZxB5Yu/t51QTO9NQNSYJ6VnWlK9ez8joHSfutPsMssDJPSjtHL qd6w== X-Gm-Message-State: AA+aEWY55OqZbI4Gii2B0IGMZ2YpEF4tLcmMTzm8GSyv6IsoUYyq5Mz5 1jvNgVI+n4Qzrt6K9ioRcXCYaG9X X-Google-Smtp-Source: AFSGD/XXfRO72f7wCjCp6yrdEUxt7dKngwaFBe8NG/lNMPbYbRzT8jLDFUNumUFE5JHRJ2CXT1wueg== X-Received: by 2002:a17:902:24e7:: with SMTP id l36mr964508plg.61.1543764652555; Sun, 02 Dec 2018 07:30:52 -0800 (PST) Original-Received: from [192.168.1.11] (pl16832.ag0304.nttpc.ne.jp. [128.53.251.192]) by smtp.gmail.com with ESMTPSA id r4sm17836558pgn.54.2018.12.02.07.30.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Dec 2018 07:30:51 -0800 (PST) In-Reply-To: <87r2f02cue.fsf@rub.de> X-Mailer: Apple Mail (2.3445.101.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::62c X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118829 Archived-At: > On Dec 3, 2018, at 0:00, Stephen Berman = wrote: >=20 > I think your confusion may be due to not distinguishing the value > assigned by setq, which is a particular object, and the form of the > value, which may look the same but nevertheless be a different object. You are absolutely right. But I think the "not distinguishing" the difference between the two is = partially caused by the way the Reference is written: Global Variables: > You specify a value for a symbol with setq. For example, (setq x '(a = b)) > gives the variable x the value (a b). This is not saying: gives the variable x a pointer to the object (a b) Setting Variable Values: > setq [symbol form]. . . [Special Form] This special form is the most = common method of changing a variable=E2=80=99s value. Each symbol is = given a new value, which is the result of evaluating the corresponding = form. So, I go checking the Evaluation chapter. And the Evaluation chapter is not very clear. The form in my case is a = symbol form. So it is evaluated as a variable, for its value, and I'm = not seeing much about the value of lists in that chapter. So I go to the "Lists and Cons Cells" chapter, and there, I'm not = finding anything that tells what the value of a list is. The only hint I got was when I was looking for the reason for the weird = behavior I was seeing, in the Introduction: > When a variable is set to a list with a function such as setq, it = stores the address of the first box in the variable. That does not say that the value of a list is a "cons", just that for = lists, setq works not as expected from what can be read in the previous = parts. Now, if you think that the Reference has something that puts that = clearly, I'd love a pointer. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune