unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Problems extracting a text property
Date: Mon, 23 Jul 2007 16:13:10 -0400	[thread overview]
Message-ID: <jwvk5sqricg.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 87wswrfs29.fsf@baldur.tsdh.de

> 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 code activated by mouse-2 does not use the text-properties, but the
buffer's text instead.  So take a look at the text covered by those
properties (and beware that some part of it may be invisible).


        Stefan

  parent reply	other threads:[~2007-07-23 20:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=jwvk5sqricg.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).