all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Van L <van@scratch.space>
To: help-gnu-emacs@gnu.org
Subject: input to interactive M: key from text at point (was: help-gnu-emacs Digest, Vol 198, Issue 83)
Date: Sat, 25 May 2019 19:46:18 +1000	[thread overview]
Message-ID: <m236l2rhn9.fsf_-_@scratch.space> (raw)
In-Reply-To: CAH0GyZDt1Hm_p7xDhBAbMqxOdzrec9shyAbgm2WoQODRBF9QvA@mail.gmail.com

Budi <budikusasi@gmail.com> writes:

> How to hook string/word at point to be as input interactive M-: key,
> i.e. prompting Eval: on minibuffer ?

Guessing that you have text you want to evaluate as elisp, try the following.

--8<---------------cut here---------------start------------->8---
C-h f eval-region
--8<---------------cut here---------------start------------->8---

What I do is select a region of elisp text and M-x eval-region.

Hope that helps.

-- 
© 2019 Van L
gpg using EEF2 37E9 3840 0D5D 9183  251E 9830 384E 9683 B835
          "I don't believe any anything that the media say." - Ali Abdelaziz




  parent reply	other threads:[~2019-05-25  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.14272.1558701102.1163.help-gnu-emacs@gnu.org>
2019-05-24 13:22 ` help-gnu-emacs Digest, Vol 198, Issue 83 Budi
2019-05-25  4:22   ` Emanuel Berg via help-gnu-emacs
2019-05-25  9:46   ` Van L [this message]
2019-05-27 21:26     ` input to interactive M: key from text at point (was: help-gnu-emacs Digest, Vol 198, Issue 83) Emanuel Berg via help-gnu-emacs
2019-05-28 11:02       ` input to interactive M: key from text at point Van L

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=m236l2rhn9.fsf_-_@scratch.space \
    --to=van@scratch.space \
    --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.