Fix issue with truncate-lines and visual-line-mode

* lisp/org.el (org-insert-link): Set truncate-line in the *Org Link* buffer
and make sure that it really is set there.

See http://thread.gmane.org/gmane.emacs.orgmode/42447
This commit is contained in:
Carsten Dominik 2011-06-02 19:48:36 +02:00
parent 32ac8dd0e5
commit 0db8830733
1 changed files with 1 additions and 1 deletions

View File

@ -8889,7 +8889,7 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
(reverse org-stored-links) "\n"))))
(let ((cw (selected-window)))
(select-window (get-buffer-window "*Org Links*" 'visible))
(setq truncate-lines t)
(with-current-buffer "*Org Links*" (setq truncate-lines) t)
(unless (pos-visible-in-window-p (point-max))
(org-fit-window-to-buffer))
(and (window-live-p cw) (select-window cw)))