branch: externals/denote
commit 658659c83edb1d57b9776484496e9b9995a76af1
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Stop declaring the denote-directory function as obsolete
    
    There are plenty of custom functions that still use it. We will
    improve things internally, but I see this function continuing to be
    useful long-term.
---
 denote.el | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/denote.el b/denote.el
index c969edfa35..6770521009 100644
--- a/denote.el
+++ b/denote.el
@@ -1022,15 +1022,11 @@ to override what this function returns."
 ;; case?) or fall back to the common root as in the function
 ;; `denote-sort-dired--find-common-directory'.
 (defun denote-directory ()
-  "Return path of variable `denote-directory' as a proper directory.
-
-This function is obsolete.  Use `denote-directories' instead, which
-returns the note directories as a list.  The current function only
-returns the first directory."
+  "Return the `car' of `denote-directories'.
+Unless this is definitely what you need, use the `denote-directories'
+instead.  Also see `denote-directories-get-common-root'."
   (car (denote-directories)))
 
-(make-obsolete 'denote-directory 'denote-directories "4.1.0")
-
 (defvar denote-generate-identifier-automatically t
   "Make creation and renaming commands automatically create and identifier.
 

Reply via email to