Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elisp - Avoid prompt in interactive function

I'm trying to call the following org-mode function to insert the current timestamp in the buffer. The function is called by a script.

(org-time-stamp-inactive)

This, as expected, brings up a prompt asking for the date to use for the timestamp. But I want to skip the prompt and insert the timestamp directly. Is that possible at all? Haven't found anything that could help me.

like image 960
fullmontis Avatar asked Dec 05 '25 14:12

fullmontis


1 Answers

This should insert the current inactive time stamp:

(org-insert-time-stamp nil nil t)
like image 67
illnerb Avatar answered Dec 07 '25 08:12

illnerb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!