From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Damon Permezel Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: should frame names be unique? Date: Sat, 22 Mar 2008 11:43:29 +1000 Message-ID: <568EBBC2-0676-4140-8404-E1B50B688911@mac.com> References: <003d01c88b69$e16c0980$0600a8c0@us.oracle.com> <007001c88b92$1f99ac30$0600a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206154069 15883 80.91.229.12 (22 Mar 2008 02:47:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2008 02:47:49 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 'Stefan Monnier' , 'Emacs-Devel' To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 22 03:48:19 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JctmG-0003aS-Hq for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 03:48:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JctlO-0005H2-HM for ged-emacs-devel@m.gmane.org; Fri, 21 Mar 2008 22:47:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jcslz-0008GV-LJ for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:43:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jcsly-0008Ez-BV for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:43:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jcsly-0008Ep-0r for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:43:50 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jcslx-0001pH-Sr for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:43:49 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jcslw-0000J5-A7 for emacs-pretest-bug@gnu.org; Fri, 21 Mar 2008 21:43:48 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jcslt-0001oZ-Ex for emacs-pretest-bug@gnu.org; Fri, 21 Mar 2008 21:43:48 -0400 Original-Received: from smtpoutm.mac.com ([17.148.16.77]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jcslt-0001nr-1R; Fri, 21 Mar 2008 21:43:45 -0400 Original-Received: from mac.com (asmtp002-s [10.150.69.65]) by smtpoutm.mac.com (Xserve/smtpout014/MantshX 4.0) with ESMTP id m2M1hfuq015644; Fri, 21 Mar 2008 18:43:41 -0700 (PDT) Original-Received: from [192.168.1.40] (60-240-83-144.static.tpgi.com.au [60.240.83.144]) (authenticated bits=0) by mac.com (Xserve/asmtp002/MantshX 4.0) with ESMTP id m2M1haXh023207 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 21 Mar 2008 18:43:38 -0700 (PDT) In-Reply-To: <007001c88b92$1f99ac30$0600a8c0@us.oracle.com> X-Mailer: Apple Mail (2.919.2) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 21 Mar 2008 22:47:14 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93165 gmane.emacs.pretest.bugs:21645 Archived-At: 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