org mode with babel source: execute all source blocks, don't export them to latex

2020-10-12 Thread Uwe Brauer
Hi I have a org file with has a lot source blocks of the form #+begin_src matlab :results output raw :exports code :eval never-export close all N = 3; % number of chebyshev nodes n = 1; % polytropic index iters = 1; % iterations j=[0 1 2 3]; z=cos((pi*j)/3); y=1-(0.5*(z+1)).^2; a=n*(8); a2

Re: buffer name of Org Src...

2020-10-12 Thread Greg Minshall
Eric, > But that's what git etc. are for! ;-) yes, but. the first time i 'C-c C-v t' in the base file onto a changed-but-uncommitted tangled file, even git will provide me no succor. cheers, Greg

Re: Bug: ODT exporter permission issue on functional distros (eg, Guix) [9.1.9 (release_9.1.9-65-g5e4542 @ /home/cwebber/.guix-profile/share/emacs/26.3/lisp/org/)]

2020-10-12 Thread Kyle Meyer
Christopher Lemmer Webber writes: > Emacs : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) > Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ > /home/cwebber/.guix-profile/share/emacs/26.3/lisp/org/) [...] > Subject: [PATCH] ox-odt: Fix read-only error with styles

Org-mode macros with variable argument number

2020-10-12 Thread Holger Pirk
Hi folks, For a while, I have been bugged by the fact that org-mode macros need to hardcode the arguments. Among other things, this prevents, macros with a variable number of arguments (arguably most useful for “(eval”-style lisp macros). Today, I finally implemented this feature (see attached

Re: buffer name of Org Src...

2020-10-12 Thread Dr. Arne Babenhauserheide
Eric S Fraga writes: > On Monday, 12 Oct 2020 at 18:33, Dr. Arne Babenhauserheide wrote: >> That’s also when I tangle — but I often don’t move the code back into >> org afterwards, because once I needed this support once, I know I’ll >> need it again. > > Interesting. I guess my needs are diffe

Re: buffer name of Org Src...

2020-10-12 Thread Eric S Fraga
On Monday, 12 Oct 2020 at 18:33, Dr. Arne Babenhauserheide wrote: > That’s also when I tangle — but I often don’t move the code back into > org afterwards, because once I needed this support once, I know I’ll > need it again. Interesting. I guess my needs are different: I need these support tools

Re: buffer name of Org Src...

2020-10-12 Thread Dr. Arne Babenhauserheide
Eric S Fraga writes: > On Monday, 12 Oct 2020 at 15:39, Dr. Arne Babenhauserheide wrote: >> Did you find a way to make flycheck or flymake work in the src-buffers? > > This is an example of when I use tangling/detangling: when I need this > kind of support to develop my code. That’s also when I

Re: buffer name of Org Src...

2020-10-12 Thread Eric S Fraga
On Monday, 12 Oct 2020 at 17:17, Greg Minshall wrote: > making changes in both the base file source block and in the Org > Src... buffer (which i assume the de-tangling solution can't?). Yes, de-tangling cannot handle such simultaneous changes so you do need to be careful. But that's what git e

Re: buffer name of Org Src...

2020-10-12 Thread Eric S Fraga
On Monday, 12 Oct 2020 at 15:39, Dr. Arne Babenhauserheide wrote: > Did you find a way to make flycheck or flymake work in the src-buffers? This is an example of when I use tangling/detangling: when I need this kind of support to develop my code. -- : Eric S Fraga via Emacs 28.0.50, Org release_

Re: buffer name of Org Src...

2020-10-12 Thread Greg Minshall
Eric, thanks. de-tangling sounds like a possible solution. though, at least with Org Src ... buffers, org/emacs mostly keep me from messing up by, e.g., making changes in both the base file source block and in the Org Src... buffer (which i assume the de-tangling solution can't?). given my agin

Re: buffer name of Org Src...

2020-10-12 Thread Greg Minshall
Arne, no, sorry, i don't use either flymake or flycheck. cheers, Greg

Re: buffer name of Org Src...

2020-10-12 Thread Dr. Arne Babenhauserheide
Greg Minshall writes: > ps -- in case it's of interest: possibly i'm frustrated now, and wasn't > so much in the past, as i recently got annoyed by having to go back to > the base file to save and tangle (part of my work flow, to test whatever > i'm working on), and, so, wrote a few lines of emac

Re: buffer name of Org Src...

2020-10-12 Thread Eric S Fraga
On Monday, 12 Oct 2020 at 15:44, Greg Minshall wrote: > in *my* case (with the project i'm currently working on), each source > block in the .org file is a separately tangled file, and each source > block could be tagged with a distinct '#+name:' value. Using the name of the src block would be a n

buffer name of Org Src...

2020-10-12 Thread Greg Minshall
hi, all. i often write my version of (il)literate programs using one .org file, from which four or five (typically) files are tangled. and, generally, i'm very happy with this. but, when i have multiple Org Src ... buffers open, all from the same language, i am at a loss on how to determine to w

[PATCH] Review face for export dispatcher highlighted keys

2020-10-12 Thread Protesilaos Stavrou
The export dispatcher's active keys are highlighted using the 'org-warning' face. That face is applied in various contexts, including the agenda. Users who have difficulty reading the active keys of the export dispatcher are therefore forced to modify 'org-warning' throughout their setup, even th

Re: org-tables with monetary amounts

2020-10-12 Thread Eric S Fraga
On Monday, 12 Oct 2020 at 10:22, Christian Moe wrote: > I think I was thinking about adding mode flags for unit computations, > like in the imagined example above (`$3=$2+$1;u'), similar to what has > been done for duration computations. This would be very useful, actually. I use embedded calc a

Re: org-tables with monetary amounts

2020-10-12 Thread Christian Moe
Hi, Daniele, Good that it's working for you. I'll try to explain the unclear parts. Daniele Nicolodi writes: > On 24/09/2020 11:17, Christian Moe wrote: > >> Now, with the Calc command to simplify units, you can add dollars to >> euros and get the result in whichever currency comes first in th