From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Frame symbol in the mode line on a windowing system Date: Sat, 21 Jul 2007 22:04:44 +0300 Message-ID: References: <87d4ylk4p3.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1185044753 21617 80.91.229.12 (21 Jul 2007 19:05:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2007 19:05:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 21:05:50 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ICKGI-0001vr-Iv for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jul 2007 21:05:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICKGI-0005Eh-4U for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jul 2007 15:05:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICKG3-0005ES-O4 for help-gnu-emacs@gnu.org; Sat, 21 Jul 2007 15:04:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICKFz-00057H-2w for help-gnu-emacs@gnu.org; Sat, 21 Jul 2007 15:04:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICKFy-000575-RI for help-gnu-emacs@gnu.org; Sat, 21 Jul 2007 15:04:46 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ICKFy-00020A-9j for help-gnu-emacs@gnu.org; Sat, 21 Jul 2007 15:04:46 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-15-42.inter.net.il [80.230.15.42]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id IKU29578 (AUTH halo1); Sat, 21 Jul 2007 22:04:41 +0300 (IDT) In-reply-to: <87d4ylk4p3.fsf@debby.local.net> (message from Dieter Wilhelm on Sat, 21 Jul 2007 20:11:04 +0200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45867 Archived-At: > From: Dieter Wilhelm > Date: Sat, 21 Jul 2007 20:11:04 +0200 > > Does anybody have code to display Frame names or numbers or symbols in > the mode line on an (X-)Window system? I do not see on which frame > I'm working when in fullscreen mode and in terminal mode there are > hints F1, F2, etc. F1, F2, etc. are _not_ hints, they are actual names of the frames on a tty. You can change that with the set-frame-name commands (and later switch to a frame with a specific name with select-frame-by-name). I think %F is what you want -- it's replaced with the frame name. Emacs uses the variable mode-line-frame-identification for it, which is computed differently on X and on a tty.