aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-01-06 18:38:15 +0000
committerDave Love1999-01-06 18:38:15 +0000
commitaa9305c929959ba7e64d12e4d82de240cdb64e34 (patch)
tree0acb594699f9e186fc9d3b78a9a66c44d59dbc15
parenta600effe5ff4091e7cbdf017de45b7caf3e88d75 (diff)
downloademacs-aa9305c929959ba7e64d12e4d82de240cdb64e34.tar.gz
emacs-aa9305c929959ba7e64d12e4d82de240cdb64e34.zip
(fortran-window-create): Account for scroll
bar width.
-rw-r--r--lisp/progmodes/fortran.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 312fb682930..1109f99aa5f 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -808,7 +808,11 @@ See also `fortran-window-create-momentarily'."
808 (if (< (window-width) (frame-width)) 808 (if (< (window-width) (frame-width))
809 (enlarge-window-horizontally (- (frame-width) 809 (enlarge-window-horizontally (- (frame-width)
810 (window-width) 1))) 810 (window-width) 1)))
811 (split-window-horizontally 73) 811 (let* ((window-edges (window-edges))
812 (scroll-bar-width (- (nth 2 window-edges)
813 (car window-edges)
814 (window-width))))
815 (split-window-horizontally (+ 72 scroll-bar-width)))
812 (other-window 1) 816 (other-window 1)
813 (switch-to-buffer " fortran-window-extra" t) 817 (switch-to-buffer " fortran-window-extra" t)
814 (select-window (previous-window)))) 818 (select-window (previous-window))))