Re: [O] [babel] Commenting out src blocks for tangling

2013-10-18 Thread Alan Schmitt
schulte.e...@gmail.com writes: >> I just tried it with my init file and it did not work. Here is a >> minimal example. Save this as "test.org": >> >> --8<---cut here---start->8--- >> * Testing >> >> #+BEGIN_SRC emacs-lisp >> (message "hello world") >> #+END_SRC

[O] Create sub-directories and files from within org

2013-10-18 Thread Chris Henderson
If I create a project with ** project name, is there any way to create a sub-directory at *** level in ~/projects/project name and create txt files in that directory - all from within org? Thanks.

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Rick Frankel
On Fri, Oct 18, 2013 at 09:22:17PM +0200, Oleh wrote: >Thanks, Rick and Nico, I've merged the code. >All except the last bit from Rick: I can't think of any sensible >way to enter an image URL except pasting it. >And since link will be in the clipboard at some point, why not use >

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Oleh
Thanks, Rick and Nico, I've merged the code. All except the last bit from Rick: I can't think of any sensible way to enter an image URL except pasting it. And since link will be in the clipboard at some point, why not use it straight away without prompting. Maybe URL can be prompted for when call

[O] Export org to dot for an organization chart?

2013-10-18 Thread Brett Viren
Hi, I'd like to produce an organization chart using org. What I want to do is: - enter an organization role as a section heading - have the heading hierarchy map to the organization hierarchy - enter optional section properties to specify: - the name of the individual who might fill the ro

Re: [O] Help on spreadsheet/calc references and improvements

2013-10-18 Thread Michael Brand
Hi all On Sun, Oct 6, 2013 at 7:03 PM, Michael Brand wrote: > @maintainers: > According to the below I tried to improve the Org manual with the > attached patch, please review and apply. I would like to remind to review and apply the patch attached on [2013-10-06 Sun] to this thread (0001-Improv

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Rick Frankel
On 2013-10-18 11:36, Nicolas Richard wrote: Note that using (let ((coding-system-for-write 'no-conversion)) (write-region nil nil filename nil nil nil 'confirm)) instead of (write-file ...) seemed to fix the problem for Oleh. Attached is a patch against Nico's url-retrieve-alt which cleans-up s

Re: [O] [Babel] Exporting tangled file path

2013-10-18 Thread Eric Schulte
aditya siram writes: > Thanks, but I was hoping there was some way of including that in the > exported HTML/PDF etc. That way someone looking at the documentation can > find their way back to the source file. As it stands (at least with the > HTML exporter) there's no way to know where a chunk of

Re: [O] [Babel] Exporting tangled file path

2013-10-18 Thread Marcin Borkowski
Dnia 2013-10-18, o godz. 09:47:47 aditya siram napisał(a): > Hi all, > Currently when I export a literate program I can see the chunks but > not where they end up. It would be really useful if the chunks had a > footnote or something that linked to the file where they were > tangled. Is there a h

Re: [O] [Babel] Exporting tangled file path

2013-10-18 Thread aditya siram
Thanks, but I was hoping there was some way of including that in the exported HTML/PDF etc. That way someone looking at the documentation can find their way back to the source file. As it stands (at least with the HTML exporter) there's no way to know where a chunk of code ends up. -deech On Fri,

Re: [O] [Babel] Exporting tangled file path

2013-10-18 Thread Eric Schulte
aditya siram writes: > Hi all, > Currently when I export a literate program I can see the chunks but not > where they end up. It would be really useful if the chunks had a footnote > or something that linked to the file where they were tangled. Is there a > header argument that does that? > > Tha

Re: [O] [babel] Commenting out src blocks for tangling

2013-10-18 Thread Eric Schulte
Alan Schmitt writes: > Hello, > > Sorry to resurrect this old thread, but I cannot make this work. > > b...@altern.org writes: > >> Rainer M Krug writes: >> >>> I agree - COMMENTing a subtree should automatically disable tangling of >>> code blocks in the >>> subtree. Would this something which

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Rick Frankel
On 2013-10-18 11:36, Nicolas Richard wrote: Note that using (let ((coding-system-for-write 'no-conversion)) (write-region nil nil filename nil nil nil 'confirm)) instead of (write-file ...) seemed to fix the problem for Oleh. got it. BTW, you might want to add the error message cleanup (i can't

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Nicolas Richard
Rick Frankel writes: > On 2013-10-18 01:29, Nicolas Richard wrote: >> Rick Frankel writes: >> One small problem, should be =(1+ (point))=, as the above leaves a >> blank newline at the head of the jpg, making it invalid. >> >> Oops, yes [Initially I had (search-forward "\n\n"), which worked >>

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Nicolas Richard
Rick Frankel writes: >> Le 18/10/2013 12:44, Oleh a écrit : >> I attach the downloaded google logo. > > I missed an email here... can you send me the url to the image you are > having problems with? I received it by email, here it is : http://cjoint.com/13oc/CJsrG1j2Szg.htm Note that using

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Rick Frankel
On 2013-10-18 07:00, Nicolas Richard wrote: [re-adding emacs-orgmode@gnu.org to cc, I don't know when it got lost] Le 18/10/2013 12:44, Oleh a écrit : I attach the downloaded google logo. I missed an email here... can you send me the url to the image you are having problems with? I just tried

[O] Tracking office hours using Android, Memacs, and Org-mode

2013-10-18 Thread Karl Voit
Hi! In case you are looking for a method to track the hours spent in the office (almost completely) automatically, you might want to take a look at the documentation I added today: https://github.com/novoid/Memacs/blob/master/docs/FAQs_and_Best_Practices.org#tracking-office-hours It's working fi

[O] [Babel] Exporting tangled file path

2013-10-18 Thread aditya siram
Hi all, Currently when I export a literate program I can see the chunks but not where they end up. It would be really useful if the chunks had a footnote or something that linked to the file where they were tangled. Is there a header argument that does that? Thanks! -deech

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Rick Frankel
On 2013-10-18 01:29, Nicolas Richard wrote: Rick Frankel writes: One small problem, should be =(1+ (point))=, as the above leaves a blank newline at the head of the jpg, making it invalid. Oops, yes [Initially I had (search-forward "\n\n"), which worked fine,... then changed my mind and didn't

Re: [O] [babel] Commenting out src blocks for tangling

2013-10-18 Thread Alan Schmitt
Hello, Sorry to resurrect this old thread, but I cannot make this work. b...@altern.org writes: > Rainer M Krug writes: > >> I agree - COMMENTing a subtree should automatically disable tangling of code >> blocks in the >> subtree. Would this something which could be introduced easily, as it se

[O] linebreak after tag of headline in ox-latex.el

2013-10-18 Thread Rasmus Rempling
Hello, I export frequently minutes with todos with latex to pdf. I always include planning information, e.g.: * NEXT Check this :Rasmus: DEADLINE: <2013-10-15 tis> SCHEDULED: <2013-10-15 tis> + some comments After upgrading to (Org-mode version 8.2.1, GNU Emacs 23.4.1 ) the deadline and

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Oleh
> > > Did you try the url-retrieve or the url-retrieve-alt branch ? > The url-retrieve-alt branch. Oleh

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Nicolas Richard
[re-adding emacs-orgmode@gnu.org to cc, I don't know when it got lost] Le 18/10/2013 12:44, Oleh a écrit : > I attach the downloaded google logo. Thanks. diffing them, it looks pretty much like an encoding problem. > I just tried your code and it works fine for the same image. Did you try the u

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Nicolas Richard
Oleh writes: > I've just tested Rick Frankel's code, and I got > a broken jpg (it's half green and distorted). It appears so > it org-mode inline and in eog, but it displays properly in its own > Emacs buffer. > Looks like it needs more work. Perhaps you could test this version instead: ://githu

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Nicolas Richard
Le 18/10/2013 12:04, Oleh a écrit : > I've just tested Rick Frankel's code, and I got > a broken jpg (it's half green and distorted). It appears so > it org-mode inline and in eog, but it displays properly in its own Emacs > buffer. > Looks like it needs more work. Could you please put the link

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Oleh
Hi Nicolas, I've just tested Rick Frankel's code, and I got a broken jpg (it's half green and distorted). It appears so it org-mode inline and in eog, but it displays properly in its own Emacs buffer. Looks like it needs more work. regards, Oleh On Fri, Oct 18, 2013 at 11:47 AM, Nicolas Richar

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Nicolas Richard
Oleh writes: > I tried before url-retrieve, but it was giving me some garbage in > addition to the image. > But if I figure it out, I could add url-retrieve as the third custom > method. If the garbage is the HTTP headers, then that problem is solved in Rick Frankel's code. If there's any other

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Oleh
Hi Carsten, You can commit it whenever you like. I don't currently have access to Windows or OSX, so it's hard to see if the code works everywhere. regards, Oleh On Fri, Oct 18, 2013 at 11:28 AM, Carsten Dominik wrote: > Hi Oleh, > > this is very nice thank you. > > If you want, turn this into

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Carsten Dominik
Hi Oleh, this is very nice thank you. If you want, turn this into a patch to org.el. If not, I will do so later. - Carsten On Oct 18, 2013, at 11:24 AM, Oleh wrote: > Hi Carsten, > > The dependencies are async, dnd and wget. > > In case dnd doesn't work, there's a fallback to clipboard via

Re: [O] Drag images from Firefox to org-mode

2013-10-18 Thread Oleh
Hi Carsten, The dependencies are async, dnd and wget. In case dnd doesn't work, there's a fallback to clipboard via `current-kill'. I've just added a custom variable that takes either 'wget or 'curl as the download method. I tried before url-retrieve, but it was giving me some garbage in additi