]> git.eshelyaron.com Git - emacs.git/commitdiff
(2C-two-columns, 2C-merge): Use window-full-width-p instead of comparing
authorMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 06:04:51 +0000 (06:04 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 06:04:51 +0000 (06:04 +0000)
frame-width and window-width.

lisp/ChangeLog
lisp/textmodes/two-column.el

index 381092c8e6099d076bb5306593843d3e0af8ad86..9a40681aba8d54f4bf1a2f9e372f324220a796d3 100644 (file)
@@ -1,3 +1,16 @@
+2007-08-08  Martin Rudalics  <rudalics@gmx.at>
+
+       * dired.el (dired-pop-to-buffer):
+       * mouse-drag.el (mouse-drag-should-do-col-scrolling):
+       * calendar/calendar.el (generate-calendar-window):
+       * progmodes/compile.el (compilation-set-window-height):
+       * textmodes/two-column.el (2C-two-columns, 2C-merge):
+       Use window-full-width-p instead of comparing frame-width and
+       window-width.
+
+       * progmodes/compile.el (compilation-find-buffer): Remove extra
+       argument in call to compilation-buffer-internal-p.
+
 2007-08-07  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (tramp-handle-file-remote-p): Handle optional
index 2568b53fe36e84145e79f374bf2f3780fe7719c8..eebd1923b637785022ed0cd17d48dd94ade0c706 100644 (file)
@@ -347,8 +347,8 @@ When called again, restores the screen layout with the current buffer
 first and the associated buffer to its right."
   (interactive "P")
   ;; first go to full width, so that we can certainly split into two windows
-  (if (< (window-width) (frame-width))
-      (enlarge-window 99999 t))
+  (unless (window-full-width-p)
+    (enlarge-window 99999 t))
   (split-window-horizontally
    (max window-min-width (min 2C-window-width
                              (- (frame-width) window-min-width))))
@@ -533,8 +533,8 @@ off trailing spaces with \\[delete-trailing-whitespace]."
          (insert 2C-separator string))
        (next-line 1)                   ; add one if necessary
        (set-buffer b2))))
-  (if (< (window-width) (frame-width))
-      (enlarge-window 99999 t)))
+  (unless (window-full-width-p)
+    (enlarge-window 99999 t)))
 \f
 ;;;;; utility functions ;;;;;