[Top][All Lists]

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

Trying to write an emacs lisp function

From: jkarres
Subject: Trying to write an emacs lisp function
Date: 27 Aug 2006 20:17:44 -0700
User-agent: G2/0.2

I'm trying to write a function such that when you use it, all the
windows on the current frame will be deleted, and for each deleted
window, a new frame will be created, displaying the same buffer that
the just-deleted window had been displaying.  When it is finished
running, the original frame/window should still be on top (/in
focus/active/however you say it).

This is what I have so far:

(defun windows-into-frames ()
  "If the current frame has more than one window,
make each window display in its own
seperate frame."
  (setq original-frame (selected-frame))
  (while (not (one-window-p t))
    (other-window 1)
    (select-frame original-frame)))

Apparently "select-frame" doesn't work quite like I thought.  Can
anybody help me out?


reply via email to

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