|
@@ -469,6 +469,9 @@ This is the compiled version of the format.")
|
|
|
org-columns-previous-hscroll (window-hscroll))
|
|
|
(force-mode-line-update)))
|
|
|
|
|
|
+(defvar org-colview-initial-truncate-line-value nil
|
|
|
+ "Remember the value of `truncate-lines' across colview.")
|
|
|
+
|
|
|
(defun org-columns-remove-overlays ()
|
|
|
"Remove all currently active column overlays."
|
|
|
(interactive)
|
|
@@ -489,7 +492,10 @@ This is the compiled version of the format.")
|
|
|
(mapc 'org-delete-overlay org-columns-overlays)
|
|
|
(setq org-columns-overlays nil)
|
|
|
(let ((inhibit-read-only t))
|
|
|
- (remove-text-properties (point-min) (point-max) '(read-only t)))))))
|
|
|
+ (remove-text-properties (point-min) (point-max) '(read-only t))))
|
|
|
+ (when (local-variable-p 'org-colview-initial-truncate-line-value)
|
|
|
+ (setq truncate-lines org-colview-initial-truncate-line-value)))))
|
|
|
+
|
|
|
|
|
|
(defun org-columns-cleanup-item (item fmt)
|
|
|
"Remove from ITEM what is a column in the format FMT."
|
|
@@ -863,6 +869,10 @@ around it."
|
|
|
(setq maxwidths (org-columns-get-autowidth-alist fmt cache))
|
|
|
(org-set-local 'org-columns-current-maxwidths maxwidths)
|
|
|
(org-columns-display-here-title)
|
|
|
+ (unless (local-variable-p 'org-colview-initial-truncate-line-value)
|
|
|
+ (org-set-local 'org-colview-initial-truncate-line-value
|
|
|
+ truncate-lines))
|
|
|
+ (setq truncate-lines t)
|
|
|
(mapc (lambda (x)
|
|
|
(goto-line (car x))
|
|
|
(org-columns-display-here (cdr x)))
|