branch: externals/denote
commit 68a5c712d50254d0dc9113a0ba227954b9067b1a
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Add optional DIRECTORIES to denote-directories-get-common-root
---
denote.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/denote.el b/denote.el
index 1a398b0a6a..da8f89ac7e 100644
--- a/denote.el
+++ b/denote.el
@@ -1064,9 +1064,9 @@ to override what this function returns."
(format "/%s/" (mapconcat #'identity common-parent "/"))
"/"))
-(defun denote-directories-get-common-root ()
- "Get the common root directory of `denote-directories'."
- (denote--get-common-root-directory (denote-directories)))
+(defun denote-directories-get-common-root (&optional directories)
+ "Get the common root directory of DIRECTORIES or `denote-directories'."
+ (denote--get-common-root-directory (or directories (denote-directories))))
(defun denote-directory ()
"Return the `car' of `denote-directories'.