emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Autoload org-link-set-parameters
@ 2025-01-26  7:22 Joseph Turner
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, other threads:[~2025-01-26  7:25 UTC | newest]

Thread overview: (only message) (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

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).