branch: externals/consult-denote
commit 20c616c11e0dd664354e78b640335d7793507853
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Update denote-directories-get-common-root to not get an argument, per 
latest denote.git
---
 consult-denote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/consult-denote.el b/consult-denote.el
index 9f56faf9f7..118d8c644b 100644
--- a/consult-denote.el
+++ b/consult-denote.el
@@ -125,7 +125,7 @@ Return the absolute path to the matching file."
          (single-dir-p (null (cdr roots)))
          (default-directory (if single-dir-p ; setting the `default-directory' 
is needed for the preview
                                 (car roots)
-                              (denote-directories-get-common-root roots)))
+                              (denote-directories-get-common-root)))
          (files (denote-directory-files
                  (or denote-file-prompt-use-files-matching-regexp 
files-matching-regexp)
                  :omit-current nil nil roots))
@@ -173,7 +173,7 @@ completion candidates.  Else use 
`denote-sequence-get-all-files'."
          ;; relative file paths of the completion candidates.
          (default-directory (if single-dir-p
                                 (car roots)
-                              (denote-directories-get-common-root roots))))
+                              (denote-directories-get-common-root))))
     (if-let* ((files (or files-with-sequences (denote-sequence-get-all-files)))
               (relative-files (if single-dir-p
                                   (mapcar

Reply via email to