diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-11-05 12:26:01 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-11-05 13:45:12 +0100 |
commit | 5e22dcd6225d13359346c45c31691bbe0c0b37d7 (patch) | |
tree | 49305df30b43ddf02bf1cc91678efc3bd8bdf2b9 | |
parent | 59d706219bf0434cceacda18e3d291c241648199 (diff) | |
download | org-mode-5e22dcd6225d13359346c45c31691bbe0c0b37d7.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-x | lisp/org.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 1f73dd1..b216702 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -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)) (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." |