From 6c40983e860b8225d488a2de0f1fd31973c76fba Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 9 Aug 2023 11:47:07 +0300 Subject: [PATCH] org-with-remote-undo: Update docstring * lisp/org-macs.el (org-with-remote-undo): Mention all the arguments. Document that function is not useful outside agenda. --- lisp/org-macs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index d40419e82..9533d7b07 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -176,7 +176,8 @@ EPOM is an element, point, or marker." ,@body))))) (defmacro org-with-remote-undo (buffer &rest body) - "Execute BODY while recording undo information in two buffers." + "Execute BODY while recording undo information in current buffer and BUFFER. +This function is only useful when called from org-agenda buffer." (declare (debug (form body)) (indent 1)) (org-with-gensyms (cline cmd buf1 buf2 undo1 undo2 c1 c2) `(let ((,cline (org-current-line))