unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <thorn+news@fastmail.fm>
To: help-gnu-emacs@gnu.org
Subject: Problems extracting a text property
Date: Mon, 23 Jul 2007 10:22:06 +0200	[thread overview]
Message-ID: <87wswrfs29.fsf@baldur.tsdh.de> (raw)

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.

             reply	other threads:[~2007-07-23  8:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-23  8:22 Tassilo Horn [this message]
2007-07-23  9:33 ` Problems extracting a text property 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wswrfs29.fsf@baldur.tsdh.de \
    --to=thorn+news@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).