From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: BobD Newsgroups: gmane.emacs.help Subject: Re: What does "lacks a prefix" mean? Date: Wed, 8 Jul 2015 11:45:48 -0700 (PDT) Message-ID: References: <1e0ad02f-ca3e-495c-bb85-61f77090d31d@googlegroups.com> <87bnfmqzn2.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1436381451 24410 80.91.229.3 (8 Jul 2015 18:50:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2015 18:50:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 20:50:51 2015 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 1ZCuQk-00058W-CE for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2015 20:50:50 +0200 Original-Received: from localhost ([::1]:36448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCuQj-0000Q5-V3 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2015 14:50:49 -0400 X-Received: by 10.52.142.175 with SMTP id rx15mr14481505vdb.12.1436381148595; Wed, 08 Jul 2015 11:45:48 -0700 (PDT) X-Received: by 10.140.38.180 with SMTP id t49mr183284qgt.9.1436381148525; Wed, 08 Jul 2015 11:45:48 -0700 (PDT) Original-Path: usenet.stanford.edu!m107no1446882qgd.1!news-out.google.com!4ni79767qgh.1!nntp.google.com!w90no1779885qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <87bnfmqzn2.fsf@kuiper.lan.informatimago.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.61.70.127; posting-account=9hbhDwoAAABs5yR7ZnWiLXjb_7uCgBXB Original-NNTP-Posting-Host: 184.61.70.127 User-Agent: G2/1.0 Injection-Date: Wed, 08 Jul 2015 18:45:48 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213255 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:105542 Archived-At: On Wednesday, July 8, 2015 at 2:21:07 PM UTC-4, Pascal J. Bourguignon wrote: > BobD <...> writes: > > > How do I create a variable with local execution scope, i.e. to be > > known within a function, not to other elisp functions, and regardless > > of which buffer is local? > > Using let, of course. > > (defun f (x) > (let ((y (+ 1 x))) > (* 2 y))) > > ... But of course. I'm fooling with old elisp that uses "setq" willy-nilly, defying the notational structuring with which latter day programmers have been (properly) indoctrinated. If I must, I can wedge some let's into the code.