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

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

[elpa] externals/denote 4ef21b0217 01/14: Rename denote-backlinks-mode a


From: ELPA Syncer
Subject: [elpa] externals/denote 4ef21b0217 01/14: Rename denote-backlinks-mode and denote-backlinks-mode-map
Date: Mon, 15 Aug 2022 23:57:29 -0400 (EDT)

branch: externals/denote
commit 4ef21b0217644c109901f9db79d7f7c3b3a7b4c0
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Rename denote-backlinks-mode and denote-backlinks-mode-map
---
 README.org |  8 ++++----
 denote.el  | 12 ++++++------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/README.org b/README.org
index 15529fba68..a2ba43fa84 100644
--- a/README.org
+++ b/README.org
@@ -1202,12 +1202,12 @@ Reproducing it here for the sake of convenience:
         (window-width . 0.3)))
 #+end_src
 
-#+findex: denote-backlink-mode
-#+vindex: denote-backlink-mode-map
-The backlinks' buffer runs the major-mode ~denote-backlink-mode~, which
+#+findex: denote-backlinks-mode
+#+vindex: denote-backlinks-mode-map
+The backlinks' buffer runs the major-mode ~denote-backlinks-mode~, which
 is derived from ~special-mode~.  It binds keys to move between links
 with =n= (next) and =p= (previous).  These are stored in the
-~denote-backlink-mode-map~ (use =M-x describe-mode= (=C-h m=) in an
+~denote-backlinks-mode-map~ (use =M-x describe-mode= (=C-h m=) in an
 unfamiliar buffer to learn more about it).
 
 Note that the backlinking facility uses Emacs' built-in Xref
diff --git a/denote.el b/denote.el
index cb21a48f00..488bff7469 100644
--- a/denote.el
+++ b/denote.el
@@ -2099,16 +2099,16 @@ Expand `denote-link-backlinks-display-buffer-action'."
    buf
    `(,@denote-link-backlinks-display-buffer-action)))
 
-(defvar denote-backlink-mode-map
+(defvar denote-backlinks-mode-map
   (let ((m (make-sparse-keymap)))
     (define-key m "n" #'forward-button)
     (define-key m "p" #'backward-button)
     m)
-  "Keymap for `denote-backlink-mode'.")
+  "Keymap for `denote-backlinks-mode'.")
 
-;; TODO 2022-08-10: In some places we have "backlink" and in others
-;; "backlinks".  We need to address this inconsistency.
-(define-derived-mode denote-backlink-mode special-mode "Backlinks"
+(make-obsolete-variable 'denote-backlink-mode-map 'denote-backlinks-mode-map 
"0.6.0")
+
+(define-derived-mode denote-backlinks-mode special-mode "Backlinks"
   "Major mode for backlinks buffers.")
 
 (defun denote-link--prepare-backlinks (id files &optional title)
@@ -2119,7 +2119,7 @@ Use optional TITLE for a prettier heading."
     (with-current-buffer (get-buffer-create buf)
       (setq-local default-directory (denote-directory))
       (erase-buffer)
-      (denote-backlink-mode)
+      (denote-backlinks-mode)
       (goto-char (point-min))
       (when-let* ((title)
                   (heading (format "Backlinks to %S (%s)" title id))



reply via email to

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