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: Font in mode line Date: Wed, 27 Nov 2013 05:45:26 +0200 Message-ID: <83fvqia4o9.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385523934 26500 80.91.229.3 (27 Nov 2013 03:45:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2013 03:45:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 27 04:45:39 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VlW4I-0006TX-3U for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Nov 2013 04:45:38 +0100 Original-Received: from localhost ([::1]:33739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlW4H-0007j0-Le for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 22:45:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlW3w-0007hy-QD for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 22:45:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlW3q-00043v-Iu for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 22:45:16 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:45056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlW3q-00043h-Ar for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 22:45:10 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MWW00C00KYN3I00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Wed, 27 Nov 2013 05:45:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWW00B7BL38V580@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Wed, 27 Nov 2013 05:45:08 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94666 Archived-At: > Date: Tue, 26 Nov 2013 22:22:59 +0100 > From: Francesco Mazzoli > > > C-x b *scratch* RET > > M-x font-lock-mode RET > > Now type this: > > > > (insert (format-mode-line mode-line-format)) > > > > and press C-j at the rightmost closing parenthesis. > > > > > If I format `mode- line-format' there doesn't seem to be an obvious > > > way to infer the faces that are used to render the various elements. > > > > Go to one of the problematic characters and type "C-u C-x =". Emacs > > will then show the font it used to display that character. > > Thanks, the part I was missing is `insert'. > > However, this doen't seem to work. Whatever my mode line looks like, > the inserted text always look plain (font lock is on). ^^^^^^^^^^^^^^^ That's why I said to type "M-x font-lock-mode RET" -- this turns OFF font lock. If you don't do that, font-lock removes the font text properties from the inserted text, and you don't see them. Please don't skip anything in those steps, they are all important.