aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-08-08 06:04:51 +0000
committerMartin Rudalics2007-08-08 06:04:51 +0000
commiteaccbbd3c4e79e6618deda679dbb7a710ce2c9c6 (patch)
tree13f30a4ac0a29ea127832685e3007787e1dfdb9f
parent0dad3dfecc893cb8807154f8d6e5559e922ddc72 (diff)
downloademacs-eaccbbd3c4e79e6618deda679dbb7a710ce2c9c6.tar.gz
emacs-eaccbbd3c4e79e6618deda679dbb7a710ce2c9c6.zip
(2C-two-columns, 2C-merge): Use window-full-width-p instead of comparing
frame-width and window-width.
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/textmodes/two-column.el8
2 files changed, 17 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 381092c8e60..9a40681aba8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,16 @@
12007-08-08 Martin Rudalics <rudalics@gmx.at>
2
3 * dired.el (dired-pop-to-buffer):
4 * mouse-drag.el (mouse-drag-should-do-col-scrolling):
5 * calendar/calendar.el (generate-calendar-window):
6 * progmodes/compile.el (compilation-set-window-height):
7 * textmodes/two-column.el (2C-two-columns, 2C-merge):
8 Use window-full-width-p instead of comparing frame-width and
9 window-width.
10
11 * progmodes/compile.el (compilation-find-buffer): Remove extra
12 argument in call to compilation-buffer-internal-p.
13
12007-08-07 Michael Albinus <michael.albinus@gmx.de> 142007-08-07 Michael Albinus <michael.albinus@gmx.de>
2 15
3 * net/tramp.el (tramp-handle-file-remote-p): Handle optional 16 * net/tramp.el (tramp-handle-file-remote-p): Handle optional
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el
index 2568b53fe36..eebd1923b63 100644
--- a/lisp/textmodes/two-column.el
+++ b/lisp/textmodes/two-column.el
@@ -347,8 +347,8 @@ When called again, restores the screen layout with the current buffer
347first and the associated buffer to its right." 347first and the associated buffer to its right."
348 (interactive "P") 348 (interactive "P")
349 ;; first go to full width, so that we can certainly split into two windows 349 ;; first go to full width, so that we can certainly split into two windows
350 (if (< (window-width) (frame-width)) 350 (unless (window-full-width-p)
351 (enlarge-window 99999 t)) 351 (enlarge-window 99999 t))
352 (split-window-horizontally 352 (split-window-horizontally
353 (max window-min-width (min 2C-window-width 353 (max window-min-width (min 2C-window-width
354 (- (frame-width) window-min-width)))) 354 (- (frame-width) window-min-width))))
@@ -533,8 +533,8 @@ off trailing spaces with \\[delete-trailing-whitespace]."
533 (insert 2C-separator string)) 533 (insert 2C-separator string))
534 (next-line 1) ; add one if necessary 534 (next-line 1) ; add one if necessary
535 (set-buffer b2)))) 535 (set-buffer b2))))
536 (if (< (window-width) (frame-width)) 536 (unless (window-full-width-p)
537 (enlarge-window 99999 t))) 537 (enlarge-window 99999 t)))
538 538
539;;;;; utility functions ;;;;; 539;;;;; utility functions ;;;;;
540 540