[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 12dc9e23ac 1/7: Rename denote--retrieve-process-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 12dc9e23ac 1/7: Rename denote--retrieve-process-grep and denote-link-button-action |
Date: |
Wed, 10 Aug 2022 00:57:41 -0400 (EDT) |
branch: externals/denote
commit 12dc9e23acbc55a50046ed3c0753ebc830871e91
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Rename denote--retrieve-process-grep and denote-link-button-action
---
denote.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index 791145acc1..5f34344ae8 100644
--- a/denote.el
+++ b/denote.el
@@ -621,7 +621,7 @@ Parse `denote--retrieve-xrefs'."
(delete-dups (mapcar #'car xrefs))
#'string-lessp))
-(defun denote--retrieve-proces-grep (identifier)
+(defun denote--retrieve-process-grep (identifier)
"Process lines matching IDENTIFIER and return list of files."
(denote--retrieve-files-in-output
(delete (buffer-file-name) (denote--retrieve-files-in-xrefs
@@ -1844,9 +1844,11 @@ format is always [[denote:IDENTIFIER]]."
;; NOTE 2022-06-15: I add this as a variable for advanced users who may
;; prefer something else. If there is demand for it, we can make it a
;; defcustom, but I think it would be premature at this stage.
-(defvar denote-link-buton-action #'find-file-other-window
+(defvar denote-link-button-action #'find-file-other-window
"Action for Denote buttons.")
+(make-obsolete-variable 'denote-link-buton-action 'denote-link-button-action
"0.5.0")
+
(defun denote-link--find-file-at-button (button)
"Visit file referenced by BUTTON."
(let* ((id (denote-link--id-from-string
@@ -1854,7 +1856,7 @@ format is always [[denote:IDENTIFIER]]."
(button-start button)
(button-end button))))
(file (denote--get-note-path-by-id id)))
- (funcall denote-link-buton-action file)))
+ (funcall denote-link-button-action file)))
;;;###autoload
(defun denote-link-buttonize-buffer (&optional beg end)
@@ -1886,7 +1888,7 @@ positions, limit the process to the region in-between."
(defun denote-link--backlink-find-file (button)
"Action for BUTTON to `find-file'."
- (funcall denote-link-buton-action (buffer-substring (button-start button)
(button-end button))))
+ (funcall denote-link-button-action (buffer-substring (button-start button)
(button-end button))))
(defun denote-link--display-buffer (buf)
"Run `display-buffer' on BUF.
@@ -1943,7 +1945,7 @@ default, it will show up below the current window."
(let* ((file (buffer-file-name))
(id (denote--retrieve-filename-identifier file))
(title (denote--retrieve-value-title file)))
- (if-let ((files (denote--retrieve-proces-grep id)))
+ (if-let ((files (denote--retrieve-process-grep id)))
(denote-link--prepare-backlinks id files title)
(user-error "No links to the current note"))))
- [elpa] externals/denote updated (55b4a09606 -> 82424803d0), ELPA Syncer, 2022/08/10
- [elpa] externals/denote 12dc9e23ac 1/7: Rename denote--retrieve-process-grep and denote-link-button-action,
ELPA Syncer <=
- [elpa] externals/denote 34daa52ea3 4/7: Refactor denote--dir-in-denote-directory-p, ELPA Syncer, 2022/08/10
- [elpa] externals/denote b5704da5c2 6/7: Refactor denote--file-extension and denote--path, ELPA Syncer, 2022/08/10
- [elpa] externals/denote ca6aa0d104 5/7: Make filetype parameter mandatory in denote--format-front-matter, ELPA Syncer, 2022/08/10
- [elpa] externals/denote eb1131af24 2/7: Refactor denote--format-front-matter-keywords, ELPA Syncer, 2022/08/10
- [elpa] externals/denote a992c74a71 3/7: Delete denote--prompt-symbols, ELPA Syncer, 2022/08/10
- [elpa] externals/denote 82424803d0 7/7: Merge pull request #82 from jeanphilippegg/cleanup, ELPA Syncer, 2022/08/10