all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Trying to write an emacs lisp function
@ 2006-08-28  3:17 jkarres
  2006-08-28  5:27 ` Ye Wenbin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jkarres @ 2006-08-28  3:17 UTC (permalink / raw)


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."
  (interactive)
  (setq original-frame (selected-frame))
  (while (not (one-window-p t))
    (other-window 1)
    (make-frame)
    (delete-window)
    (select-frame original-frame)))

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

Thanks.

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

end of thread, other threads:[~2006-08-28 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-28  3:17 Trying to write an emacs lisp function jkarres
2006-08-28  5:27 ` Ye Wenbin
2006-08-28  5:40 ` B. T. Raven
2006-08-28  9:58 ` Ehud Karni
     [not found] ` <mailman.5767.1156742845.9609.help-gnu-emacs@gnu.org>
2006-08-28 10:38   ` Pascal Bourguignon
     [not found] ` <mailman.5775.1156759119.9609.help-gnu-emacs@gnu.org>
2006-08-28 16:00   ` jkarres

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.