summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2011-06-02 19:48:36 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2011-06-02 19:48:36 +0200
commit0db883073369936e27ceea500513db5c37b0beee (patch)
treedc23c3ed6bcc4a31b80d7611d2a36ee9583160af
parent32ac8dd0e51a73a8b7190c0fb10074e56e9f7aca (diff)
downloadorg-mode-0db883073369936e27ceea500513db5c37b0beee.tar.gz
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
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 1ca03f4..f597dd7 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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)))