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: Thu, 16 Oct 2003 18:35:09 +1000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20031016083506.GC20302@vexed.ozlabs.hp.com> References: <20031002063338.GA25969@vexed.ozlabs.hp.com> <20031003010404.GB1259@sourcefrog.net> <20031014035931.GH15872@vexed.ozlabs.hp.com> <20031015024709.GC18244@vexed.ozlabs.hp.com> <9743-Thu16Oct2003093207+0200-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066293636 23153 80.91.224.253 (16 Oct 2003 08:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 08:40:36 +0000 (UTC) Cc: Eli Zaretskii , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Oct 16 10:40:28 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 1AA3gK-0001WS-00 for ; Thu, 16 Oct 2003 10:40:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AA3gJ-00054k-00 for ; Thu, 16 Oct 2003 10:40:28 +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 1AA3ch-0000tt-0H for emacs-devel@quimby.gnus.org; Thu, 16 Oct 2003 04:36:43 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AA3cC-0000te-9f for emacs-devel@gnu.org; Thu, 16 Oct 2003 04:36:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AA3bg-0000nP-Dn for emacs-devel@gnu.org; Thu, 16 Oct 2003 04:36:11 -0400 Original-Received: from [192.6.86.210] (helo=sngrel5.hp.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA3bf-0000mW-Hf; Thu, 16 Oct 2003 04:35:40 -0400 Original-Received: from XAUBRG2.AUS.HP.COM (xaubrg2.aus.hp.com [15.23.69.43]) by sngrel5.hp.com (Postfix) with SMTP id 8E8B8424; Thu, 16 Oct 2003 16:35:17 +0800 (SGP) Original-Received: from 15.23.69.43 by XAUBRG2.AUS.HP.COM (InterScan E-Mail VirusWall NT); Thu, 16 Oct 2003 18:35:16 +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 TTGLWCV8; Thu, 16 Oct 2003 18:35:16 +1000 Original-Received: from 16.176.65.49 by XAUBRG2.AUS.HP.COM (InterScan E-Mail VirusWall NT); Thu, 16 Oct 2003 18:35:16 +1000 Original-Received: from mbp by vexed with local (Exim 3.36 #1 (Debian)) id 1AA3bB-0005Va-00; Thu, 16 Oct 2003 18:35:09 +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:17138 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17138 On 16 Oct 2003, Miles Bader wrote: > "Eli Zaretskii" writes: > > However, while redesigning, please keep in mind that select-frame-by-name > > is used on tty's (by users who set up several frames on tty's) much more > > than it is on windowed displays. So the new implementation of > > select-frame-by-name should be inobtrusive enough on tty's. > > That's been part of the discussion all along, so I don't think there's > much danger of the issue being ignored; I think the changes that Martin > proposed would do the right thing. The main thing giving me trouble at the moment is: what should set-frame-name do? The obvious thing would be to make it set the name (f->name). It's documented only in the context of replacing F%d with something more meaningful. However, on X frames it has the user-visible behaviour of setting the title, although inside emacs it is really setting f->name. Once you have done this, the format produced by frame-title-format is no longer seen. I wonder if any users count on this? I can't think of any consistent way to resolve it, so I propose that we make set-frame-name simply set the name, and we let people set the title using the existing mechanisms (frame-title-format, etc). People who wish to assign nicknames to their frames can put that in the frame name, and then include the name in the title format. We could also add a set-frame-title to set an explicit title overriding that produced by -format, but that might be an unnecessary redundancy. This behaviour will be the same on tty and graphical frames, which should be good for everyone. -- Martin