From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: Frame symbol in the mode line on a windowing system Date: Wed, 25 Jul 2007 02:34:43 +0200 Organization: The Church of Emacs Message-ID: <87fy3dnwws.fsf@debby.local.net> References: <87d4ylk4p3.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1185323662 15682 80.91.229.12 (25 Jul 2007 00:34:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2007 00:34:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 25 02:34:19 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 1IDUpT-0000I8-9N for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jul 2007 02:34:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDUpS-0002BQ-S3 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jul 2007 20:34:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDUpE-0002BL-S1 for help-gnu-emacs@gnu.org; Tue, 24 Jul 2007 20:34:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDUpD-0002B9-ER for help-gnu-emacs@gnu.org; Tue, 24 Jul 2007 20:34:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDUpD-0002B6-97 for help-gnu-emacs@gnu.org; Tue, 24 Jul 2007 20:33:59 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDUpB-0003J0-N5; Tue, 24 Jul 2007 20:33:58 -0400 Original-Received: from [89.12.124.131] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis), id 0ML31I-1IDUpA2Ztc-0003cb; Wed, 25 Jul 2007 02:33:56 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.63) (envelope-from ) id 1IDUpv-0002Hh-Dx; Wed, 25 Jul 2007 02:34:43 +0200 In-Reply-To: (Eli Zaretskii's message of "Sat\, 21 Jul 2007 22\:04\:44 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Provags-ID: V01U2FsdGVkX18GtMmH1eyS5P6siMe6dvMYHdklRvI+bXqkWqf BjB8CltA7wfYwqEZNFi5oQjID9iZhBYshNzhO6azEZIc1vRzb6 WYMQVyCI8B9GcHYpnwrCGImzaSuOWgf X-detected-kernel: Linux 2.6? (barebone, rare!) 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:46015 Archived-At: Eli Zaretskii writes: >> From: Dieter Wilhelm >> Date: Sat, 21 Jul 2007 20:11:04 +0200 >>=20 >> 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. Hi Eli Thanks again for the hint. It might be helpful when (info-other-window "(elisp)%-Constructs")=20 would mention that the %-constructs are not always working when used in a string like this (setq mode-line-frame-identification "-%F ") ; this is here not working but rather in a list (setq mode-line-frame-identification '("-%F ")) I found it finally documented for the variable mode-line-format. For somebody using them for the first time its not immediately obvious. Just my two =E2=82=ACCents. Dieter --=20 Best wishes H. Dieter Wilhelm Darmstadt, Germany