unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Damon Permezel <permezel@mac.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-pretest-bug@gnu.org,
	'Stefan Monnier' <monnier@iro.umontreal.ca>,
	'Emacs-Devel' <emacs-devel@gnu.org>
Subject: Re: should frame names be unique?
Date: Sat, 22 Mar 2008 11:43:29 +1000	[thread overview]
Message-ID: <568EBBC2-0676-4140-8404-E1B50B688911@mac.com> (raw)
In-Reply-To: <007001c88b92$1f99ac30$0600a8c0@us.oracle.com>

Certain emacs commands (menu-bar buffer frames, for example) did not
work well with the default frame naming mechanism.  Attempts to use
the frame naming mechanism to address this, whilst keeping the "%b"
feature, did not work.  I believe that this problem has been
addressed, altough I have not had occasion to confirm this.

Whether the default frame naming mechanism results in unique names is
another issue.

I do believe that any command that produces a list of frames must
assign unique identifiers to the frames so that when a user selects a
frame to be acted upon, using a name so presented, precisely the frame
the user intends is the target of the command.

Should emacs itself enforce unique frame names?  I am not sure,
however, the default behavior could be changed so that frame names do
default to unique, user-friendly ones.

Frame names can be (are currently) dynamic.  Default xdisp.c platforms
have "%b" which is dynamic, and can result in duplicate name confusion.

What I desired was to be able to enforce a static portion, unique for
each frame, plus a dynamic portion, and with the fix I believe to be
in emacs 23, I believe I have that, although it takes me more work.

It might be sufficient for most users to have the default
frame-title-format, which is currently, on many platforms, "%b" when
multiple frames are present, be something else, such as "%@ %b" where
"%@" (select something more appropriate than @) will be expanded to
some user-friendly, static and unique frame identifier.

(multiple-frames "%@ - %b" ("" invocation-name "@" system-name))

where %@ expands into the static frame unique portion of the name, and  
"%b"
the dynamic (in this example).

Simply add the '%@' expansion and change the icon-title-format string  
in xdisp.c.

Have not looked at any non-xdisp.c platforms.

Cheers,
Damon Permezel
permezel@mac.com

-----
"Those who preserve integrity remain unshaken by the storms of daily  
life ." -- Eliot Spitzer




  parent reply	other threads:[~2008-03-22  1:43 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
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 [this message]
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=568EBBC2-0676-4140-8404-E1B50B688911@mac.com \
    --to=permezel@mac.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).