From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: header line properties Date: 06 Jun 2003 12:07:35 -0400 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5ld6hrfauw.fsf@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054919535 13595 80.91.224.249 (6 Jun 2003 17:12:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2003 17:12:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 19:12:13 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19OKlA-0003Ww-00 for ; Fri, 06 Jun 2003 19:12:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19OKf3-0002y7-16 for gnu-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2003 13:05:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!canoe.uoregon.edu!news.wss.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: rum.cs.yale.edu Original-X-Trace: news.wss.yale.edu 1054915658 10849 128.36.229.169 (6 Jun 2003 16:07:38 GMT) Original-X-Complaints-To: news@news.wss.yale.edu Original-NNTP-Posting-Date: Fri, 6 Jun 2003 16:07:38 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 6 Jun 2003 12:07:35 -0400, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:114229 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10723 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10723 > when I execute the following lines in scratch buffer in emacs 21.2.1: > (setq header-line-string > '(#("Test: " 0 5 (help-echo "hello" face font-lock-builtin-face)))) > (setq show-header-line t) > (setq header-line-format '((show-header-line header-line-string))) > I get a header line containing the string "Test:" in the specified face > and when I move the mouse pointer over this text, emacs will display "hello". > Now I do the same in 21.3. Still I get a header-line with the same text, > but not in the specified face and the help-echo doesn't work either. I think it should work the same in 21.2 and 21.3, but in 21.3.50 it was changed for security reasons: the `help-echo' property can contain arbitrary code, so you need to tell Emacs that `header-line-string' is a "trusted" variable (i.e. one that can't be set by "local variables" sections in your files). Check the NEWS with C-h n to find out more. Stefan