help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: header line properties


From: Stefan Monnier
Subject: Re: header line properties
Date: 06 Jun 2003 12:07:35 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]