From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: local binding, too local... Date: Sat, 8 Dec 2018 09:02:17 +0100 Message-ID: <20181208080217.GA4367@tuxteam.de> References: <0583DE39-42E2-4D05-97F6-3D709DBC73FE@gmail.com> <30D13139-2EAB-4195-9DFD-4832C092B5A1@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" X-Trace: blaine.gmane.org 1544256060 8113 195.159.176.226 (8 Dec 2018 08:01:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2018 08:01:00 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 08 09:00: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 1gVXXj-00020x-CJ for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 09:00:55 +0100 Original-Received: from localhost ([::1]:49910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVXZq-0000u3-2I for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 03:03:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVXZA-0000sk-QU for help-gnu-emacs@gnu.org; Sat, 08 Dec 2018 03:02:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVXZ6-0008AR-PW for help-gnu-emacs@gnu.org; Sat, 08 Dec 2018 03:02:24 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:46437) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVXZ6-00089a-Dj for help-gnu-emacs@gnu.org; Sat, 08 Dec 2018 03:02:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=NuU4rreRsX/U106Myn0UW0VZPWjSbcSwQLQ7RkmQdUs=; b=c1lybptvmNKsAvqWm4mF95MTXixeP4a/IgYoGsMG6sKC7JtnWVBuz+AYPtYcQEkbwfhgPKDlPNTMkfUGBSrvZiMUxNqzs2nsRFYFrO9JrtkGvg01foyukigqDMsPq5IDcbjITAL79m/9PaXEOdgUj1nV+Dg0n5XcyNyZ9E7h5pgk3okB0smwmDlrujwxXf28Zdv1bkuLTVhw5F0RBYVelClaMO+ckIGxu6VBUp85eYKLvYBynlM12cTVQV/oUT59yW0EbRrBYkUKYd4R3BoUU5a7gWOx2BPm+eWMslOYVTwCvveEP3XQkrl60ftiM1bQ+mbAoRdYPm+sG21VW/8qmQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1gVXZ3-0001ba-9B for help-gnu-emacs@gnu.org; Sat, 08 Dec 2018 09:02:17 +0100 Content-Disposition: inline In-Reply-To: <30D13139-2EAB-4195-9DFD-4832C092B5A1@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 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:118915 Archived-At: --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Sat, Dec 08, 2018 at 04:37:59PM +0900, Jean-Christophe Helary wrote: [...] > I'm not sure I understand the difference yet between binding and assigning yet. Binding: you associate a name (strictly: a symbol) to a place where to store something (a "variable"). Assigning: you change the content (the thing stored in) an existing variable. Often you get those two steps in one package, and that's why the difference isn't so clear. Consider: (let ((foo 12)) ; bind a variable to the symbol foo ... (... ; some sub-scope, e.g. another let ; let's assume it does *not* bind foo (setq foo 13) ; Now the foo is bound to the same variable, ; but that contains now 13 )) Things are a bit confusing, because (let ((foo 12)) ...) binds foo *and* assigns 12. But you could just use (let (foo) ...) in its pure form Cheers -- t --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlwLeokACgkQBcgs9XrR2kZuOgCfXNMqjERbZN9ZGsUbCziy2JNE TRMAn3daxNDCPIap9a+0vf/de9dCvBfr =/DcE -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--