diff options
author | Glenn Morris <rgm@gnu.org> | 2007-10-22 07:40:37 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-10-22 07:40:37 +0000 |
commit | ca03b5a94d233b4dfd7637a0c9f78e4477a8affb (patch) | |
tree | 23398c901c30d55353be828dcdcdb88794759b26 /lisp/progmodes/fortran.el | |
parent | ea161fff1428d655a4e41e07becd520a29876a2a (diff) | |
download | emacs-ca03b5a94d233b4dfd7637a0c9f78e4477a8affb.tar.gz |
Martin Rudalics <rudalics at gmx.at>
(fortran-mode-map, fortran-window-create): Use window-full-width-p.
Diffstat (limited to 'lisp/progmodes/fortran.el')
-rw-r--r-- | lisp/progmodes/fortran.el | 4 |
1 files changed, 2 insertions, 2 deletions
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'.") ["72-column window" fortran-window-create t] ["Full Width Window" (enlarge-window-horizontally (- (frame-width) (window-width))) - (< (window-width) (frame-width))] + (not (window-full-width-p))] ["Momentary 72-column window" fortran-window-create-momentarily t] "--" ["Break Line at Point" fortran-split-line t] @@ -1010,7 +1010,7 @@ The next key typed is executed unless it is SPC." See also `fortran-window-create-momentarily'." (interactive) (let ((window-min-width 2)) - (if (< (window-width) (frame-width)) + (unless (window-full-width-p) (enlarge-window-horizontally (- (frame-width) (window-width) 1))) (let* ((window-edges (window-edges)) |