开发者

Invoking an elisp function and make it prompt for input

开发者 https://www.devze.com 2023-03-26 16:00 出处:网络
In a function that I am writing myself, I would like to invoke the command compile but have it run interactively, just as if I had done Meta-x compile. Just invoking (compil开发者_JS百科e) doesn\'t wo

In a function that I am writing myself, I would like to invoke the command compile but have it run interactively, just as if I had done Meta-x compile. Just invoking (compil开发者_JS百科e) doesn't work as it expects arguments. So how do force emacs to run compile "interactively"?


The answer is:

(call-interactively 'compile)

This does exactly what I asked for in the question.

0

精彩评论

暂无评论...
验证码 换一张
取 消