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 17:44:34 +1000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20031014074430.GN15872@vexed.ozlabs.hp.com> References: <20030929051617.GB7359@vexed.ozlabs.hp.com> <20031002063338.GA25969@vexed.ozlabs.hp.com> <20031003010404.GB1259@sourcefrog.net> <20031014035931.GH15872@vexed.ozlabs.hp.com> <20031014071535.GM15872@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 1066117702 5272 80.91.224.253 (14 Oct 2003 07:48:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2003 07:48:22 +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 09:48:20 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 1A9Jum-0007et-00 for ; Tue, 14 Oct 2003 09:48:20 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9Jum-0001YS-00 for ; Tue, 14 Oct 2003 09:48:20 +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 1A9JuC-0001Wp-0o for emacs-devel@quimby.gnus.org; Tue, 14 Oct 2003 03:47:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9JsH-0000Qo-Qn for emacs-devel@gnu.org; Tue, 14 Oct 2003 03:45:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9JrP-0008VU-Jx for emacs-devel@gnu.org; Tue, 14 Oct 2003 03:45:22 -0400 Original-Received: from [192.6.86.210] (helo=sngrel5.hp.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9JrM-0008S1-KD; Tue, 14 Oct 2003 03:44:48 -0400 Original-Received: from XAUBRG2.AUS.HP.COM (xaubrg2.aus.hp.com [15.23.69.43]) by sngrel5.hp.com (Postfix) with SMTP id C8330421; Tue, 14 Oct 2003 15:44:38 +0800 (SGP) Original-Received: from 15.23.69.43 by XAUBRG2.AUS.HP.COM (InterScan E-Mail VirusWall NT); Tue, 14 Oct 2003 17:44:37 +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 TTGL4QDK; Tue, 14 Oct 2003 17:44:37 +1000 Original-Received: from 16.176.65.49 by XAUBRG2.AUS.HP.COM (InterScan E-Mail VirusWall NT); Tue, 14 Oct 2003 17:44:37 +1000 Original-Received: from mbp by vexed with local (Exim 3.36 #1 (Debian)) id 1A9Jr8-0004Tf-00; Tue, 14 Oct 2003 17:44:34 +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:17081 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17081 On 14 Oct 2003, Miles Bader wrote: > Martin Pool writes: > > Some people like to have information in the title bar that won't fit > > in their modeline. > > I'm confused -- is there actually any question that this is a useful > feature? That was what I thought Eli was asking. Maybe I misunderstood his question. > I'm constantly annoyed by `full screen' programs in terminal > emulators that _don't_ update the titlebar; it's a very useful feature, > above and beyond the mode-line. That's how I feel. > > > How about if we have an option that would cause Emacs to either use > > > the F names (default) or the new names you implemented. If it > > > uses F, that name will be displayed on the mode line, as today; > > > otherwise, the name will be displayed in the xterm's title and be > > > removed from the mode line. > > > > OK. > > > > Should this be a separate variable, or just controlled by > > tty-frame-use-title? Should it be on by default? > > That seems silly; why not just do _both_? The `Fn' notation doesn't > take up much room in the mode-line, and is simply _different_ > information that the actual title. They're both handy. So why not > introduce the concept of a `frame index' and display F%d of that in the > mode-line on terminals (hell some people might want to display it in X > too -- it's just a generally handy concept, given that the emacs frame > commands tend to cycle through frames in order). [I _think_ this is > the last possibility you suggested in your original post] Yes, that's what I was getting at. For the sake of discussion let's use the term 'frame index'. This even makes sense in terms of the 21.3 manual, which half implies that this already exists: Each frame has a number to distinguish it. If your terminal can display only one frame at a time, the selected frame's number N appears near the beginning of the mode line, in the form `FN'. 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. Suppose we added a select-frame-by-index function? People would still be able to select-frame-by-name, but the names they use would be those produced by frame-title-format or set-frame-name, and never F%d. Doing this would remove the ugliness of hiding mode-line-frame-identification on window-system frames. You could even put the frame index into the frame-title. -- Martin