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 08:44:31 +0900 Message-ID: References: <87va4bu4kf.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543794480 1715 195.159.176.226 (2 Dec 2018 23:48:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2018 23:48:00 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 03 00:47:56 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 1gTbSs-0000Je-NC for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Dec 2018 00:47:54 +0100 Original-Received: from localhost ([::1]:46177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTbUz-0005W6-2M for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Dec 2018 18:50:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTbUC-0005UT-Cq for help-gnu-emacs@gnu.org; Sun, 02 Dec 2018 18:49:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTbPh-0000m4-8E for help-gnu-emacs@gnu.org; Sun, 02 Dec 2018 18:44:40 -0500 Original-Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:46101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTbPh-0000lo-10 for help-gnu-emacs@gnu.org; Sun, 02 Dec 2018 18:44:37 -0500 Original-Received: by mail-pf1-x42f.google.com with SMTP id c73so5382082pfe.13 for ; Sun, 02 Dec 2018 15:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=szb8w1IuYKcazhBwiB2LNdnz7RPej5HM62l9VonaXTI=; b=pIh+8eznT1caiFXsYU3P2WwSprh1LxfzPlKyMk/6J7/5fYIZ/iwwt+6KHQrHE6DQOk GMp717NQq2hM2sZU9Lgeg/73bcEvn5TTn/YZg1J+28Lt023HCDGXgW3pGKgofgSC6+TP dXrluyfmf+zCTV9kq/0LMLIplU38rlYxs4SNDY14S89nM2h9vkbij0Ci7CB2aCIAhxpJ GiLVYtNvsPQ5J9Dkn7IMIGvI50++zaCCaGCw2xOuRpwRF+faskopCvA/0RMVggjUTUOg oUtQX5mSNGAVtC6ZLnGarDfOAr85edE8UzAFhp/6gLW3TvTjDhgFP1RllFgT98o+waLf cmtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=szb8w1IuYKcazhBwiB2LNdnz7RPej5HM62l9VonaXTI=; b=PAsDR8GvdV5iuV6BliRXT9ZvJZejegSKEMC14rhZBzAQQBugssm3hzg/3UhwkIOj3U kN5yTMAdRcKtNPyMs+QO1AMSCaNo5MVofV8enNm7hCYF5OnXIYum4Pkrx62w9/06KHeW zsRZrh2TdpkfkITUw4voU3meRNI4J51jHD6YkVF4/79otcIqpy/iq+jJQTUxS5FOJtGH GJV1LdQT7RXd8tLMkZeVZk+0BsnrQtWIYIph8V2bKknwD74m7DpspEDPWNa5vBpWH4y1 drkLT/e8NhjOm9nzZ+vyz5ZRV9LPDd3iV9z200u5L6Nx+vbD59GqvxAGBBDgQInGvyMR GlCw== X-Gm-Message-State: AA+aEWaupkzzMhC9iz0o0GoiXewErPVeJHmq5c5ZHPkW8h8BBK1GyxyT +scptjhC0Ul9ojwQC9RF9cNdu/g3 X-Google-Smtp-Source: AFSGD/XVhTN7v3L32wZ7SA//sv2RWhu1JR8mS6ty7H2Vg9aqgnzapiMxQ3loadSDQLd0sNDXFIOsNA== X-Received: by 2002:a63:955a:: with SMTP id t26mr11573198pgn.449.1543794275561; Sun, 02 Dec 2018 15:44:35 -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 g190sm14039026pgc.28.2018.12.02.15.44.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Dec 2018 15:44:34 -0800 (PST) In-Reply-To: <87va4bu4kf.fsf@robertthorpeconsulting.com> 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::42f X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:118839 Archived-At: Robert, Thank you *very much* for the precise pointers. > On Dec 3, 2018, at 4:11, Robert Thorpe = wrote: >=20 > However, you're quite right in what you wrote most recently... It took me a while to sort things out, as the hints kept coming :) >>> You're using `setq` on vars you haven't declared/defined yet! >>=20 >> The Introduction doesn't even mention that... >=20 > It doesn't. It mentions setq, let and defvar. But it never says that > it's the preferred style to define variables with let & defvar first. = I > think it should say that. >=20 > I've seen lots of beginners write programs that setq undefined symbols > and now I know why. >=20 >>> Better write this as (setf (nth 3 myDateLastMonth) myDay) >>=20 >> No reference to setf in the Introduction, and it's buried under tons = of reference in the Reference... >=20 > I agree here too. I think setf is important enough that the = introduction > should mention it at least in passing. Ok, I'll work on that and will propose something. Thank you again. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune