From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Martin Pool Newsgroups: gmane.emacs.devel Subject: Re: suggested feature -- console-mode frame title sets Xterm title Date: Tue, 14 Oct 2003 18:01:01 +1000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20031014080058.GO15872@vexed.ozlabs.hp.com> References: <20031002063338.GA25969@vexed.ozlabs.hp.com> <20031003010404.GB1259@sourcefrog.net> <20031014035931.GH15872@vexed.ozlabs.hp.com> <20031014071535.GM15872@vexed.ozlabs.hp.com> <20031014074430.GN15872@vexed.ozlabs.hp.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066118540 6722 80.91.224.253 (14 Oct 2003 08:02:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2003 08:02:20 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 14 10:02:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9K8H-0008JG-00 for ; Tue, 14 Oct 2003 10:02:17 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9K8H-0001c9-00 for ; Tue, 14 Oct 2003 10:02:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9K7w-0000B0-T7 for emacs-devel@quimby.gnus.org; Tue, 14 Oct 2003 04:01:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9K7j-000094-Pw for emacs-devel@gnu.org; Tue, 14 Oct 2003 04:01:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9K7D-0008J8-PZ for emacs-devel@gnu.org; Tue, 14 Oct 2003 04:01:42 -0400 Original-Received: from [192.6.86.210] (helo=sngrel5.hp.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9K7B-0008Ie-1c; Tue, 14 Oct 2003 04:01:11 -0400 Original-Received: from XAUBRG2.AUS.HP.COM (xaubrg2.aus.hp.com [15.23.69.43]) by sngrel5.hp.com (Postfix) with SMTP id 7B92A36C; Tue, 14 Oct 2003 16:01:06 +0800 (SGP) Original-Received: from 15.23.69.43 by XAUBRG2.AUS.HP.COM (InterScan E-Mail VirusWall NT); Tue, 14 Oct 2003 18:01:05 +1000 Original-Received: from XAUBRG2.AUS.HP.COM (localhost [127.0.0.1]) by XAUBRG2.AUS.HP.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id TTGL4QMY; Tue, 14 Oct 2003 18:01:05 +1000 Original-Received: from 16.176.65.49 by XAUBRG2.AUS.HP.COM (InterScan E-Mail VirusWall NT); Tue, 14 Oct 2003 18:01:05 +1000 Original-Received: from mbp by vexed with local (Exim 3.36 #1 (Debian)) id 1A9K73-0004UD-00; Tue, 14 Oct 2003 18:01:01 +1000 Original-To: Miles Bader Content-Disposition: inline In-Reply-To: X-GPG: 1024D/A0B3E88B: AFAC578F 1841EE6B FD95E143 3C63CA3F A0B3E88B User-Agent: Mutt/1.5.4i X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17083 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17083 On 14 Oct 2003, Miles Bader wrote: > Martin Pool writes: > > The problem is in the next paragraph: > > > > `FN' is actually the frame's name. You can also specify a > > different name if you wish, and you can select a frame by its > > name. Use the command `M-x set-frame-name NAME ' to > > specify a new name for the selected frame, and use `M-x > > select-frame-by-name NAME ' to select a frame according > > to its name. The name you specify appears in the mode line when > > the frame is selected. > > > > 'F%d' would no longer be the frame's name. > > What about just changing `select-frame-by-name' to first check the given > name against a list of `real names', and then if none match, to see if it's > of the form F%d, and if so select a frame by number. > > I get the feeling that almost nobody would use the current meaning except > in interactive use (as a handy way to skip directly to a given frame), so > the above workaround would satisfy most people that use that feature. > > Adding `select-frame-by-index' might be useful too, but I think the main > concern here is existing users that are used to using select-frame-by-name. > The above sort of compatibility hack might serve as a gentle introduction > to using meaningful names for frames (it even usually picks good > defaults)... :-) That sounds good to me. Let's see what people who the feature say. -- Martin