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: Pascal J. Bourguignon
Subject: Re: What does "lacks a prefix" mean?
Date: Wed, 08 Jul 2015 20:21:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

BobD <daycandle@gmail.com> 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)))

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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