Don't use default-description if link description function is defined
* org.el (org-insert-link): Don't use default-description if a `org-make-link-description-function' is defined.
This commit is contained in:
parent
8354fd9e0f
commit
a9559dc08a
|
@ -9170,9 +9170,9 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
|
|||
(setq desc path))))
|
||||
|
||||
(if org-make-link-description-function
|
||||
(setq desc (funcall org-make-link-description-function link desc)))
|
||||
(setq desc (funcall org-make-link-description-function link desc))
|
||||
(if default-description (setq desc default-description)))
|
||||
|
||||
(if default-description (setq desc default-description))
|
||||
(setq desc (read-string "Description: " desc))
|
||||
(unless (string-match "\\S-" desc) (setq desc nil))
|
||||
(if remove (apply 'delete-region remove))
|
||||
|
|
Loading…
Reference in New Issue