summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2015-11-05 12:26:01 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-11-05 12:26:01 +0100
commitd5767ad31fc8afc374f963ad6ccac689948b8674 (patch)
treeae112cedd56a45d1ddb80e881c6cdbd0aaa0e8b4
parent3b8ebff351c6fecb29ea08e658034b5998553d3d (diff)
downloadorg-mode-d5767ad31fc8afc374f963ad6ccac689948b8674.tar.gz
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>
-rwxr-xr-xlisp/org.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 6218a3a..1ac402f 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10441,7 +10441,9 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
(unless (string-match "\\S-" desc) (setq desc nil))
(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)
"If there is completion support for link type TYPE, offer it."