[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 0e65f05bbb 080/355: Use 'delete-region' instead
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 0e65f05bbb 080/355: Use 'delete-region' instead of 'delete-line' |
Date: |
Sun, 26 Jun 2022 23:58:02 -0400 (EDT) |
branch: externals/denote
commit 0e65f05bbb993d9cf64c4740f806754b12798624
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Use 'delete-region' instead of 'delete-line'
The latter requires 'subr'.
Thanks to Kaushal Modi for reporting the bug in issue 2 over at the
GitHub mirror: <https://github.com/protesilaos/denote/issues/2>.
---
denote-link.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/denote-link.el b/denote-link.el
index e36fe6066a..cb997ed5c9 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -130,10 +130,10 @@ This heading is appended to a file when another links to
it.")
(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))))))
+ (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-region (point-at-bol) (point-at-bol 2))))))))
(provide 'denote-link)
;;; denote-link.el ends here
- [elpa] externals/denote 5c13cf4c1c 354/355: Rename internal id front matter rx for consistency, (continued)
- [elpa] externals/denote 5c13cf4c1c 354/355: Rename internal id front matter rx for consistency, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 733a89ead5 007/355: Add missing autoload, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8e7d42b160 016/355: Fix all (?) problems with org-capture integration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 69f28cfd29 031/355: Re-indent form, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 06cbd091d1 049/355: Tweak README---this is a work-in-progress, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9a2c501cd4 051/355: Tweak wording in description, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 712e24465a 065/355: Update denote-dired.el Commentary, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 69e35281da 070/355: Document denote-front-matter-date-format, ELPA Syncer, 2022/06/27
- [elpa] externals/denote dfc3a8fc60 071/355: Use denote-directory rather than hardcoded path, ELPA Syncer, 2022/06/27
- [elpa] externals/denote eee100cc50 062/355: Add denote-dired-rename-file, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0e65f05bbb 080/355: Use 'delete-region' instead of 'delete-line',
ELPA Syncer <=
- [elpa] externals/denote ab27f5a547 086/355: Tweak sample configuration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f97f1f8b56 082/355: chore: Ignore compiled and autoloads Emacs-Lisp files, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8167d0c30c 091/355: Revert "Stop recording the file path in the front matter", ELPA Syncer, 2022/06/27
- [elpa] externals/denote 6227df012f 100/355: Make org-capture always set .org extension, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e840648623 098/355: Fix typo in the manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9f192263db 092/355: Remove file path from front matter; improve links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote db9584f51d 093/355: BREAKING Change date/identifier pattern, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3e2b560548 099/355: Elaborate on the Overview of Denote, ELPA Syncer, 2022/06/27
- [elpa] externals/denote cfe6e98e7b 090/355: Stop recording the file path in the front matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 2bc5df6011 103/355: denote-file-type: 'markdown-yaml', not 'markdown', ELPA Syncer, 2022/06/27