Re: [O] Emacs unresponsive while executing Sh code block

2015-03-05 Thread Nick Dokos
Giacomo M writes: > Dear all, > when I C-c C-c in: > > #+BEGIN_SRC sh > gnome-terminal > #+END_SRC > One additional note - you can start the gnome-terminal process in the background: #+BEGIN_SRC sh gnome-terminal & #+END_SRC The shell will not wait for the process to finish and emacs will not

Re: [O] Emacs unresponsive while executing Sh code block

2015-03-05 Thread Nick Dokos
Giacomo M writes: > Dear all, > when I C-c C-c in: > > #+BEGIN_SRC sh > gnome-terminal > #+END_SRC > > a gnome-terminal window appears, but  Emacs hangs until I close it. > In the *Messages* I get: > > executing Sh code block... > Wrote /tmp/babel-2307H-J/ob-input-2307i3c > (here Emacs hangs.

Re: [O] Error when running org-babel-tangle

2015-03-05 Thread Richard Stanton
Aha! Thanks, Chuck. > On Mar 5, 2015, at 5:08 PM, Charles C. Berry wrote: > > On Thu, 5 Mar 2015, Richard Stanton wrote: > >> I’m experimenting with tangling files in org-mode, and have found >> that certain files cause org-babel-tangle to ie with an error >> (Org-mode version 8.3beta (release_

Re: [O] Error when running org-babel-tangle

2015-03-05 Thread Charles C. Berry
On Thu, 5 Mar 2015, Charles C. Berry wrote: On Thu, 5 Mar 2015, Richard Stanton wrote: I’m experimenting with tangling files in org-mode, and have found that certain files cause org-babel-tangle to ie with an error (Org-mode version 8.3beta (release_8.3beta-884-g9ed426). Here’s a small example

Re: [O] refiling with helm

2015-03-05 Thread Alexis
On 2015-03-06T02:13:41+1100, Leo Ufimtsev said: LU> Hello Xebar, LU> I had the same issue. I used the file-expand-wildcards function LU> to make a list of all my org-mode files. LU> The only thing is that I have to reload my .emacs when adding org LU> files for refile to work properly.

Re: [O] Emacs unresponsive while executing Sh code block

2015-03-05 Thread Alexis
On 2015-03-06T05:40:33+1100, Giacomo M said: GM> Dear all, GM> when I C-c C-c in: #+BEGIN_SRC sh gnome-terminal #+END_SRC GM> a gnome-terminal window appears, but Emacs hangs until I close GM> it. In the *Messages* I get: GM> executing Sh code block... Wrote GM> /tmp/babel-2307H-J/ob-in

Re: [O] Error when running org-babel-tangle

2015-03-05 Thread Charles C. Berry
On Thu, 5 Mar 2015, Richard Stanton wrote: I’m experimenting with tangling files in org-mode, and have found that certain files cause org-babel-tangle to ie with an error (Org-mode version 8.3beta (release_8.3beta-884-g9ed426). Here’s a small example: * Sample code #+BEGIN_SRC

[O] [ox-ascii, bug?] aligning text withing footnotes

2015-03-05 Thread Rasmus
Hi, When writing plain text I might write something like: See foo[fn:1] [fn:1] http://orgmode.org/\\ http://www.gnu.org/software/emacs/ This is exported as: See foo[1] Footnotes ─ [1] [http://orgmode.org/] [http://www.gnu.org/software/emacs/] I would like to have the

[O] [ox-ascii, bug?] links are wrapped in [·]

2015-03-05 Thread Rasmus
Hi, Try the following: (with-temp-buffer (require 'ox-ascii) (insert "http://orgmode.org";) (org-ascii-export-as-ascii nil nil nil t)) This will output [http://orgmode.org]. I don't think that www-links should be treated the same as "random links" here. Maybe we could check the raw link

Re: [O] Bug: org-preview-latex-fragment fails to render in remote files (TRAMP) [8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs/24.4/share/emacs/24.4/lisp/org/)]

2015-03-05 Thread Rasmus
Nick Dokos writes: > Dustin Paluch writes: > >> Here's what DOES WORK: >> >> Open a local org file, type in a latex fragment like "\[1 + 2 = 3\]", >> then hit C-c C-x C-l. The fragment is replaced with a png as expected. >> >> >> Here's what DOESN'T WORK: >> >> Open a remote org file via C-x C-f

Re: [O] Bug: org-preview-latex-fragment fails to render in remote files (TRAMP) [8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs/24.4/share/emacs/24.4/lisp/org/)]

2015-03-05 Thread Nick Dokos
Dustin Paluch writes: > Here's what DOES WORK: > > Open a local org file, type in a latex fragment like "\[1 + 2 = 3\]", > then hit C-c C-x C-l. The fragment is replaced with a png as expected. > > > Here's what DOESN'T WORK: > > Open a remote org file via C-x C-f /ssh:user@host:/path/to/file.org

[O] Error when running org-babel-tangle

2015-03-05 Thread Richard Stanton
I’m experimenting with tangling files in org-mode, and have found that certain files cause org-babel-tangle to die with an error (Org-mode version 8.3beta (release_8.3beta-884-g9ed426). Here’s a small example: * Sample code #+BEGIN_SRC makefile :tangle makefile-main circle:

[O] Bug: org-preview-latex-fragment fails to render in remote files (TRAMP) [8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs/24.4/share/emacs/24.4/lisp/org/)]

2015-03-05 Thread Dustin Paluch
Here's what DOES WORK: Open a local org file, type in a latex fragment like "\[1 + 2 = 3\]", then hit C-c C-x C-l. The fragment is replaced with a png as expected. Here's what DOESN'T WORK: Open a remote org file via C-x C-f /ssh:user@host:/path/to/file.org RET, enter the same latex fragment,

[O] Bug: org-habit treats all repeat tasks as ".+" type [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

2015-03-05 Thread 何利勇
It looks like org-habit only handle the ".+" repeater correctly, though the document says it supports ".+", "++" and "+". For example, when create agenda for the following org content. * TODO Test_+ SCHEDULED: <2015-03-02 Mon +1w> - State "DONE" from "TODO" [2015-02-23 Mon 10:56] - State "

Re: [O] Re-marking agenda entries, with advice on org-agenda-bulk-action in .emacs

2015-03-05 Thread Robert Pluim
Bastien writes: > netty hacky writes: > >> The issue of re-marking agenda entries has been raised before: >> http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg00200.html > > From latest master, you can (setq org-agenda-persistent-marks t) to > get persistent marks. Hi, there's a small

Re: [O] Making 'mailto' org links use gnus styles

2015-03-05 Thread Bob Newell
Rasmus writes: > > Have you configured mail-user-agent? mail-user-agent was set to message-user-agent. Changing it to gnus-user-agent solved the problem within org-mode, so for the purposes of this mailing list, your idea is excellent. Thanks! -- Bob Newell Honolulu, Hawai`i * Sent via Ma Gnus

[O] Emacs unresponsive while executing Sh code block

2015-03-05 Thread Giacomo M
Dear all, when I C-c C-c in: #+BEGIN_SRC sh gnome-terminal #+END_SRC a gnome-terminal window appears, but Emacs hangs until I close it. In the *Messages* I get: executing Sh code block... Wrote /tmp/babel-2307H-J/ob-input-2307i3c (here Emacs hangs... then I close gnome-terminal) Error readi

Re: [O] Capturing output from C/C++

2015-03-05 Thread Nick Dokos
Roger Mason writes: > Hello, > > I have a short C++ program: > > #+BEGIN_SRC cpp :flags -lm :results output > #include > #include > #include // for ceil > #include // for atof > > double f (double fv, double o, int i) { > return fv / 2.0 + (1.0 - o) * fv * i; >

Re: [O] Capturing output from C/C++

2015-03-05 Thread Thierry Banel
It might be due to the return 1; statement. Change it to return 0; and try again. Le 05/03/2015 17:27, Roger Mason a écrit : > Hello, > > I have a short C++ program: > > #+BEGIN_SRC cpp :flags -lm :results output > #include > #include > #include // for ceil > #include

Re: [O] Capturing output from C/C++

2015-03-05 Thread John Kitchin
I think you need to tangle the file, compile it and run the executable in a shell block. Here is a Fortran example: http://kitchingroup.cheme.cmu.edu/blog/2014/02/04/Literate-programming-example-with-Fortran-and-org-mode/ I have done similar things with C, java, etc... before. I don't know of a

Re: [O] What to use for tables with lengthy text in cells?

2015-03-05 Thread Skip Collins
Yes, it would be incompatible. But there could be a mechanism to enable the multi-line mode on a per-table basis. For display and grouping purposes, horizontal lines could still be allowed by adding two consecutive lines: |-+-| |--

[O] Capturing output from C/C++

2015-03-05 Thread Roger Mason
Hello, I have a short C++ program: #+BEGIN_SRC cpp :flags -lm :results output #include #include #include // for ceil #include // for atof double f (double fv, double o, int i) { return fv / 2.0 + (1.0 - o) * fv * i; } int num (double d, double fv, double

Re: [O] What to use for tables with lengthy text in cells?

2015-03-05 Thread Tory S. Anderson
Not a bad idea, but this would be incompatible with the existing useof horizontal lines to separate sections and export to visual lines, right? Skip Collins writes: > Here's another suggestion. There could be an optional org table mode > in which horizontal lines are used to separate rows: > >

Re: [O] What to use for tables with lengthy text in cells?

2015-03-05 Thread Skip Collins
Here's another suggestion. There could be an optional org table mode in which horizontal lines are used to separate rows: | Lorem ipsum dolor sit amet, | foo | | consectetur adipiscing elit. Sed| | | sit amet luctus sapien. Phasellus | | | malesuada, ipsum et hendrerit

Re: [O] lots of CLOCK lines displayed when opening a TODO

2015-03-05 Thread Leo Ufimtsev
My Log book drawers are hidden when entries expand. But I mapped my C-S- to expand logbook drawers so I can peak into them. (see snippet below). I log everything into the logbook. Clocktimes, state changes, dated notes when I put an item on hold. I found it too tedious to move things around.

Re: [O] refiling with helm

2015-03-05 Thread Leo Ufimtsev
Hello Xebar, I had the same issue. I used the file-expand-wildcards function to make a list of all my org-mode files. The only thing is that I have to reload my .emacs when adding org files for refile to work properly. (setq myvar/org-dir "~/git/LeoUfimtsev.github.io/org/") (setq myvar/

Re: [O] What to use for tables with lengthy text in cells?

2015-03-05 Thread Jude DaShiell
Why not do it this way? An org table gets a second file created along with it. That second file holds all writing going into the table. That second file has a link for each cell too. All links point to the original org table file and each entry in the second file at its end has a return lin

[O] Hotkeys don't match menu for 'view as fortnight'

2015-03-05 Thread J. David Boyd
The Agenda menu says, to view the agenda as a fortnight, use 'vf'. That puts my agenda into follow mode. But if I press 'v' and wait, I am shown that fortnight mode is 't'. So the menu should say to view fortnight use 'vt'. Dave

Re: [O] clocktables include "\emsp" - how to get rid of that?

2015-03-05 Thread Leo Ufimtsev
Hello Rainer, I think this should be customiziable. I hacked around it using an advise function: ; remove the emsp from clock reports ; http://emacs.stackexchange.com/questions/9528/is-it-possible-to-remove-emsp-from-clock-report-but-preserve-indentation/9544#9544 (defun my-org-clocktable-in

Re: [O] org.css for mobile-friendly

2015-03-05 Thread Sebastien Vauban
OSiUX wrote: > El mié, 04 mar 2015, Rasmus decía: >> OSiUX writes: >> >>> Testing my blog [0] (org-mode publish) in >>> mobile-friendly [1] obtain bad result. :( >>> >>> Same result for orgmode.org, maybe somebody have >>> better CSS for org-mode export? >>> >>> thanks! >>> >>> [0] http://osiux.c

Re: [O] Making 'mailto' org links use gnus styles

2015-03-05 Thread Rasmus
Hi, Bob Newell writes: > It just seems like there should be an easier/better way. Haved I failed > to find something simple? Have you configured mail-user-agent? —Rasmus -- Not everything that goes around comes back around, you know

Re: [O] Embedding diagrams in Org

2015-03-05 Thread Sebastien Vauban
"Charles C. Berry" wrote: >>> Why ":results latex raw" and not ":results latex"? >> >> I have no idea ;-) >> >> I find, unfortunately, that getting babel to do what I want is somewhat >> of an arcane art (for me) so once I get something doing what I want it >> to do, I leave things alone... > > `:r

Re: [O] Embedding diagrams in Org

2015-03-05 Thread Eric S Fraga
On Wednesday, 4 Mar 2015 at 21:22, Andreas Leha wrote: [...] > The example I posted earlier in this thread [1] uses the *.tikz version for > latex export. > [...] > [1] http://permalink.gmane.org/gmane.emacs.orgmode/95197 I had forgotten about that thread. Very useful, in particular finding an

Re: [O] lots of CLOCK lines displayed when opening a TODO

2015-03-05 Thread Loris Bennett
Rainer Stengele writes: > Hi! > > I have lots of weekly reoccuring meetings and do collect the clocked > time for each meeting. After a while I have lots of CLOCK > lines. Opening the TODO shows all the CLOCK lines shown, but my focus > is on text below the CLOCK lines. I started to use multipl