|
@@ -849,7 +849,12 @@ only argument to create the link, which should be returned as a string.
|
|
|
|
|
|
See the manual for examples."
|
|
|
:group 'org-link
|
|
|
- :type 'alist)
|
|
|
+ :type '(repeat
|
|
|
+ (cons
|
|
|
+ (string :tag "Protocol")
|
|
|
+ (choice
|
|
|
+ (string :tag "Format")
|
|
|
+ (function)))))
|
|
|
|
|
|
(defcustom org-descriptive-links t
|
|
|
"Non-nil means, hide link part and only show description of bracket links.
|
|
@@ -5957,6 +5962,7 @@ Possible values in the list of contexts are `table', `headline', and `item'."
|
|
|
|
|
|
(defun org-link-expand-abbrev (link)
|
|
|
"Apply replacements as defined in `org-link-abbrev-alist."
|
|
|
+ (debug)
|
|
|
(if (string-match "^\\([a-zA-Z][-_a-zA-Z0-9]*\\)\\(::?\\(.*\\)\\)?$" link)
|
|
|
(let* ((key (match-string 1 link))
|
|
|
(as (or (assoc key org-link-abbrev-alist-local)
|