help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does "lacks a prefix" mean?


From: BobD
Subject: Re: What does "lacks a prefix" mean?
Date: Wed, 8 Jul 2015 11:45:48 -0700 (PDT)
User-agent: G2/1.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]