[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote bd14f8a813 293/355: REMOVE denote-link-register-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote bd14f8a813 293/355: REMOVE denote-link-register-ol-hyperlink variable |
Date: |
Sun, 26 Jun 2022 23:58:33 -0400 (EDT) |
branch: externals/denote
commit bd14f8a81345ace085c7ce4c351dc2c7a225041b
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
REMOVE denote-link-register-ol-hyperlink variable
It was never a good idea to make this optional because it will make the
logic of buttonizing links much more complicated. Furthermore, links in
Org also need to do the right thing during exporting, so we cannot
merely rely on a simple buttonization---registering the custom hyperlink
type is a requirement in that regard.
---
denote-link.el | 31 +++++--------------------------
1 file changed, 5 insertions(+), 26 deletions(-)
diff --git a/denote-link.el b/denote-link.el
index bf238da9b1..bf5077fa51 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -43,24 +43,6 @@
:type 'boolean
:group 'denote-link)
-(defcustom denote-link-register-ol-hyperlink t
- "When non-nil, register the `denote:' custom Org hyperlink type.
-This practically means that the links Denote creates will behave
-link ordinary links in Org files. They can be followed with a
-mouse click or the `org-open-at-point' command, and they can be
-insterted with completion via the `org-insert-link' command after
-selecting the `denote:' hyperlink type.
-
-When this option is nil, Denote links will not work properly in
-Org files. All commands that Denote defines, such as
-`denote-link-backlinks' and `denote-link-find-file' will work as
-intended.
-
-Note that if you do not want to `require' ol.el, you must set
-this option to nil BEFORE loading denote-link.el."
- :type 'boolean
- :group 'denote-link)
-
(defcustom denote-link-backlinks-display-buffer-action
'((display-buffer-reuse-window display-buffer-below-selected)
(window-height . fit-window-to-buffer))
@@ -387,14 +369,11 @@ inserts links with just the identifier."
(declare-function org-link-set-parameters "ol.el" (type &rest parameters))
-;; REVIEW 2022-06-15: Maybe there is a better way to make this optional.
-(when denote-link-register-ol-hyperlink
- (require 'ol)
- (org-link-set-parameters
- "denote"
- :follow #'denote-link-ol-follow
- :complete #'denote-link-ol-complete
- :export #'denote-link-ol-export))
+(org-link-set-parameters
+ "denote"
+ :follow #'denote-link-ol-follow
+ :complete #'denote-link-ol-complete
+ :export #'denote-link-ol-export)
(declare-function org-link-open-as-file "ol" (path arg))
- [elpa] externals/denote 737c647957 246/355: Rename buffer post file rename, (continued)
- [elpa] externals/denote 737c647957 246/355: Rename buffer post file rename, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d0584c0e15 271/355: Refine denote--only-note-p conditions, ELPA Syncer, 2022/06/27
- [elpa] externals/denote dcf8739474 261/355: Improve valid note test (revise ecaaa6b, 8e5899d), ELPA Syncer, 2022/06/27
- [elpa] externals/denote 83d53afae4 245/355: Improve dired revert-buffer post rename, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8e5899d90e 260/355: Match only files that start with ID in file search, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 341cd28b5a 266/355: Fix bug with 'default-directory' reset, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0f149afba2 264/355: Simplify how temp buffer contents are returned, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d8ef0a0c7c 282/355: EXPERIMENTAL Add buttonization for all links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 843fb30dff 301/355: Answer FAQ about sorting files, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 47a9024b00 252/355: BREAKING update the .dir-locals.el sample, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bd14f8a813 293/355: REMOVE denote-link-register-ol-hyperlink variable,
ELPA Syncer <=
- [elpa] externals/denote a611e08ec1 285/355: Clarify that linking still needs some updates, ELPA Syncer, 2022/06/27
- [elpa] externals/denote c3feb9a0ec 250/355: Remove superfluous when, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 662a71d051 330/355: Remove development note about links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3b2db33812 322/355: Remove development note about backlinks, ELPA Syncer, 2022/06/27
- [elpa] externals/denote ed75652925 341/355: Remove the ref card from the manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8394280f95 317/355: Refine regexp for front-matter date extraction, ELPA Syncer, 2022/06/27
- [elpa] externals/denote b25235e93e 331/355: Add header links to the mailing list, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 26069e8612 029/355: Add todo about alternative to seq-remove, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 418a21dccb 052/355: Tweak file and defgroup descriptions, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 20a915672e 056/355: Remove interactive-only from 'denote', ELPA Syncer, 2022/06/27