Re: eval trouble
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Re: eval trouble         


Author: Kevin Rodgers
Date: Sep 17, 2008 00:51

Drew Adams wrote:
>> Please, why the comma before sym -- quoted, no less:
>>> (put ',sym 'some 'value))))
>
> See the Emacs manual, node Backquote.
>
> Inside a backquote (`):
> ,sym evaluates sym and uses that value.
> ' then wraps that in (quote ...)
>
> So if the value of sym is hello,
> then ,sym gives hello and ',sym gives 'hello.

As does (quote ,sym)

--
Kevin Rodgers
Denver, Colorado, USA
1 Comment
Re: eval trouble         


Author: David Combs
Date: Sep 22, 2008 12:59

In article gnu.org>,
Kevin Rodgers gmail.com> wrote:
>Drew Adams wrote:
>>> Please, why the comma before sym -- quoted, no less:
>>>> (put ',sym 'some 'value))))
>>
>> See the Emacs manual, node Backquote.
>>
>> Inside a backquote (`):
>> ,sym evaluates sym and uses that value.
>> ' then wraps that in (quote ...)
>>
>> So if the value of sym is hello,
>> then ,sym gives hello and ',sym gives 'hello.
>
>As does (quote ,sym)
>
>--
>Kevin Rodgers
>Denver, Colorado, USA ...
Show full article (0.62Kb)
no comments