all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Evaluating a variable under point?
Date: Wed, 30 Jun 2010 21:18:02 +0200	[thread overview]
Message-ID: <8739w4tjmd.fsf@fh-trier.de> (raw)
In-Reply-To: b3328f1c-e42a-4848-85d1-ce023f3edb0f@c33g2000yqm.googlegroups.com

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	other threads:[~2010-06-30 19:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-30 14:33 Evaluating a variable under point? Elena
     [not found] ` <877hlgtwhb.fsf@fh-trier.de>
2010-06-30 15:07   ` Elena
2010-06-30 19:18     ` Andreas Politz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739w4tjmd.fsf@fh-trier.de \
    --to=politza@fh-trier.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.