all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* next-window: error if there is none
@ 2007-01-13 17:12 Drew Adams
  2007-01-13 17:18 ` David Kastrup
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2007-01-13 17:12 UTC (permalink / raw)


Just a question. Is this the behavior we want for next-window?

emacs -Q
M-: (next-window t)

Debugger entered--Lisp error: (wrong-type-argument window-live-p t)
  next-window(t)
  eval((next-window t))
  eval-expression((next-window t) nil)
  call-interactively(eval-expression)

I'm just wondering if it shouldn't perhaps return nil if there is no next
window.

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

* Re: next-window: error if there is none
  2007-01-13 17:12 next-window: error if there is none Drew Adams
@ 2007-01-13 17:18 ` David Kastrup
  2007-01-13 17:27   ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: David Kastrup @ 2007-01-13 17:18 UTC (permalink / raw)
  Cc: Emacs-Devel

"Drew Adams" <drew.adams@oracle.com> writes:

> Just a question. Is this the behavior we want for next-window?
>
> emacs -Q
> M-: (next-window t)
>
> Debugger entered--Lisp error: (wrong-type-argument window-live-p t)
>   next-window(t)
>   eval((next-window t))
>   eval-expression((next-window t) nil)
>   call-interactively(eval-expression)
>
> I'm just wondering if it shouldn't perhaps return nil if there is no next
> window.

I don't see where you get the idea that passing t as the WINDOW
argument of next-window makes any sense.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* RE: next-window: error if there is none
  2007-01-13 17:18 ` David Kastrup
@ 2007-01-13 17:27   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2007-01-13 17:27 UTC (permalink / raw)


> > M-: (next-window t)
>
> I don't see where you get the idea that passing t as the WINDOW
> argument of next-window makes any sense.

Oops. I thought I was doing (next-window nil t). No problem, no question,
sorry for the noise.

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

end of thread, other threads:[~2007-01-13 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-13 17:12 next-window: error if there is none Drew Adams
2007-01-13 17:18 ` David Kastrup
2007-01-13 17:27   ` Drew Adams

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.