From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Child Frame naming standard.
Date: Mon, 27 Feb 2006 09:08:00 -0700 [thread overview]
Message-ID: <dtv867$pjd$1@sea.gmane.org> (raw)
In-Reply-To: <uzmkhpa3w.fsf@rcn.com>
Galen Boyer wrote:
> Is there a way that if a child frame were created, C-x 5 0, and
> subsequently M-x set-frame-name, that the name I give it could be
> concatenated with the parental frame, at all times?
>
> Parent frame name = "ProjectX"
> Child frame rename = "Branch"
> Actual Child frame name after rename = "ProjectX [Branch]"
As far as I know, Emacs does not keep track of which frame was selected
(the parent) when a new frame is created (the child). But you should be
able to do that explicitly:
(add-hook 'after-make-frame-functions
(lambda (frame)
(modify-frame-parameters frame
`((parent-frame .
,(selected-frame))))))
(defadvice set-frame-name (before interactive activate)
"When called interactively, provide the parent frame's name as the
initial input."
(interactive (list (read-string "Frame name: "
(concat (frame-parameter
(frame-parameter
(selected-frame)
'parent-frame)
'name)
" ")))))
--
Kevin Rodgers
next prev parent reply other threads:[~2006-02-27 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-24 2:58 Child Frame naming standard Galen Boyer
2006-02-27 16:08 ` Kevin Rodgers [this message]
[not found] ` <mailman.35.1141056862.18076.help-gnu-emacs@gnu.org>
2006-02-28 0:45 ` Galen Boyer
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='dtv867$pjd$1@sea.gmane.org' \
--to=ihs_4664@yahoo.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).