3
votes
Problem with giving inputs to a function programmatically
The function sunrise-sunset is an interactive function takes a numeric prefix argument as a parameter. It does not take the latitude and longitude as parameters, which is what you're trying to pass ...
3
votes
Accepted
How to call a interactive function with prompt from a lambda?
Instead of providing a function to `call-interactively, you are calling the function (to pass the return value from that call).
Try (call-interactively 'my--insert-chord).
2
votes
Accepted
Call an interactive function and pass argument to it in elisp without user input
Eh, messing with the minibuffer or the window config is the wrong way to go. Any solution like that would be messy, fragile, and ugly. The right thing to do is examine the source code of the function ...
2
votes
Accepted
Problem with giving inputs to a function programmatically
It looks like you can call it like this:
(let ((calendar-latitude 40.1)
(calendar-longitude -88.2)
(calendar-location-name "Urbana, IL"))
(sunrise-sunset))
This does not prompt you for ...
1
vote
isearch-forward, call-interactively, and isearch-filter-predicate
The answer is given in the doc string of isearch-forward:
If this function is called non-interactively with a nil NO-RECURSIVE-EDIT,
it does not return to the calling function until the search is ...
1
vote
call write-file interactively with prompting
I have the function now working to my satisfaction, as below, but am open to suggestions if I'm not doing things optimally. In the solution below, I use function read-file-name to prompt the user, and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
call-interactively × 11interactive × 4
debugging × 2
arguments × 2
prompt × 2
key-bindings × 1
python × 1
hooks × 1
files × 1
keymap × 1
functions × 1
commands × 1
isearch × 1
bookmarks × 1
emacs27 × 1
filtering × 1
default × 1
eieio × 1
lambda × 1
isearch-filter-predicate × 1