emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Maurizio Vitale <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me>
To: emacs-orgmode@gnu.org
Subject: Re: linking to region
Date: Thu, 24 Sep 2009 16:39:13 -0400	[thread overview]
Message-ID: <87k4zojcwe.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: 87ljk4hzhy.fsf@gollum.intra.norang.ca

>>>>> "Bernt" == Bernt Hansen <bernt@norang.ca> writes:

    >> Is it possible to grab a link to a region in a file in such a way
    >> that C-c C-o visit the file after narrowing-to-region?
    >> 
    >> The reason I'd like this is that I'm starting using org-mode for
    >> requirement tracking and when referencing a standard I'd find
    >> preferable to open only the relevant fragment rather than the
    >> complete document.

    Bernt> I don't think that's currently possible without writing a
    Bernt> little lisp code.  There is an org-follow-link-hook but it
    Bernt> doesn't seem to be executed for all link types - only browser
    Bernt> urls if I'm reading the code correctly.

But the region should be encoded in the link, as there no way to figure
out what is the extent of the interesting area automatically.

Regarding org-follow-link-hook, I'm not familiar with org-mode code, but
it seems to me that is invoked for all URL types, but only after the
'viewing' has happened. I may well be wrong.

Thanks for the suggestion.
Regards, 

         Maurizio

  reply	other threads:[~2009-09-24 20:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24 17:38 linking to region Maurizio Vitale
2009-09-24 20:14 ` Bernt Hansen
2009-09-24 20:39   ` Maurizio Vitale [this message]
2009-09-24 20:44     ` Bernt Hansen
2009-09-24 20:52       ` Carsten Dominik

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87k4zojcwe.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mav@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --cc=emacs-orgmode@gnu.org \
    --cc=maurizio.vitale@polymath-solutions.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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