Skip to main content
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 ...
Aquaactress's user avatar
  • 1,473
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).
dalanicolai's user avatar
  • 7,985
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 ...
db48x's user avatar
  • 19.1k
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 ...
John Kitchin's user avatar
  • 12.1k
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 ...
Tobias's user avatar
  • 33.7k
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 ...
user1404316's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible