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

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

[elpa] externals/denote c197c7167d 04/13: Make denote-file-type-prompt p


From: ELPA Syncer
Subject: [elpa] externals/denote c197c7167d 04/13: Make denote-file-type-prompt public
Date: Wed, 14 Sep 2022 00:57:40 -0400 (EDT)

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

    Make denote-file-type-prompt public
    
    We are working towards version 1.0.0.  The idea is to provide functions
    that users/developers can rely on.  By making them public (removing the
    double hyphens) we signify that those forms are (i) in a stable
    state, and (ii) any change to them will be handled with care and
    documented accordingly.
---
 denote.el | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index 3f435bbd71..613f6aeeb0 100644
--- a/denote.el
+++ b/denote.el
@@ -1186,7 +1186,7 @@ When called from Lisp, all arguments are optional.
                                   (region-beginning)
                                   (region-end))))))
          ('keywords (aset args 1 (denote-keywords-prompt)))
-         ('file-type (aset args 2 (denote--file-type-prompt)))
+         ('file-type (aset args 2 (denote-file-type-prompt)))
          ('subdirectory (aset args 3 (denote--subdirs-prompt)))
          ('date (aset args 4 (denote--date-prompt)))
          ('template (aset args 5 (denote--template-prompt)))))
@@ -1225,9 +1225,9 @@ With optional DEFAULT-TITLE use it as the default value."
   "1.0.0")
 
 (defvar denote--file-type-history nil
-  "Minibuffer history of `denote--file-type-prompt'.")
+  "Minibuffer history of `denote-file-type-prompt'.")
 
-(defun denote--file-type-prompt ()
+(defun denote-file-type-prompt ()
   "Prompt for `denote-file-type'.
 Note that a non-nil value other than `text', `markdown-yaml', and
 `markdown-toml' falls back to an Org file type.  We use `org'
@@ -1236,6 +1236,11 @@ here for clarity."
    "Select file type: " '(org markdown-yaml markdown-toml text) nil t
    nil 'denote--file-type-history))
 
+(define-obsolete-function-alias
+  'denote--file-type-prompt
+  'denote-file-type-prompt
+  "1.0.0")
+
 (defvar denote--date-history nil
   "Minibuffer history of `denote--date-prompt'.")
 



reply via email to

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