unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* hook and interactive with parameter
@ 2018-02-12 10:03 Lajos Bodnar
  0 siblings, 0 replies; 12+ messages in thread
From: Lajos Bodnar @ 2018-02-12 10:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
I'm new in emacs scripting but I would like to do that:
- I open a file after the file hook run I would like to run a function.
- I can do this without parameter but if I would like to use this function
with getting input from prompt. It will throw an error.

How can I do it what is the correct way to run this function?

(add-hook '...-hook 'my-function)

(defun my-function (param1)
   (interactive "sParam1: ")
   ....))

regards
Lajos


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-02-13 19:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8968.1518443498.27995.help-gnu-emacs@gnu.org>
2018-02-12 15:28 ` hook and interactive with parameter Emanuel Berg
2018-02-12 15:43   ` Lajos Bodnar
2018-02-12 16:15     ` tomas
     [not found]     ` <mailman.8981.1518452114.27995.help-gnu-emacs@gnu.org>
2018-02-12 16:21       ` Emanuel Berg
2018-02-13  8:23         ` Lajos Bodnar
2018-02-13  8:42           ` Lajos Bodnar
2018-02-13  8:44           ` Yuri Khan
2018-02-13  8:51           ` tomas
2018-02-13  9:05             ` Lajos Bodnar
     [not found]           ` <mailman.9028.1518511493.27995.help-gnu-emacs@gnu.org>
2018-02-13 19:02             ` Emanuel Berg
     [not found]   ` <mailman.8974.1518450193.27995.help-gnu-emacs@gnu.org>
2018-02-12 16:16     ` Emanuel Berg
2018-02-12 10:03 Lajos Bodnar

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).