Questions tagged [call-interactively]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers

Calling load-theme with interactive input

I want to call load-theme within a function. Whilst it is supposed to give an interactive input using completing-read, just calling load-theme gives an error and the interactive input is not ...
Dilna's user avatar
  • 1,183
0 votes
0 answers

ISO generic "call command interactively, interactively overriding global variables ..."

BRIEF: looking for an elisp package to make it easier and more to wrapperize calling interactive commands, temporarily overriding global variables as if by let. ---+ DETAIL: ISO = In Search Of. I ...
Krazy Glew's user avatar
0 votes
0 answers

Why is the function call-interactively so slow when called from my init.el file?

I'm creating an Elisp function that basically copies the selected text to the clipboard and then it sends a signal to a TCP port that will trigger a TTS voice that reads aloud what's on the clipboard ...
raylight's user avatar
  • 217
0 votes
1 answer

How to call a interactive function with prompt from a lambda?

I have this little LaTeX helper function: (defun my--insert-chord (chord) "Prompt for a CHORD and insert it at point. TODO: make it agnostic to the package used." (interactive "...
Alessandro Bertulli's user avatar
0 votes
0 answers

Call a function and all relevant hooks inside a function

I have a function consisting of 2 commands. (defun my-function () (interactive) (call-interactively 'run-python) ; <-- Something is not run after this line. (call-...
Gradient's user avatar
  • 211
1 vote
1 answer

Call an interactive function and pass argument to it in elisp without user input

I am new to elisp and am trying to write an Elisp function that calls org-pandoc-export-to-html5-pdf-and-open. org-pandoc-export-to-html5-pdf-and-open is an interactive function that will write to a ...
nonreligious's user avatar
1 vote
1 answer

How to script a bookmark-jump call

I am trying to write a function which will perform a bookmark-jump but then reset the the bookmark line to the top of the screen. So far I have: (defun foo () (interactive) (bookmark-jump) ...
user2567544's user avatar
1 vote
2 answers

Problem with giving inputs to a function programmatically

Some programs take user inputs, for example by calling the interactive function `sunrise-sunset', two arguments are taken from the user. Assume that the inputs are 0.0098 and 51.4934 (these are ...
Name's user avatar
  • 7,709
0 votes
0 answers

Why an error when calling a command in a specific buffer?

Q: why do I get errors when calling a command from a specific buffer, but not in any other buffer? Scratch all of what I had previously said about call-interactively (see strikethrough below for ...
Dan's user avatar
  • 32.6k
1 vote
1 answer

isearch-forward, call-interactively, and isearch-filter-predicate

Here are two use cases where I call isearch-forward with some filter predicate. (let ((isearch-filter-predicate (lambda (a b) nil))) (funcall 'isearch-forward)) (let ((isearch-filter-predicate (...
Michaël's user avatar
  • 314
2 votes
3 answers

call write-file interactively with prompting

I have a function that creates a buffer, with a default file name, and would like the first user action for that buffer be a prompt to write the buffer to a file, allowing the user to change the ...
user1404316's user avatar
0 votes
1 answer

Call a function by its key (inside a script)

I have a tool that allows me to use the same key (shortcut) C-c C-f to call different functions. Actually I can choose different options (different functions) to pass to the LaTeX compiler, binding ...
Gabriele Nicolardi's user avatar