]> git.eshelyaron.com Git - emacs.git/commitdiff
Martin Rudalics <rudalics at gmx.at>
authorGlenn Morris <rgm@gnu.org>
Mon, 22 Oct 2007 07:40:37 +0000 (07:40 +0000)
committerGlenn Morris <rgm@gnu.org>
Mon, 22 Oct 2007 07:40:37 +0000 (07:40 +0000)
(fortran-mode-map, fortran-window-create): Use window-full-width-p.

lisp/ChangeLog
lisp/progmodes/fortran.el

index aeba7efff8b432fd9061c11731cd7000de714f64..74777d4c2212ccb09bffb7913f7527fa98e872ea 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-22  Martin Rudalics  <rudalics@gmx.at>
+
+       * progmodes/fortran.el (fortran-mode-map, fortran-window-create):
+       Use window-full-width-p.
+
 2007-10-22  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * mail/vms-pmail.el (insert-signature): Don't use end-of-buffer.
index 016e484a6c5337e8b8e881afffa6b0bb22bc98b6..fb847d25505c7c7af2a282dfe97bfb3c8c8163bf 100644 (file)
@@ -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))