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

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

Re: Evaluating a variable under point?


From: Andreas Politz
Subject: Re: Evaluating a variable under point?
Date: Wed, 08 Dec 2010 15:16:34 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Elena <egarrulo@gmail.com> writes:

> On 30 Giu, 14:40, Andreas Politz <poli...@fh-trier.de> wrote:
>> Maybe you want to write
>>
>> (eval (intern (thing-at-point ...
>
> Thanks Andreas.
>
> I get the behavior I expect when I evaluate the following into
> *scratch*:
>
>                  (message (eval (intern "mark-active")))
>
> However:
>
>                  (message (eval (intern (thing-at-point 'symbol))))
>
> does not work when point is over an occurrence of "mark-active" into a
> buffer.

I think the observed difference comes from different methods of
evaluation.  Anyway, you should use a format-string
(message "%s" expr)
.  Read the documentation of `message'.

-ap


reply via email to

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