all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#18304: 24.3.92; Making and using side windows
@ 2014-08-20 15:59 Nicolas Richard
  2014-08-21  9:24 ` martin rudalics
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Richard @ 2014-08-20 15:59 UTC (permalink / raw
  To: 18304

Running this:
emacs -q --eval '(display-buffer-in-major-side-window (current-buffer) (quote right) 0)' -f calendar

I get an error:

Debugger entered--Lisp error: (error "Cannot split side window or parent of side window")
  signal(error ("Cannot split side window or parent of side window"))
  error("Cannot split side window or parent of side window")
  byte-code(...)
  split-window(nil nil)
  split-window-below()
  calendar-basic-setup(nil)
  calendar(nil)
  call-interactively(calendar record nil)
  command-execute(calendar record)
  execute-extended-command(nil "calendar")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

I have no idea if this is a bug because I don't know how the user is
supposed to use/create side windows (see also #18170).


In GNU Emacs 24.3.92.2 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-08-07 on geodiff-mac3

-- 
Nico.





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

* bug#18304: 24.3.92; Making and using side windows
  2014-08-20 15:59 bug#18304: 24.3.92; Making and using side windows Nicolas Richard
@ 2014-08-21  9:24 ` martin rudalics
  2014-08-21  9:36   ` Nicolas Richard
  0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2014-08-21  9:24 UTC (permalink / raw
  To: Nicolas Richard, 18304

 > emacs -q --eval '(display-buffer-in-major-side-window (current-buffer) (quote right) 0)' -f calendar
 >
 > I get an error:
 >
 > Debugger entered--Lisp error: (error "Cannot split side window or parent of side window")
 >    signal(error ("Cannot split side window or parent of side window"))
 >    error("Cannot split side window or parent of side window")
 >    byte-code(...)
 >    split-window(nil nil)
 >    split-window-below()
 >    calendar-basic-setup(nil)
 >    calendar(nil)
 >    call-interactively(calendar record nil)
 >    command-execute(calendar record)
 >    execute-extended-command(nil "calendar")
 >    call-interactively(execute-extended-command nil nil)
 >    command-execute(execute-extended-command)
 >
 > I have no idea if this is a bug

There were at least two bugs here, namely

(1) `calendar-basic-setup' calls `split-window-below' without checking
      whether the selected window can be split at all.

(2) `window-splittable-p' doesn't check whether the argument window is a
     side window.

Both should be fixed with revision 117719 on trunk.

 > because I don't know how the user is
 > supposed to use/create side windows (see also #18170).

Bugs like the ones you found here should get fixed before promoting side
windows generally.

BTW, if you intend to put the calendar in a side window

emacs -q --eval '(display-buffer-in-major-side-window (current-buffer) (quote bottom) 0)' -f calendar

should look better.

martin





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

* bug#18304: 24.3.92; Making and using side windows
  2014-08-21  9:24 ` martin rudalics
@ 2014-08-21  9:36   ` Nicolas Richard
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Richard @ 2014-08-21  9:36 UTC (permalink / raw
  To: martin rudalics; +Cc: Nicolas Richard, 18304

martin rudalics <rudalics@gmx.at> writes:
> Both should be fixed with revision 117719 on trunk.

Thanks for fixing it. I'm not using trunk yet, I'll give side windows
more testing after the release.

-- 
Nico.





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

end of thread, other threads:[~2014-08-21  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-20 15:59 bug#18304: 24.3.92; Making and using side windows Nicolas Richard
2014-08-21  9:24 ` martin rudalics
2014-08-21  9:36   ` Nicolas Richard

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.