From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.bugs Subject: [Q] text property on mode-line string Date: Wed, 10 Mar 2004 08:18:24 +0900 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <61c77e89-0554-4935-b353-31998e172882@well-done.deisui.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1079155015 24994 80.91.224.253 (13 Mar 2004 05:16:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2004 05:16:55 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 13 06:16:48 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B21Vw-0000fl-00 for ; Sat, 13 Mar 2004 06:16:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1WYJ-0000UJ-8X for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 15:13:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0qlT-0000Lj-8A for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2004 18:35:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0qja-0008SX-P1 for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2004 18:34:34 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B0qgs-000855-MS for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2004 18:31:14 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B0qgn-0000Y7-00 for ; Wed, 10 Mar 2004 00:31:09 +0100 Original-Received: from g96069.scn-net.ne.jp ([210.231.96.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Mar 2004 00:31:09 +0100 Original-Received: from ueno by g96069.scn-net.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Mar 2004 00:31:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: g96069.scn-net.ne.jp X-Attribution: DU X-Now-Playing: The Gathering's _Sleepy Buildings_: "Red Is a Slow Colour" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEUdAwU0FBgUCAxdODxB HCAqAAGciossDRMLBgjzSHw9AAACVElEQVR4nJWUwW7bMAyGvQxDe6zjbN4xYQJY14WCkuNkaU7v W9Zz60zdMXaMKcdMKxA99ijb6douh42wBVgfSP4iKUcyPmtJ9HZ91j7/E3jTvy/BV7Fef/n2F/gh jCnLEjflC0D79AR7BpK1KM8CUbYe5eYP2MM4igbCdKFuCRwGDNjriHl/ZF6Yog0TgA/2qwXgHUzv WFbXLJs8AX7ovXu39BB2Hm4fgfu4Am9pN/MeIFDWgcNODlw1gFQzZwGYPw6hBUPUN9NbmG2K+8za ix3LRnkLFJfb2aKeKGEmsdYcmWNdcjuOKj1sDJ/rkeYqqaED7qJp0kYqU3KN9Mz01YC1Hs7uX+m4 KtBIpRVyXG074LM8G414gRh2w3LVH9BPxqOGz9AgUjCFOu2AgzqTpAkFBg+in07ATigpGacc5LGw fQ4qRNbotEJZEVEo7WWfw8fe1T6TeXMVK65X0HscnVkGcanC64PWOo16VUlhyhBxh5h7OtL2sgeN MmZJJdB6W7ODjfuSUAZOTWXOpUlOXy5ipw5myM0dI9XqQ6el7yBUKIp7BkCzNX8CdmVDZ7v2ThAw 184533bQraxCYbQ/0PAa8/1o4X2X/AgK0Sj2s52sDVT1KUdkFUfuMxE8DK/sCViwbDr3GTccCWTx vpcLjkZx711RUkjM29Hqy+5dkFhQ7UslWSd3BLXikC/lA0xD/6r6BCZUU5gveGKnC1A2GkQd0JqG QIR2UwNjKVenyxnLort9QWpYHm9t6GWC7RiMtNTqEdjY3txUtFbVf/8yngM8b+I3g3ptPFqiMWIA AAAASUVORK5CYII= User-Agent: T-gnus/6.17.2 (based on No Gnus v0.2) SEMI/1.14.6 (Maruoka) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 14) (Reasonable Discussion) (i686-pc-linux) Cancel-Lock: sha1:pOzafpi8jJtZPUz1Evgbepgk1fQ= X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7256 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7256 (Sorry for this report not being sent using M-x report-emacs-bug. I haven't finished configuring email environment for GNU Emacs.) I have a question about text property on mode-line string. Since I wanted to decorate a part of mode-line I simply set 'face property for a string and placed the string at the beginning of mode-line-format: (setq test-face (make-face 'test-face)) (set-face-foreground 'test-face "red") (push (propertize "ABC" 'face 'test-face) mode-line-format) Of course it works. i.e. red "ABC" shows up on the left side of mode-line. Next, I tried to use a symbol reference to the propertized string: (setq mode-line-format (nconc (list "" 'abc) mode-line-format)) And: (setq abc (propertize "ABC" 'face 'test-face)) It also works as expected. Finally, I tried to use a list as the value of abc: (setq abc (list (propertize "ABC" 'face 'test-face))) It doesn't bring the same effect as above 2 cases. i.e. "ABC" is not displayed in red (on my environment, it displayed in black). Oddly enough, when I removed the 'face property from the first character ("A"), only "BC" is displayed in red: (remove-text-properties 0 1 '(face) (car abc)) Is this a bug? I'm using Emacs 21.3. Regards, -- Daiki Ueno