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

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

[elpa] externals/denote 77b4bca5b8 2/3: Make minor stylistic tweaks


From: ELPA Syncer
Subject: [elpa] externals/denote 77b4bca5b8 2/3: Make minor stylistic tweaks
Date: Sun, 9 Oct 2022 22:57:31 -0400 (EDT)

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

    Make minor stylistic tweaks
---
 denote.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/denote.el b/denote.el
index 60dff404ff..a0171e7be1 100644
--- a/denote.el
+++ b/denote.el
@@ -2262,18 +2262,17 @@ either from the front matter or the file name.
 
 If region is active, use its text as the link's description
 instead of TARGET's title.  If active region is empty (i.e
-whitespace-only), insert an id-only link (following org-mode's
-behavior with empty description)."
+whitespace-only), insert an ID-ONLY link."
   (interactive (list (denote-file-prompt) current-prefix-arg))
   (let* ((beg (point))
          (description (when-let* (((region-active-p))
                                   (beg (region-beginning))
                                   (end (region-end))
-                                  (selected-text (string-trim 
(buffer-substring-no-properties beg end))))
+                                  (selected-text
+                                   (string-trim
+                                    (buffer-substring-no-properties beg end))))
                         (delete-region beg end)
                         selected-text))
-         ;; If DESCRIPTION is empty, we follow org-mode's behavior of inserting
-         ;; ID-only link
          (id-only (or id-only (string-empty-p description))))
     (insert
      (denote-link--format-link



reply via email to

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