branch: externals/denote
commit 0db5c56a8d7ce473ebbe5f120febb4328d4e7add
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Adjust the spaces in denote-link-or-create-with-command
    
    Thanks to Matthew Batson for the contribution in pull request 674:
    <https://github.com/protesilaos/denote/pull/674>.
    
    Matthew has assigned copyright to the Free Software Foundation.
---
 denote.el | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/denote.el b/denote.el
index 811a18aaf7..305517a5f6 100644
--- a/denote.el
+++ b/denote.el
@@ -5576,16 +5576,9 @@ Optional ID-ONLY has the same meaning as in the command
 `denote-link-or-create'."
   (declare (interactive-only t))
   (interactive "P")
-  (let ((target (denote-file-prompt nil
-                                    "Select file (RET on no match to create 
it)"
-                                    :no-require-match
-                                    :has-identifier)))
+  (let ((target (denote-file-prompt nil "Select file (RET on no match to 
create it)" :no-require-match :has-identifier)))
     (unless (file-exists-p target)
-      (setq target (denote--command-with-features (denote-command-prompt)
-                                                  :use-file-prompt-as-def-title
-                                                  :ignore-region
-                                                  :save
-                                                  :in-background)))
+      (setq target (denote--command-with-features (denote-command-prompt) 
:use-file-prompt-as-def-title :ignore-region :save :in-background)))
     (unless (or (denote--file-type-org-extra-p)
                 (and buffer-file-name
                      (denote-file-has-supported-extension-p buffer-file-name)))

Reply via email to