Re: [O] A small hack to document programs externally

2014-02-03 Thread Bastien
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: I finally found the time to do it: http://orgmode.org/worg/org-hacks.html#sec-1-10-4 Any criticism is highly welcome! Here is slightly rewritten version : (defun fetchlines (file-path search-string optional end before) Searches

Re: [O] A small hack to document programs externally

2014-02-03 Thread Alan Schmitt
Hi Bastion, Bastien b...@gnu.org writes: The most common error it catches is (goto-char 1) which should be (goto-char (point-min)) -- This way narrowing and other commands that change (point-min) will not interfere. Otherwise this is just using `with-temp-buffer', which fits best here IMO.

Re: [O] A small hack to document programs externally

2014-02-01 Thread Alan Schmitt
Bastien b...@gnu.org writes: Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: I've just written a small hack to refer to code in other files from an org-mode buffer, so that the referred code would be copied in the buffer to be exported when exporting the org buffer. (Our use

Re: [O] A small hack to document programs externally

2014-01-04 Thread Bastien
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: I've just written a small hack to refer to code in other files from an org-mode buffer, so that the referred code would be copied in the buffer to be exported when exporting the org buffer. (Our use case is a large Coq development

Re: [O] A small hack to document programs externally

2014-01-04 Thread Alan Schmitt
Bastien b...@gnu.org writes: Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: I've just written a small hack to refer to code in other files from an org-mode buffer, so that the referred code would be copied in the buffer to be exported when exporting the org buffer. (Our use

[O] A small hack to document programs externally

2013-12-06 Thread Alan Schmitt
Hello, I've just written a small hack to refer to code in other files from an org-mode buffer, so that the referred code would be copied in the buffer to be exported when exporting the org buffer. (Our use case is a large Coq development which we want to document online. Our may constraint is

Re: [O] A small hack to document programs externally

2013-12-06 Thread Suvayu Ali
On Fri, Dec 06, 2013 at 05:26:05PM +0100, Alan Schmitt wrote: Hello, I've just written a small hack to refer to code in other files from an org-mode buffer, so that the referred code would be copied in the buffer to be exported when exporting the org buffer. (Our use case is a large Coq