Questions tagged [prefix-argument]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
1answer
1k views

How to apply `call-interactively` to an interactive command that accepts the universal argument?

I've read the documentation on how to make interactive calls from within Elisp, but I still can't figure out how to pass the universal argument when using call-interactively on a command that ...
9
votes
3answers
2k views

What is a raw prefix argument? (capital P in interactive)

And what can they be used for? (interactive "p") takes a numerical argument from the universal argument right? And the universal argument is just an int either way, so what does capital (interactive "...
5
votes
2answers
232 views

Is there an easy way to detect how many `C-u`s a command was given?

I have made the following function to count how many C-u prefixes a command was given (assuming it is called interactively), but I feel this is a common-enough problem that there should be a built-in ...
8
votes
1answer
384 views

How to pass a prefix argument to helm-m-x?

I have read the prefix has to be added after running helm-m-x, but I don't know how to do it. For example I want to pass an argument to shell. When I run helm-m-x and then C-u I see in the mode-line [...