aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-22 07:40:37 +0000
committerGlenn Morris2007-10-22 07:40:37 +0000
commitca03b5a94d233b4dfd7637a0c9f78e4477a8affb (patch)
tree23398c901c30d55353be828dcdcdb88794759b26
parentea161fff1428d655a4e41e07becd520a29876a2a (diff)
downloademacs-ca03b5a94d233b4dfd7637a0c9f78e4477a8affb.tar.gz
emacs-ca03b5a94d233b4dfd7637a0c9f78e4477a8affb.zip
Martin Rudalics <rudalics at gmx.at>
(fortran-mode-map, fortran-window-create): Use window-full-width-p.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/fortran.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aeba7efff8b..74777d4c221 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-10-22 Martin Rudalics <rudalics@gmx.at>
2
3 * progmodes/fortran.el (fortran-mode-map, fortran-window-create):
4 Use window-full-width-p.
5
12007-10-22 Dan Nicolaescu <dann@ics.uci.edu> 62007-10-22 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * mail/vms-pmail.el (insert-signature): Don't use end-of-buffer. 8 * mail/vms-pmail.el (insert-signature): Don't use end-of-buffer.
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 016e484a6c5..fb847d25505 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -622,7 +622,7 @@ Used in the Fortran entry in `hs-special-modes-alist'.")
622 ["72-column window" fortran-window-create t] 622 ["72-column window" fortran-window-create t]
623 ["Full Width Window" 623 ["Full Width Window"
624 (enlarge-window-horizontally (- (frame-width) (window-width))) 624 (enlarge-window-horizontally (- (frame-width) (window-width)))
625 (< (window-width) (frame-width))] 625 (not (window-full-width-p))]
626 ["Momentary 72-column window" fortran-window-create-momentarily t] 626 ["Momentary 72-column window" fortran-window-create-momentarily t]
627 "--" 627 "--"
628 ["Break Line at Point" fortran-split-line t] 628 ["Break Line at Point" fortran-split-line t]
@@ -1010,7 +1010,7 @@ The next key typed is executed unless it is SPC."
1010See also `fortran-window-create-momentarily'." 1010See also `fortran-window-create-momentarily'."
1011 (interactive) 1011 (interactive)
1012 (let ((window-min-width 2)) 1012 (let ((window-min-width 2))
1013 (if (< (window-width) (frame-width)) 1013 (unless (window-full-width-p)
1014 (enlarge-window-horizontally (- (frame-width) 1014 (enlarge-window-horizontally (- (frame-width)
1015 (window-width) 1))) 1015 (window-width) 1)))
1016 (let* ((window-edges (window-edges)) 1016 (let* ((window-edges (window-edges))