Fix bug#21818

* lisp/org.el (org-insert-link): Redisplay after inserting link.

Reported-by: Emanuel Evans <mail@emanuel.industries>
<http://permalink.gmane.org/gmane.emacs.orgmode/102591>
This commit is contained in:
Nicolas Goaziou 2015-11-05 12:26:01 +01:00
parent 59d706219b
commit 5e22dcd622
1 changed files with 3 additions and 1 deletions

View File

@ -10443,7 +10443,9 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
(unless (string-match "\\S-" desc) (setq desc nil)) (unless (string-match "\\S-" desc) (setq desc nil))
(if remove (apply 'delete-region remove)) (if remove (apply 'delete-region remove))
(insert (org-make-link-string link desc)))) (insert (org-make-link-string link desc))
;; Redisplay so as the new link has proper invisible characters.
(sit-for 0)))
(defun org-link-try-special-completion (type) (defun org-link-try-special-completion (type)
"If there is completion support for link type TYPE, offer it." "If there is completion support for link type TYPE, offer it."