From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miguel Guedes Newsgroups: gmane.emacs.help Subject: Re: Apply faces to string output to mini-buffer Date: 24 May 2013 06:30:32 GMT Message-ID: <519f0907$0$36255$862e30e2@ngroups.net> References: <519df490$0$33340$862e30e2@ngroups.net> <519efa33$0$32272$862e30e2@ngroups.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1369377954 25001 80.91.229.3 (24 May 2013 06:45:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 06:45:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 24 08:45:55 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 1Uflku-0000Rd-C4 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 08:45:36 +0200 Original-Received: from localhost ([::1]:52022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uflkt-0001XC-FI for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 02:45:35 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!hitnews.eu!news-out.readnews.com!s09-01.readnews.com!not-for-mail Original-X-Trace: DXC=WWNMXYdUC6:\DL47?>n1H2G^cGF?V7mI4]G0e@Sk_WT2\KSWKcAGbb4RPeLgEYG\<3BVOE4Chkm=8BXXXWM[BEj9PSnE?_G8Je?gBL<2e9`eb> Original-X-Complaints-To: abuse@blocknews.net Original-Newsgroups: gnu.emacs.help User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Original-Lines: 24 Original-NNTP-Posting-Host: 25eb94bb.ngroups.net Original-Xref: usenet.stanford.edu gnu.emacs.help:198748 X-Mailman-Approved-At: Fri, 24 May 2013 02:44:58 -0400 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:91016 Archived-At: On Fri, 24 May 2013 05:27:15 +0000, Miguel Guedes wrote: For instance, the following doesn't work: Eval: (message "%s" (propertize "foo" 'face 'font-lock-variable-name-face)) Echoes: #("foo" 0 3 (face font-lock-variable-name-face)) Eval: (message "%s" (propertize "foo" 'face '(:foreground "red"))) Echoes: #("foo" 0 3 (face (:foreground "red"))) Also, eldoc seems to also make use of `message' to output propertized strings (eldoc.el:206:0) so it (seems it) can be used for this purpose. Question is what's wrong with my approach above? -- Miguel