New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
denote-link: delete-line is not known to be defined
#2
Comments
delete-line is not known to be defineddelete-line is not known to be defined
|
Oh, sorry about that @kaushalmodi. The compiler does not issue a warning about it. How about this? (defun denote-link-clear-stale-backlinks ()
"Delete backlinks that no longer point to files."
(interactive)
(let ((default-directory (denote-directory)))
(save-excursion
(goto-char (point-min))
(when (re-search-forward denote-link-backlink-heading nil t)
(while (re-search-forward denote-link--backlink-regexp nil t)
(unless (file-exists-p (match-string-no-properties 1))
;; (delete-line)
(delete-region (point-at-bol) (point-at-bol 2))))))))EDIT: reformat code block. |
What emacs version are you running? I found this because I was byte-compiling each file in this repo. All files compiled clean except for
👍 That compiles cleanly. Thanks! |
The latter requires 'subr'. Thanks to Kaushal Modi for reporting the bug in issue 2 over at the GitHub mirror: <#2>.
Emacs 29.
Very well! Pushed the change per commit 0e65f05 |
Of course! |
|
Gotcha! |
When I try to compile
denote-link.el(Emacs 28.1.50), I get this warningThe text was updated successfully, but these errors were encountered: