* [PATCH] Autoload org-link-set-parameters
@ 2025-01-26 7:22 Joseph Turner
2025-01-28 11:25 ` Max Nikulin
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Turner @ 2025-01-26 7:22 UTC (permalink / raw)
To: Org Mode Mailing List
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-ol-Autoload-org-link-set-parameters.patch --]
[-- Type: text/x-diff, Size: 811 bytes --]
From f395c9222f900dfe6b257c0d5846b6601102dd3e Mon Sep 17 00:00:00 2001
From: Joseph Turner <joseph@breatheoutbreathe.in>
Date: Sat, 25 Jan 2025 23:19:48 -0800
Subject: [PATCH] ol: Autoload org-link-set-parameters
This change allows other packages to autoload their own link handlers.
See this mu4e issue:
https://github.com/djcb/mu/pull/2798
---
lisp/ol.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/ol.el b/lisp/ol.el
index 43fac7433..1d160ca6e 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -1230,6 +1230,7 @@ (defun org-link-get-parameter (type key)
(plist-get (cdr (assoc type org-link-parameters))
key))
+;;;###autoload
(defun org-link-set-parameters (type &rest parameters)
"Set link TYPE properties to PARAMETERS.
PARAMETERS should be keyword value pairs. See
--
2.46.0
[-- Attachment #2: Type: text/plain, Size: 20 bytes --]
Thank you!
Joseph
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Autoload org-link-set-parameters
2025-01-26 7:22 [PATCH] Autoload org-link-set-parameters Joseph Turner
@ 2025-01-28 11:25 ` Max Nikulin
0 siblings, 0 replies; 2+ messages in thread
From: Max Nikulin @ 2025-01-28 11:25 UTC (permalink / raw)
To: emacs-orgmode
On 26/01/2025 14:22, Joseph Turner wrote:
> This change allows other packages to autoload their own link handlers.
> See this mu4e issue:
>
> https://github.com/djcb/mu/pull/2798
Sorry if I confused everything. Does it mean that loading of mu4e will
cause immediate loading of ol and so whole org? Is it acceptable to use
`with-eval-after-load' in packages?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-28 11:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-26 7:22 [PATCH] Autoload org-link-set-parameters Joseph Turner
2025-01-28 11:25 ` Max Nikulin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).