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

    Remove now superfluous 'let' from 'denote-link'
    
    This builds on top of the new fontification feature provided by 
Abdul-Lateef Haji-Ali in
    pull request 344 (commit 4d12452): 
<https://github.com/protesilaos/denote/pull/344>.
---
 denote.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index 62d96e8ec9..8d2f809c0c 100644
--- a/denote.el
+++ b/denote.el
@@ -3948,9 +3948,8 @@ Also see `denote-link-with-signature'."
     (user-error "The current file type is not recognized by Denote"))
   (unless (file-exists-p file)
     (user-error "The linked file does not exist"))
-  (let ((beg (point)))
-    (denote--delete-active-region-content)
-    (insert (denote-format-link file description file-type id-only))))
+  (denote--delete-active-region-content)
+  (insert (denote-format-link file description file-type id-only)))
 
 (define-obsolete-function-alias
   'denote-link-insert-link

Reply via email to