From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: other-window: say there is none if none
Date: Sun, 12 Nov 2006 16:39:09 -0800 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICCEHCDJAA.drew.adams@oracle.com> (raw)
In-Reply-To: <E1GjHxp-000133-AW@jidanni.org>
> C-x o runs the command other-window. But if there is none, it
> should say something, else dumbo me will just keep hitting it.
It might not be what you would like, but another approach is to call
`other-frame' if there is no other window in the same frame. I bind `C-x o'
to this:
(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)))
next prev parent reply other threads:[~2006-11-13 0:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 19:22 other-window: say there is none if none Dan Jacobson
2006-11-13 0:39 ` Drew Adams [this message]
2006-11-13 15:50 ` Kevin Rodgers
2006-11-13 17:19 ` Juanma Barranquero
2006-11-14 12:26 ` Richard Stallman
2006-11-14 15:31 ` Juanma Barranquero
-- strict thread matches above, loose matches on Subject: below --
2006-11-20 11:32 Dan Jacobson
2006-11-21 16:14 ` Kevin Rodgers
2006-11-21 16:24 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICCEHCDJAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.