unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* header line properties
@ 2003-06-06 14:30 Klaus Zeitler
  2003-06-06 16:07 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Klaus Zeitler @ 2003-06-06 14:30 UTC (permalink / raw)



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.

Any ideas why this doesn't work anymore.

Thanks

Klaus

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
 ------------------------------------------
---
She liked him; he was a man of many qualities,
even if most of them were bad.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header line properties
  2003-06-06 14:30 header line properties Klaus Zeitler
@ 2003-06-06 16:07 ` Stefan Monnier
  2003-06-10  8:18   ` Klaus Zeitler
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2003-06-06 16:07 UTC (permalink / raw)


> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header line properties
  2003-06-06 16:07 ` Stefan Monnier
@ 2003-06-10  8:18   ` Klaus Zeitler
  2003-06-10  9:58     ` Kai Großjohann
  0 siblings, 1 reply; 4+ messages in thread
From: Klaus Zeitler @ 2003-06-10  8:18 UTC (permalink / raw)


>>>>> "Stefan" == Stefan Monnier
>>>>> <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:
    Stefan> 
    Stefan> I think it should work the same in 21.2 and 21.3, but in 21.3.50

21.3.50 is that the officially released 21.3 version?

    Stefan> it was changed for security reasons: the `help-echo' property can
    Stefan> contain arbitrary code, so you need to tell Emacs that
    Stefan> `header-line-string' is a "trusted" variable (i.e. one that can't
    Stefan> be set by "local variables" sections in your files).  Check the
    Stefan> NEWS with C-h n to find out more.

can't find anything there, neither for "security" nor for "trust".
Can you give an example how I make a variable a "trusted" one?

Thanks

Klaus


-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
 ------------------------------------------
---
Napoleon: What shall we do with this soldier, Guiseppe?
          Everything he says is wrong.
Guiseppe: Make him a general, Excellency, and then everything he says
          will be right.          -- G. B. Shaw, "The Man of Destiny"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header line properties
  2003-06-10  8:18   ` Klaus Zeitler
@ 2003-06-10  9:58     ` Kai Großjohann
  0 siblings, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2003-06-10  9:58 UTC (permalink / raw)


Klaus Zeitler <kzeitler+usenet@gsm-mailhost.de.lucent.com> writes:

>>>>>> "Stefan" == Stefan Monnier
>>>>>> <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:
>     Stefan> 
>     Stefan> I think it should work the same in 21.2 and 21.3, but in 21.3.50
>
> 21.3.50 is that the officially released 21.3 version?

No, it is the CVS head.  The development version is usually called
something.50 whereas pretests are something.90, something.91 and so
on.  And official releases don't have that trailing number at all.
So the version 21.3.2 means that you have compiled Emacs 21.3 the
second timem (trailing .2) from the same source tree, whereas
21.3.50.23 means that you have compiled the CVS version 23 times from
the same source tree.

-- 
This line is not blank.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-10  9:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-06 14:30 header line properties Klaus Zeitler
2003-06-06 16:07 ` Stefan Monnier
2003-06-10  8:18   ` Klaus Zeitler
2003-06-10  9:58     ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).