bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16430: 24.3.50; When fullscreen is triggered from the window manager


From: martin rudalics
Subject: bug#16430: 24.3.50; When fullscreen is triggered from the window manager, I can't resize window (via M-x org-export RET)
Date: Wed, 15 Jan 2014 09:09:54 +0100

>>          (setq height (+ (cdr (window-text-pixel-size
>>                                nil nil t nil (frame-pixel-height) t))
>>                          (window-bottom-divider-width)))
>
>>From WM fullscreen: (603 . 797)
>>From M-x toggle... :(603 . 778)

797 and 778 should be the values returned by (frame-pixel-height) in
each case.  Can you verify that?  So the text in the Dispatcher buffer
is larger than what would fit into any of these windows.  Can you please
tell me how the first argument to `window-resize-no-error' is calculated
in the `fit-window-to-buffer' code below?

          (setq height (+ (cdr (window-text-pixel-size
                                nil nil t nil (frame-pixel-height) t))
                          (window-bottom-divider-width)))
          ;; Round height.
          (unless pixelwise
            (setq height (+ (/ height char-height)
                            (if (zerop (% height char-height)) 0 1))))
          (unless (= height total-height)
            (window-resize-no-error
             window
             (- (max min-height (min max-height height)) total-height)
             nil window pixelwise)))

What are the values of `max-height', `height' and `total-height' (in
both fullscreen versions)?

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]