unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Interactive-form invoked with specified arg
Date: Wed, 05 Jun 2013 01:53:01 +0200	[thread overview]
Message-ID: <87bo7lxwki.fsf@VLAN-3434.student.uu.se> (raw)
In-Reply-To: 0e2b4b33-4752-41b2-b08c-4299cbe57440@20g2000yqe.googlegroups.com

gentsquash <gentsquash@gmail.com> writes:

> I looked at it before I posted.  If someone can explain to me
> how it does what I want, then I'll be grateful.

Well, take replace-string for example. If you want to call it from
Elisp, it looks like this:

(replace-string FROM-STRING TO-STRING &optional DELIMITED START
END)

In the below function, you see how it is combined with
call-interactively. The result is the same as if the user would
have hit `M-x replace-string'. But, you don't have to write a
whole new interface (that does the same thing).

(defun replace-str ()
  "Like `replace-string', but reset point when done."
  (interactive)
  (save-excursion
    (call-interactively 'replace-string) ))

But, as for your purposes, now that you have described them in
more detail, I don't think it is the solution.
    
-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


  reply	other threads:[~2013-06-04 23:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-04 16:31 Interactive-form invoked with specified arg gentsquash
2013-06-04 17:17 ` Emanuel Berg
2013-06-04 23:20   ` gentsquash
2013-06-04 23:53     ` Emanuel Berg [this message]
2013-06-05  2:45 ` Stefan Monnier
     [not found] ` <mailman.1012.1370400616.22516.help-gnu-emacs@gnu.org>
2013-06-05 16:49   ` gentsquash
2013-06-05 17:18     ` gentsquash

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87bo7lxwki.fsf@VLAN-3434.student.uu.se \
    --to=embe8573@student.uu.se \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).