From: jkarres@gmail.com
Subject: Re: Trying to write an emacs lisp function
Date: 28 Aug 2006 09:00:14 -0700 [thread overview]
Message-ID: <1156780814.206321.51750@75g2000cwc.googlegroups.com> (raw)
In-Reply-To: <mailman.5775.1156759119.9609.help-gnu-emacs@gnu.org>
Ehud Karni wrote:
> On 27 Aug 2006 20:17:44 -0700, jkarres@gmail.com wrote:
> >
> > 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?
>
> Look at `raise-frame', I think that is the function your looking for.
>
> Ehud.
>
>
> --
> Ehud Karni Tel: +972-3-7966-561 /"\
> Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
> Insurance agencies (USA) voice mail and X Against HTML Mail
> http://www.mvs.co.il FAX: 1-815-5509341 / \
> GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry
Yes, that solved it! Thanks!
prev parent reply other threads:[~2006-08-28 16:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1156780814.206321.51750@75g2000cwc.googlegroups.com \
--to=jkarres@gmail.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.
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).