Commit 0de7d982 authored by Joost Kremers's avatar Joost Kremers Committed by Tassilo Horn
Browse files

Use `window-total-width' instead of `window-width'.

* textmodes/reftex-toc.el (reftex-toc, reftex-re-enlarge): Use
`window-total-width' instead of `window-width'.
parent c72d972c
2014-04-04 Joost Kremers <> (tiny change)
* textmodes/reftex-toc.el (reftex-toc, reftex-re-enlarge): Use
`window-total-width' instead of `window-width'.
2014-04-03 Daniel Colascione <>
* subr.el (set-transient-map): Remove rms's workaround entirely;
......@@ -241,13 +241,13 @@ When called with a raw C-u prefix, rescan the document first."
(< (window-height) (* 2 window-min-height)))
(setq reftex-last-window-width (window-width)
(setq reftex-last-window-width (window-total-width)
reftex-last-window-height (window-height)) ; remember
(unless unsplittable
(if reftex-toc-split-windows-horizontally
(floor (* (window-width)
(floor (* (window-total-width)
(floor (* (window-height)
......@@ -374,8 +374,8 @@ SPC=view TAB=goto RET=goto+hide [q]uit [r]escan [l]abels [f]ollow [x]r [?]Help
(defun reftex-re-enlarge ()
"Enlarge window to a remembered size."
(let ((count (if reftex-toc-split-windows-horizontally
(- (or reftex-last-window-width (window-width))
(- (or reftex-last-window-width (window-total-width))
(- (or reftex-last-window-height (window-height))
(when (> count 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment