emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 88f86081e1 08/12: denote-org: tweak doc of denot


From: ELPA Syncer
Subject: [elpa] externals/denote 88f86081e1 08/12: denote-org: tweak doc of denote-org-dblock-insert-denote-links
Date: Thu, 10 Nov 2022 14:57:32 -0500 (EST)

branch: externals/denote
commit 88f86081e1464894d169326be8d6fe753b95e385
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    denote-org: tweak doc of denote-org-dblock-insert-denote-links
    
    Also updating its name to match the prefix of the file (otherwise the
    compiler complains).
    
    Added a TODO as well, though it is not a major issue.
---
 denote-org.el | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/denote-org.el b/denote-org.el
index d3ad730085..b0f1d766f4 100644
--- a/denote-org.el
+++ b/denote-org.el
@@ -88,19 +88,22 @@ This command deletes the original subtree."
 ;;
 ;; Inserting a block can be done via the Org-mode entry point
 ;; 'org-dynamic-block-insert-dblock' and selecting 'denote-links' from
-;; the list, or directly by calling 'org-dblock-insert-denote-links'.
+;; the list, or directly by calling 'denote-org-dblock-insert-denote-links'.
 ;;
 ;;;###autoload
-(defun org-dblock-insert-denote-links (regexp)
-  "Insert new Org dynamic block to insert denote links."
+(defun denote-org-dblock-insert-denote-links (regexp)
+  "Create Org dynamic block to insert Denote links matching REGEXP."
   (interactive
+   ;; TODO 2022-11-10: Should we make this a `read-regexp' as is the
+   ;; case with `denote-link-add-missing-links'?  Also add the
+   ;; minibuffer history.
     (list (read-string "Search for (include _ for keyword): ")))
   (org-create-dblock (list :name "denote-links"
                            :regexp regexp
                            :missing-only 't))
   (org-update-dblock))
 
-(org-dynamic-block-define "denote-links" 'org-dblock-insert-denote-links)
+(org-dynamic-block-define "denote-links" 
'denote-org-dblock-insert-denote-links)
 
 ;; By using the `org-dblock-write:' format, Org-mode knows how to
 ;; compute the dynamic block. Inner workings of this function copied



reply via email to

[Prev in Thread] Current Thread [Next in Thread]