From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: suggested feature -- console-mode frame title sets Xterm title Date: Thu, 16 Oct 2003 10:06:49 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20031002063338.GA25969@vexed.ozlabs.hp.com> <20031003010404.GB1259@sourcefrog.net> <20031014035931.GH15872@vexed.ozlabs.hp.com> <20031015063555.GG18244@vexed.ozlabs.hp.com> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066313632 30464 80.91.224.253 (16 Oct 2003 14:13:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 14:13:52 +0000 (UTC) Cc: eliz@elta.co.il, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Oct 16 16:13:50 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 1AA8sw-00030V-00 for ; Thu, 16 Oct 2003 16:13:50 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AA8sv-0006KT-00 for ; Thu, 16 Oct 2003 16:13:50 +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 1AA8sp-0002a2-0y for emacs-devel@quimby.gnus.org; Thu, 16 Oct 2003 10:13:43 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AA8qn-0001r4-Cu for emacs-devel@gnu.org; Thu, 16 Oct 2003 10:11:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AA8pe-0001UF-NW for emacs-devel@gnu.org; Thu, 16 Oct 2003 10:10:57 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA8pc-0001TS-Ua for emacs-devel@gnu.org; Thu, 16 Oct 2003 10:10:24 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AA8m9-0003lA-Bv; Thu, 16 Oct 2003 10:06:49 -0400 Original-To: Martin Pool In-reply-to: <20031015063555.GG18244@vexed.ozlabs.hp.com> (message from Martin Pool on Wed, 15 Oct 2003 16:36:00 +1000) 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:17149 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17149 Here is how I think it should work on the inside: f->name holds the frame's name, which is initially F%d and can be set by set-frame-name f->title holds the title generated by frame-title-format, except it holds the "explicit title" if one is set. f->title is always used for the window title on X or (where possible and desired) on ttys. f->name is used for the '%F' format in mode-line-frame-identification. If you want, you can even put '%F' in frame-title-format to include the frame name. It sounds good to me. Perhaps it will be necessary to have a separate field for the explicit title (or nil if none). Don't hesitate to add one. We have a choice of either making select-frame-by-name look only at f->name (as it does on tty frames at the moment), or having it also look at titles as Miles suggested. I think looking only at the name is cleaner and simpler, and on X people probably won't care anyway. If we choose the first, we could add select-frame-by-title. I wouldn't bother, since I doubt many people will really want to do that.