unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problems extracting a text property
@ 2007-07-23  8:22 Tassilo Horn
  2007-07-23  9:33 ` Tassilo Horn
  2007-07-23 20:13 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Tassilo Horn @ 2007-07-23  8:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

on a link in an info buffer the text has properies like these:

,----
| (font-lock-face info-xref mouse-face highlight
|  help-echo mouse-2: go to (libc)Special Functions)
| (font-lock-face info-xref mouse-face highlight
|  help-echo mouse-2: go to (libext2fs.info))
| (font-lock-face info-xref mouse-face highlight
|  help-echo mouse-2: go to (libidn)Invoking idn)
| (font-lock-face info-xref mouse-face highlight
|  help-echo mouse-2: go to (nano))
| (font-lock-face info-xref mouse-face highlight
|  help-echo mouse-2: go to (recode))
`----

Now I'd like to extract the link locations, e.g. "(libc)Special
Functions". But how?

The other properties can be examined with

    (get-text-property (point) 'font-lock-face)

but I cannot get the target.

I tried

    (get-text-property (point) 'mouse-2)
    (get-text-property (point) 'mouse-2:)
    (get-text-property (point) "mouse-2: go to")
    (get-text-property (point) 'to)

but they all return nil.

Much thanks in advance,
Tassilo
-- 
People say that  if you play Microsoft CD's  backwards, you hear satanic
things,  but that's  nothing, because  if you  play them  forwards, they
install Windows.

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

end of thread, other threads:[~2007-07-24  7:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23  8:22 Problems extracting a text property Tassilo Horn
2007-07-23  9:33 ` Tassilo Horn
2007-07-23 10:44   ` Harald Hanche-Olsen
2007-07-23 10:46     ` Harald Hanche-Olsen
2007-07-23 11:28     ` Tassilo Horn
2007-07-23 20:13 ` Stefan Monnier
2007-07-24  7:23   ` Tassilo Horn

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).