[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: other-window when no other window

From: Kevin Rodgers
Subject: Re: other-window when no other window
Date: Thu, 04 Nov 2004 15:01:53 -0700
User-agent: Mozilla Thunderbird 0.8 (X11/20040916)

Dan Jacobson wrote:
> C-x o runs the command other-window
> Perhaps it should beep and warn if there is no other window.


   Emacs is the extensible, customizable, self-documenting real-time
   display editor.

> Otherwise grandpa won't know he just did a useless keystroke.

If you think he should know:

(defadvice other-window (around jidanni-grandpa activate)
  "When called interactively, signal an error if there is no other window."
  (if (and (interactive-p) (eq (next-window) (selected-window)))
      (error "No other window in %s" (selected-frame))

> Hmmm, probably would break some scripts though.

That's what the interactive-p check is for.

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]