[O] [SOLVED] (was: exporting org to latex, execute matlab before exporting)

2017-08-03 Thread Uwe Brauer
>>> "Uwe" == Uwe Brauer writes: > Which is what I want. When I convert the org file to latex I am again > asked to execute the src block, which I don't want since it is already > executed. How can I avoid this question, without deleting the src block. > This is

[O] [NOT SOLVED: BUG?] (was: [SOLVED])

2017-08-03 Thread Uwe Brauer
I just checked and situation is absurd. Here is the minimal example: , | | #+begin_src matlab :results output latex :exports results | X=[1]; | disp('\begin{displaymath}') | fprintf('X&=%g \n', X) | disp('\end{displaymath}') | #+end_src | | #+RESULTS: | #+BEGIN_EXPORT latex |

Re: [O] Determine min/max values in a table

2017-08-03 Thread Adam Porter
Thierry Banel writes: > Alternatively you have the orgtbl-aggregate package available on Melpa. > > #+BEGIN: aggregate :table "myvalues" :cols "min(Values) max(Values) > mean(Values)" > > | min(Values) | max(Values) | mean(Values) | >

Re: [O] Finding calc/elisp methods

2017-08-03 Thread Adam Porter
Karl Voit writes: > Leslie helped here by mentioning vmin/vmax which is that obvious > that I do feel embarrassed now ;-) > > #+TBLFM: >

Re: [O] refile workflow -- move to same heading in different file?

2017-08-03 Thread Adam Porter
"Raymond Zeitler" writes: > C-c C-w cannot seem to recognize any of my agenda files, even though > org-refile-targets is set to (in custom-set-variables): > > (org-refile-targets (quote ((org-agenda-files :regexp . "Tasks" > > Suppose org-agenda-files contains "~/proj1.org"

Re: [O] Adding single cell movement to org-table

2017-08-03 Thread Nicolas Goaziou
Hello, Chris Kauffman writes: > Apologies for the earlier diff-blast: I did not see the advice on the > org-mode contributions page that patches generated via > git format-patch master > are preferred. Please find four patches attached which now include > modifications

Re: [O] setting local variables

2017-08-03 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > I'm writing an Emacs manual in Org, using > https://github.com/tarsius/ox-texinfo-plus to make things a bit > easier. I don't know that library, but as a biased POV, it would be nice to use "ox-texinfo" and let us know about its

Re: [O] Bug: Wrong type argument: integer-or-marker-p, nil on refile

2017-08-03 Thread Adam Porter
Michaël Cadilhac writes: > Here's the ECM. > > init.el: > (require 'org) > (setq org-refile-use-outline-path (quote file)) > > Now open an Org file, say foo.org, and type C-u C-c C-w foo.org/ RET > At org.el:11832, pos is nil. Confirmed here with Org 9.0.5. I think it's

Re: [O] [PATCH] ob-vala.el: Add Vala support to Babel

2017-08-03 Thread Nicolas Goaziou
Hello, Christian Garbs writes: > The next iteration of the patch should include ob-vala.el itself, some > tests and an ORG-NEWS entry. Great! Thank you. > Regarding the lexical-binding: How can I check if byte-compiling is > successful? M-x emacs-lisp-byte-compile Regards,

Re: [O] setting local variables

2017-08-03 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> I'm writing an Emacs manual in Org, using >> https://github.com/tarsius/ox-texinfo-plus to make things a bit >> easier. > > I don't know that library, but as a biased POV, it would

Re: [O] org-babel python eval discrepancy

2017-08-03 Thread Dov Grobgeld
Shell is using python3 and org-mode python2? On Aug 3, 2017 8:31 PM, "Dushyant Juneja" wrote: > Hi, > > I have the following code block in my org mode based literate programming > notes: > > #+BEGIN_SRC python > print('1+2 > 4 is ', 1+2 > 4) > print("What is 3 + 2?",

Re: [O] org-babel python eval discrepancy

2017-08-03 Thread Adam Porter
Lookup "Org babel results" in Google and you should find the right section of the manual. You need to set the :results keyword.

[O] Change in appearance of org-todo-keywords

2017-08-03 Thread Colin Baxter
Hello, As of today, TODO now appears with three sets of un-requested double colons after it, as in TODO :: :: :: The behaviour doesn't occur with emacs -q, so the cause is presumably in my ~/.emacs. I can't work out what's wrong with my org-todo-sequence, which is: (setq org-todo-keywords

Re: [O] Change in appearance of org-todo-keywords

2017-08-03 Thread Adam Porter
I don't mean this in a snide way, but do you keep your config in version control? e.g. if you have it stored in git, you can bisect it and find the change that caused the problem. Other than that, you can probably find the problem using the bug-hunter package. It can bisect your init file and

Re: [O] [NOT SOLVED: BUG?] (was: [SOLVED])

2017-08-03 Thread Berry, Charles
> On Aug 3, 2017, at 1:04 AM, Uwe Brauer wrote: > > > > I just checked and situation is absurd. Here is the minimal example: > [snip] > > When I set org-export-babel-evaluate nil, then the code is *not* > evaluated, *but* the code block *and* the result are exported. >

[O] org-babel python eval discrepancy

2017-08-03 Thread Dushyant Juneja
Hi, I have the following code block in my org mode based literate programming notes: #+BEGIN_SRC python print('1+2 > 4 is ', 1+2 > 4) print("What is 3 + 2?", 3 + 2) #+END_SRC When I tangle it and run the script, it gives me expected output as follows: > python notes.py 1+2 > 4 is False What

Re: [O] Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup

2017-08-03 Thread Berry, Charles
> On Aug 2, 2017, at 4:22 PM, Jeremie Juste wrote: > > > > Hello > >> >> Putting together a macro seems like the best option. Recall that you >> can use elisp in macros by placing it between `(eval’ and `)', so the >> following emits “def’ in all but latex exports

[O] Adding custom arguments to org-babel src code eval

2017-08-03 Thread Dushyant Juneja
Hi, Is it possible to add custom arguments to source code evaluation in org babel? For example, if the source code block is: #+BEGIN_SRC python # valid comment 1 print("Hi there!") # valid comment 2 print("# Invalid comment! #UsefulForHashtags!") print ("Space is fine here!") #+END_SRC The

Re: [O] [NOT SOLVED: BUG?]

2017-08-03 Thread Uwe Brauer
>>> "Berry," == Berry, Charles writes: >> On Aug 3, 2017, at 1:04 AM, Uwe Brauer wrote: >> >> >> >> I just checked and situation is absurd. Here is the minimal example: >> [snip] >> >> When I set org-export-babel-evaluate

Re: [O] run bash sessions without config files

2017-08-03 Thread Tyler Smith
On Wed, Aug 2, 2017, at 11:53 AM, Tyler Smith wrote: > > Is it possible to configure org-babel to ignore any customization files, > such as .emacs.d/init_bash.el and .bashrc? > After some digging around, it looks like this isn't possible. ~org-babel~ starts shell sessions via the standard

Re: [O] org-babel python eval discrepancy

2017-08-03 Thread Dushyant Juneja
Hey Dov, Bull's eye! Never realized that could hurt. It so happened that I set the correct python version in my shell before starting emacs. However, my bashrc file was hardwired to a different version, which org used every time for evaluating the src blocks. Thanks for the help! Dushyant On

Re: [O] Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup

2017-08-03 Thread Jeremie Juste
"Berry, Charles" writes: Hello, Thanks for the update >> > > I think this is obsolete. It fails on org-9.0.9. What version of org are you > using? > > In any case replacing the ~(if ...)~ by ~org-export-current-backend~ will fix > it. > > > Another case were adding dates

Re: [O] [feature-request] make org-quote-csv-field customizable

2017-08-03 Thread Tim Cross
and from memory, you can also tell excel what the data type of each column in a csv file is. Nicolas Goaziou writes: > Hello, > > Thomas von Dein writes: > >> currently when exporting a table to CSV, fields are quoted automatically >> if they contain a comma or a quote

Re: [O] refile workflow -- move to same heading in different file?

2017-08-03 Thread Adam Porter
"Raymond Zeitler" writes: > 1. org-refile-targets ... value is ((org-agenda-files :regexp . "Tasks")) > Seems OK. But then I see that org-refile-target-verify-function is nil, > which seems like a problem. Mind you, this is the default configuration, > and I'm not sure what

Re: [O] [feature-request] make org-quote-csv-field customizable

2017-08-03 Thread Nicolas Goaziou
Hello, Thomas von Dein writes: > currently when exporting a table to CSV, fields are quoted automatically > if they contain a comma or a quote character. The regexp for this > determination is hard-coded in 'org-quote-csv-field. > > This is good for most use cases. However, if

Re: [O] setting local variables

2017-08-03 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Eric Abrahamsen writes: > >> Oh I don't think it's about shortcomings, just about having a version >> that's tweaked specifically for writing Emacs manuals. I _really_ want >> my packages to have info manuals, and I

Re: [O] Change in appearance of org-todo-keywords

2017-08-03 Thread Adam Porter
Colin Baxter writes: > Thanks for the suggestion, but I think I may be missing something. My > emacs init has not changed. My org keyword settings have worked for a > few years satisfactorily - until that is today. I think I need to bisect > org-mode to find the case? I've

Re: [O] Change in appearance of org-todo-keywords

2017-08-03 Thread Colin Baxter
Dear Adam, > Adam Porter writes: > I don't mean this in a snide way, but do you keep your config in > version control? e.g. if you have it stored in git, you can > bisect it and find the change that caused the problem. > Other than that, you can probably

Re: [O] setting local variables

2017-08-03 Thread Eric Abrahamsen
Eric Abrahamsen writes: > Nicolas Goaziou writes: > >> Eric Abrahamsen writes: >> >>> Oh I don't think it's about shortcomings, just about having a version >>> that's tweaked specifically for writing Emacs manuals. I

Re: [O] run bash sessions without config files

2017-08-03 Thread Adam Porter
Tyler Smith writes: > On Wed, Aug 2, 2017, at 11:53 AM, Tyler Smith wrote: >> >> Is it possible to configure org-babel to ignore any customization files, >> such as .emacs.d/init_bash.el and .bashrc? >> > After some digging around, it looks like this isn't possible. >

Re: [O] setting local variables

2017-08-03 Thread Nicolas Goaziou
Eric Abrahamsen writes: > Oh I don't think it's about shortcomings, just about having a version > that's tweaked specifically for writing Emacs manuals. I _really_ want > my packages to have info manuals, and I _really_ don't want to learn how > to write texinfo. I saw