From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: should frame names be unique? Date: Fri, 21 Mar 2008 21:12:10 -0400 Message-ID: References: <003d01c88b69$e16c0980$0600a8c0@us.oracle.com> <007001c88b92$1f99ac30$0600a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206148393 2578 80.91.229.12 (22 Mar 2008 01:13:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2008 01:13:13 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 'Damon Permezel' , 'Emacs-Devel' To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 22 02:13:42 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 1JcsIg-0005Nd-KI for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 02:13:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcsI6-0006II-06 for ged-emacs-devel@m.gmane.org; Fri, 21 Mar 2008 21:12:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JcsHS-0005zZ-W7 for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:12:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JcsHR-0005yz-5F for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:12:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcsHP-0005yq-LW for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:12:15 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JcsHP-0002ua-IG for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:12:15 -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 1JcsHP-0007uq-6z for emacs-pretest-bug@gnu.org; Fri, 21 Mar 2008 21:12:15 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JcsHM-0002u8-72 for emacs-pretest-bug@gnu.org; Fri, 21 Mar 2008 21:12:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JcsHL-0002u4-Td; Fri, 21 Mar 2008 21:12:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEADf640dMCrTo/2dsb2JhbACBWqgG X-IronPort-AV: E=Sophos;i="4.25,537,1199682000"; d="scan'208";a="16375089" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 21 Mar 2008 21:12:11 -0400 Original-Received: from pastel.home ([76.10.180.232]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id CEI25011; Fri, 21 Mar 2008 21:12:11 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CF83B7F5D; Fri, 21 Mar 2008 21:12:10 -0400 (EDT) In-Reply-To: <007001c88b92$1f99ac30$0600a8c0@us.oracle.com> (Drew Adams's message of "Fri, 21 Mar 2008 13:28:28 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:93155 gmane.emacs.pretest.bugs:21640 Archived-At: >> Try >> >> (setq frame-title-format >> '(multiple-frames ("F" >> (:eval (number-to-string >> (length (memq > (selected-frame) >> > (frame-list))))) >> " %b") >> ("" invocation-name "@" > system-name))) > This is about commands that interact with user frames. It's > not appropriate to ask users to name their frames in some > particular way. But perhaps I misunderstand you. I was just proposing a way that gives a unique name to each frame. Those people who suffer from the problems you cite may like to use it. I'm not suggesting it as a general solution, which is obvious since I'm not sure what is the problem. >> I'm not opposed to making frame names unique, but first, I'd like to >> hear about the use-cases where it matters. > Think of the Frames menu. If you have multiple frames > showing the same buffer, then you will have multiple > identical entries in the Frames menu. No way to know which > is which, which makes them pretty useless. Yup, pretty useless. So if it hurts, don't do that. >> I.e. what uses of frame-names are we talking about >> (select-frame-by-name? The Frames menu?)? > Yes, both. Though select-frame-by-name apparently removes > duplicates, so AFAICT it doesn't even let you select some of > the frames (a bug?). Not a bug: a fundamental limitation of the command: you can't select by name and at the same time distinguish between two objects that have the same name. > (The example that brought this up was an Icicles > multi-command version of select-frame-by-name.) Yes, but I don't know where it fits: if it just creates different names in the names-list without actually changing the frame names, then the problem is the same as the Frames menu: you can select any frame, but you have no way to know beforehand which name corresponds to which frame (among those that have the same name). >> 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? Stefan