unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Damon Permezel <permezel@mac.com>
Cc: emacs-pretest-bug@gnu.org, Drew Adams <drew.adams@oracle.com>,
	'Emacs-Devel' <emacs-devel@gnu.org>
Subject: Re: should frame names be unique?
Date: Sat, 22 Mar 2008 12:55:05 -0400	[thread overview]
Message-ID: <jwvfxuid85l.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <6FEC95CB-CC0A-4F60-A4FD-D35940E85607@mac.com> (Damon Permezel's message of "Sat, 22 Mar 2008 11:58:05 +1000")

>>>> What is the difference between those frames showing the same buffer
>>>> (is it just to display two different parts of a buffer, if so do the
>>>> various frames play different roles?  Are they on different screens?
>>>> Can you see their names in the title bar? ...)
>> 
>>> I can't answer any of those questions.
>> 
>> So you're not faced with this problem in practice.  It's just
>> a hypothetical issue?

> Here is an example I tend to run into.  I have a large frame where I am
> doing most of my work.  I have popped up two smaller frames to  provide
> reference to different parts of the same file.  I wish to use  the
> buffers>frames> menu to select one of the three frames displaying portions
> of the file.  One, I am editing in, the other two, I have for reference.

So you want to change frame-title-format so that the "same-name-frames"
don't have the same name.  A simple way to do that is the setting
I suggested (which adds "F<nn>" to every frame name).

> Not at all hypothetical,

Your case didn't sound hypothetical indeed.  Drew's does, tho.

> although I am more inclined to use a keyboard
> command, rather than the mouse, so somewhat contrived.

What keyboard command would you use?  One thing you may want to use
is a variant of windmove.el that allows the same kind of movement but
between frames.  But that's typically better provided by the
window-manager than by Emacs.

Basically, frame names in GUIs are currently assumed to be pretty much
"display only", so they don't matter and having them unique or not is of
fairly low importance.

This said, I wouldn't reject a patch that makes them unique, although
I'd rather such a patch to only make them unique on a particular
terminal, since I often access a single Emacs process from different
terminals and would rather have most of my frames suddenly get all named
"foo<2>" just because there's already a "foo" on some other terminal.


        Stefan




  reply	other threads:[~2008-03-22 16:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11  3:41 difficulty creating unique frame names Damon Permezel
2008-03-21 15:40 ` should frame names be unique? [was: difficulty creating unique frame names] Drew Adams
2008-03-21 18:23   ` should frame names be unique? Stefan Monnier
2008-03-21 20:28     ` Drew Adams
2008-03-22  1:12       ` Stefan Monnier
2008-03-22  1:58         ` Damon Permezel
2008-03-22 16:55           ` Stefan Monnier [this message]
2008-03-22 18:12             ` Drew Adams
2008-03-23  0:47               ` Stefan Monnier
2008-03-22  2:34         ` Drew Adams
2008-03-22  9:50           ` Eli Zaretskii
2008-03-22 15:38             ` Drew Adams
2008-03-22 17:29               ` Eli Zaretskii
2008-03-22  1:43       ` Damon Permezel
2008-03-22  9:51         ` Eli Zaretskii

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=jwvfxuid85l.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=permezel@mac.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).