From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale Subject: Re: linking to region Date: Thu, 24 Sep 2009 16:39:13 -0400 Message-ID: <87k4zojcwe.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> References: <87ocp0jl9m.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> <87ljk4hzhy.fsf@gollum.intra.norang.ca> Reply-To: maurizio.vitale@polymath-solutions.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MquyZ-0007e5-Pa for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 16:31:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MquyU-0007YE-Md for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 16:31:38 -0400 Received: from [199.232.76.173] (port=37886 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MquyU-0007Y8-0d for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 16:31:34 -0400 Received: from lo.gmane.org ([80.91.229.12]:43525) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MquyT-0006Li-I4 for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 16:31:33 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MquyP-0007kt-6d for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 22:31:29 +0200 Received: from pool-72-95-148-249.pitbpa.east.verizon.net ([72.95.148.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Sep 2009 22:31:29 +0200 Received: from maurizio.vitale by pool-72-95-148-249.pitbpa.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Sep 2009 22:31:29 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org >>>>> "Bernt" == Bernt Hansen 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