unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* other-window-or-frame
@ 2006-01-05  4:28 Drew Adams
  2006-01-05 17:05 ` other-window-or-frame Kevin Rodgers
  2006-01-05 23:11 ` other-window-or-frame Richard M. Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Drew Adams @ 2006-01-05  4:28 UTC (permalink / raw)


If a frame is `one-window-p', command `other-window' silently does nothing.
It might be better to let it do `other-frame' in that case. The optional
second arg to `other-window' is not accessible interactively anyway, so what
about this:

1. Bind a new command to `C-x o', to replace `other-window'. It would do the
same thing except when `one-window-p' - in that case, it would do
`other-frame'.

2. Keep function `other-window' as is (with its second arg), for Lisp.

IOW (but with a better doc string):

 (defun other-window-or-frame (arg)
   "`other-frame', if `one-window-p'; otherwise, `other-window'."
   (interactive "p")
   (if (one-window-p) (other-frame arg) (other-window arg)))

 (define-key ctl-x-map "o" 'other-window-or-frame)

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

end of thread, other threads:[~2006-02-01 19:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-05  4:28 other-window-or-frame Drew Adams
2006-01-05 17:05 ` other-window-or-frame Kevin Rodgers
2006-02-01 19:13   ` other-window-or-frame Kevin Rodgers
2006-01-05 23:11 ` other-window-or-frame Richard M. Stallman

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).