unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16738: Errors while resizing vertically
@ 2014-02-13 10:06 E Sabof
  2014-02-14 11:39 ` martin rudalics
  2014-02-21 13:07 ` martin rudalics
  0 siblings, 2 replies; 13+ messages in thread
From: E Sabof @ 2014-02-13 10:06 UTC (permalink / raw)
  To: 16738

Another one without a clear recipe. I am using the following function on a fairly regular basis:

(defun es-maximize-window-vertically (&optional window)
    (interactive)
    (cl-callf window-normalize-window window)
    (unless (eq window (frame-root-window))
      (window-resize window (window-max-delta window))))

In combination with:

(setq window-min-height 1)

Sometimes it causes errors such as the ones below. In this state a) I can't resize any windows, using the above function. b) I can still resize using the mouse. c) Once I do, I usually can resize once with this function, but then I get a similar error again.

Evgeni

BACKTRACE1:

Debugger entered--Lisp error: (error "Cannot resize window #<window 128 on *Ack-and-a-half*>")
  signal(error ("Cannot resize window #<window 128 on *Ack-and-a-half*>"))
  error("Cannot resize window %s" #<window 128 on *Backtrace*>)
  window-resize(#<window 128 on *Backtrace*> 28)
  (if (eq window (frame-root-window)) nil (window-resize window (window-max-delta window)))
  es-maximize-window-vertically()
  call-interactively(es-maximize-window-vertically nil nil)
  command-execute(es-maximize-window-vertically)

BACKTRACE2

Debugger entered--Lisp error: (args-out-of-range -17 0 2147483647)
  set-window-new-pixel(#<window 299 on *mu4e-headers*> -17 t)
  window--resize-child-windows(#<window 301> -595 nil #<window 303 on *Backtrace*> nil nil nil nil)
  window--resize-siblings(#<window 303 on *Backtrace*> 595 nil nil)
  window-resize(#<window 303 on *Backtrace*> 35)
  (if (eq window (frame-root-window)) nil (window-resize window (window-max-delta window)))
  es-maximize-window-vertically()
  call-interactively(es-maximize-window-vertically nil nil)
  command-execute(es-maximize-window-vertically)





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-09-19  8:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13 10:06 bug#16738: Errors while resizing vertically E Sabof
2014-02-14 11:39 ` martin rudalics
2014-02-15  2:08   ` E Sabof
2014-02-16 10:32     ` martin rudalics
2014-02-21 13:07   ` martin rudalics
2014-02-21 20:29     ` Paul Eggert
2014-02-21 21:29       ` martin rudalics
2014-02-24  0:03         ` E Sabof
2014-02-24  7:40           ` martin rudalics
2014-02-24 13:06             ` E Sabof
2014-02-26 10:15               ` martin rudalics
2014-02-21 13:07 ` martin rudalics
2014-09-19  8:18   ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).