[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hook and interactive with parameter
From: |
Lajos Bodnar |
Subject: |
hook and interactive with parameter |
Date: |
Mon, 12 Feb 2018 11:03:52 +0100 |
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
- hook and interactive with parameter,
Lajos Bodnar <=
- Re: hook and interactive with parameter, Emanuel Berg, 2018/02/12
- Re: hook and interactive with parameter, Lajos Bodnar, 2018/02/12
- Re: hook and interactive with parameter, tomas, 2018/02/12
- Message not available
- Re: hook and interactive with parameter, Emanuel Berg, 2018/02/12
- Re: hook and interactive with parameter, Lajos Bodnar, 2018/02/13
- Re: hook and interactive with parameter, Lajos Bodnar, 2018/02/13
- Re: hook and interactive with parameter, Yuri Khan, 2018/02/13
- Re: hook and interactive with parameter, tomas, 2018/02/13
- Re: hook and interactive with parameter, Lajos Bodnar, 2018/02/13
- Message not available
- Re: hook and interactive with parameter, Emanuel Berg, 2018/02/13