From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Re: Limited #+INCLUDE ? Date: Tue, 27 Apr 2010 12:25:02 +0200 Message-ID: References: <874oj2v2a6.fsf@tandberg.com> <87k4ruy5pd.fsf@mundaneum.com> <87eii26lzg.fsf@stats.ox.ac.uk> <878w89l2pq.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6hyd-0000Xl-Kq for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 06:25:15 -0400 Received: from [140.186.70.92] (port=54031 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6hyY-0000Wa-P9 for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 06:25:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6hyS-0004tc-PA for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 06:25:10 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:38262) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6hyS-0004t8-K2 for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 06:25:04 -0400 Received: by bwz23 with SMTP id 23so12773990bwz.26 for ; Tue, 27 Apr 2010 03:25:02 -0700 (PDT) In-Reply-To: <878w89l2pq.wl%ucecesf@ucl.ac.uk> 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: e.fraga@ucl.ac.uk Cc: Dan Davison , =?ISO-8859-1?Q?S=E9bastien_Vauban?= , emacs-orgmode@gnu.org, Giles Chamberlin This functionality would be really useful. Since it is more directly applicable for programming, then maybe an easier approach to implement it would be just a link to a function in a file. For instance [[file_def:/path/to/file::definition_name][linkname]] Org could rely on the capability of the target major-mode to select the region enclosing the function (c-mark-function for C/C++, py-mark-def-or-class for python, mark-defun for lisp, etc.). This would avoid the necessity of including commenting marks in the code and although it would be limited to a "function body at a time" it would be enough in many situations. Darlan 2010/4/27 Eric S Fraga : > On Mon, 26 Apr 2010 15:40:35 -0400, Dan Davison = wrote: >> I'm considering investigating the following and would appreciate >> comments on this idea. The aim is to make it easier to use Org-mode to >> work pure code files which are *external to Org-mode* (i.e. this >> proposal lies outside of the current org-babel tangling framework). >> >> - Extend Org file links to allow links to a range of lines in a >> =A0 file. The syntax could be >> =A0 [[file:/path/to/file::from::to][linkname]] > > +1 > > I like this idea, especially for exporting complex documents. =A0If > org-store-link were enhanced to generate links with this line > information, I would probably use this a lot. > >> - These links will bring up a buffer visiting the target file, narrowed >> =A0 to the target region. > > Or could be brought up with a wide view but with the region selected? > >> - 'from' and 'to' could be line numbers, or regexps for text search. > > The latter could be quite appealing, although possibly a little > fragile. > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --=20 Darlan Cavalcante Moreira "SDR4all, a new way of teaching telecommunications: http://www.sdr4all.com/