Re: na=\"nil\" in ob-R.elo

2021-01-15 Thread Berry, Charles
> On Jan 14, 2021, at 3:42 PM, Brett Presnell wrote: > > > Probably a silly question, but in ob-R.el, what is the reason for > setting na=\"nil\" when defining org-babel-R-write-object-command? Is > this an elisp compatibility thing? > I don't get it either. The value corresponding to the

Re: did behaviour of RET change again?

2020-12-18 Thread Berry, Charles
> On Dec 18, 2020, at 5:06 AM, Eric S Fraga wrote: > > Just a quick heads-up: > > I have just installed org from git (a few hours ago) and now it seems > that RET no longer indents. Is this intentional? > > I know that there has been some discussion on the mailing list but I > seem to have

Re: How to preserve empty headings

2020-11-30 Thread Berry, Charles
> On Nov 30, 2020, at 11:25 AM, Diego Zamboni wrote: > > What are RET and C-j bound to? > > In my setup, RET is bound to =org-return=, which does not delete spaces, but > C-j is bound to =org-return-and-maybe-indent=, which does. So I have the > opposite behavior as yours. > Probably

Re: How to preserve empty headings

2020-11-30 Thread Berry, Charles
> On Nov 30, 2020, at 9:21 AM, Titus von der Malsburg > wrote: > > > When I start a new line with '* ' followed by RET, the space is automatically > deleted and I’m left with a line that just has the asterisk (i.e. not a > headline). > > Unfortunately there are use cases where empty

Re: Bring up a screen giving option to open a series of orgmode files

2020-11-22 Thread Berry, Charles
> On Nov 22, 2020, at 11:03 AM, Gerardo Moro wrote: > > > M-x find-dired RET Documents/Org/ RET -iname "*.org" RET > > Once I press "RET", what does -iname mean? I am new in Emacs. You mean, this > is just using find-dired to browse the org files? > See (info "(emacs) Dired and Find")

Re: Bring up a screen giving option to open a series of orgmode files

2020-11-22 Thread Berry, Charles
> On Nov 22, 2020, at 2:09 AM, Jean Louis wrote: > > * Gerardo Moro [2020-11-22 13:02]: >> Basically that :) >> I'm looking for some setup that allows me to open a menu with a list of >> files and shortcut access keys to open them. >> >> Probably somebody has done this before. > > Let me

Re: Using a code block as input to another code block

2020-11-22 Thread Berry, Charles
Inline. > On Nov 21, 2020, at 2:30 PM, Magnus Therning wrote: > > I know I can use an example block (literal example) as input to a code > block, but I haven't found a way to fontify examples. Since my input is > code (JSON, and various programming languages) I would really like to > have that,

Re: How to wrap Org code generated by a source block?

2020-11-10 Thread Berry, Charles
> On Nov 10, 2020, at 10:10 AM, Diego Zamboni wrote: > > I tried also with =:wrap src org=, but then upon export it's exported > literally as Org src code, instead of interpreted as such. The drawer was > exactly what I needed, and allows reevaluation of the block, replacing all > the

Re: How to wrap Org code generated by a source block?

2020-11-10 Thread Berry, Charles
> On Nov 10, 2020, at 6:13 AM, Diego Zamboni wrote: > > I want to generate some parts of my document programmatically from an > emacs-lisp src block - i.e. the code produces Org markup which I want to then > export. Is there a way to wrap the #+RESULTS block in an environment that > still

Re: Confusion about org-confirm-babel-evaluate's behavior while exporting lob calls

2020-10-29 Thread Berry, Charles
Just on a whim, I changed `org-babel-exp-results' by deleting (let (org-confirm-babel-evaluate-NOT) and the matching right parenthesis. Now I get a single prompt to confirm evaluation using Ruiyang's ECM. HTH, Chuck > On Oct 28, 2020, at 8:16 PM, Kyle Meyer wrote: > > 吴锐扬 writes: > >>

Re: Confusion about org-confirm-babel-evaluate's behavior while exporting lob calls

2020-10-28 Thread Berry, Charles
FWIW, it doesn't seem like an accident. You might ping the author of this commit: $ git log -S "(let (org-confirm-babel-evaluate)" commit 56bf3d789146fcd3c9f82d875de28c394fe593a0 Author: Achim Gratz Date: Wed Apr 10 20:28:31 2013 +0200 Babel: avoid superfluous confirmation for internal

Re: Bug: Math mode doesn't work if followed by a dash [9.4 (nil @ /home/gutin/.emacs.d/.local/straight/build/org-mode/)]

2020-09-29 Thread Berry, Charles
See below. > On Sep 29, 2020, at 11:53 AM, Richard Lawrence wrote: > > "Berry, Charles" writes: > >> The case Gutin describes conforms to the documentation, viz. `$x\beta$-` >> should produce math mode LaTeX as I read the next paragraph. >&g

Re: Bug: Math mode doesn't work if followed by a dash [9.4 (nil @ /home/gutin/.emacs.d/.local/straight/build/org-mode/)]

2020-09-29 Thread Berry, Charles
See below. > On Sep 28, 2020, at 11:42 AM, Richard Lawrence wrote: > > Hi Gutin, > > gutin writes: > >> What I meant is that if you type >> >> $*$-algebra >> >> and hit C-c C-x C-l, then the "$*$" doesn't get replaced with a >> mathematical image. A similar problem happens when you export

Re: Help debugging R source code block output problem with :session

2020-09-08 Thread Berry, Charles
Jack, Maybe I am confused here: > On Sep 8, 2020, at 7:51 AM, Jack Kamm wrote: > > Yes, if we did that then tmp-file would have a prefix like > "/scp:user@hostname:", and elisp would then know to read the result file > from the remote host. > > Before pasting tmp-file into R code, we should

Re: Help debugging R source code block output problem with :session

2020-09-07 Thread Berry, Charles
Jack, > On Sep 7, 2020, at 6:06 PM, Jack Kamm wrote: > > Hi Chuck, > >> I can confirm that this works on my setup in each of the scenarios in which >> `default-directory' got set correctly in the session buffer. >> >> At some point, my default-directory got reset to drop the tramp prefix >>

Re: Help debugging R source code block output problem with :session

2020-09-07 Thread Berry, Charles
Jack, I can confirm that this works on my setup in each of the scenarios in which `default-directory' got set correctly in the session buffer. At some point, my default-directory got reset to drop the tramp prefix "/scp:/user@host:" in one session after faithfully running the src block

Re: Help debugging R source code block output problem with :session

2020-09-07 Thread Berry, Charles
Jack, This does not work for my remote session. I run from macOS locally and on a Linux host remotely. I use M-x shell RET R RET M-x ess-remote RET R RET to start the R session. The problem is that tempfiles on the remote host are like

Re: Bug: Babel+R handles spaces wrongly in tables [9.3.6 (release_9.3.6 @ /home/cassou/.emacs.d/lib/org/lisp/)]

2020-09-06 Thread Berry, Charles
> On Sep 6, 2020, at 4:32 AM, Damien Cassou wrote: > > > Hi, > > it seems that, if a cell within a table contains a space, the > corresponding value passed as parameter to a R script will be > wrong. Not exactly. Your ECM has one column, and using both columns removes the issue. Here is

Re: Bug: Source blocks before first ":tangle yes" are not tangled to file [9.4 (nil @ /Users/ezchi/.emacs.d/.local/straight/build/org-mode/)]

2020-09-03 Thread Berry, Charles
t to a file like this (with default ":tangle no"): > (org-babel-tangle nil "foo.el") > > I end up get 2 files: > foo.el: > (setq foo "hello") > > test_tangle.el: > (setq bar "world") > > Should I expect only: > foo.el: > (setq bar

Re: Bug: Source blocks before first ":tangle yes" are not tangled to file [9.4 (nil @ /Users/ezchi/.emacs.d/.local/straight/build/org-mode/)]

2020-09-03 Thread Berry, Charles
Not a bug. See inline. > On Sep 3, 2020, at 12:37 AM, Enze Chi wrote: > > > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > https://orgmode.org/manual/Feedback.html#Feedback > > Your

Re: Help debugging R source code block output problem with :session

2020-08-29 Thread Berry, Charles
This problem has been bugging people for years and previous attempts to solve it have always run up against creating more problems in the process of solving this one. This workaround gives the same results with or without `:session "NEW"' and same as OPs first src block: #+header: :prologue

Re: [PATCH] Add org-md-src-block for src-block formater

2020-08-27 Thread Berry, Charles
You might want to browse the ox-ravel repository[1]. It provides a collection of exporters that support reformatting src blocks and inline src blocks for a variety of output formats (including markdown). Basically, it will produce a derived backend that adds source block reformatting to

Re: Can you automatically noweb include?

2020-08-07 Thread Berry, Charles
ing C-c C-v C-b or C-c C-v C-s to evaluate and I get >> >> "Code block produced no output." in the mini-buffer. >> >> >> If I use C-c C-c directly on the code block itself I get: >> >> Traceback (most recent call last): >> File "", line 1,

Re: Can you automatically noweb include?

2020-08-07 Thread Berry, Charles
> On Aug 7, 2020, at 8:39 AM, William McCoy wrote: > > This use of :prologue appeared to me to be very useful. But for some reason > when I try it out it does not work for me. I just get a message that the > code block produced no output and that 'np' is not defined. Just to check, >

Re: Macro replacement inside +attr_latex line

2020-08-06 Thread Berry, Charles
> On Aug 4, 2020, at 6:17 AM, Vikas Rawal wrote: > > Found the answer in the mailing list archives > (https://lists.gnu.org/archive/html/emacs-orgmode/2013-09/msg00234.html). > Not allowed. > But, ... #+macro: attr_latex #+attr_latex: $1 * abc {{{attr_latex(:width 10)}}}

Re: org-sbe and code blocks in a different files

2020-07-09 Thread Berry, Charles
> On Jul 9, 2020, at 12:09 AM, Michael Welle wrote: > > Hi Douglas, > > Douglas Perrin writes: > >> Hi Michael, >> Maybe I am not understanding what you want to do but I use >> org-babel-lob-ingest/org-sbe to execute blocks from other files on >> start-up like this: >> # Local Variables:

Re: [BUG] recently commits on master branch breaks command 'org-babel-demarcate-block'

2020-05-30 Thread Berry, Charles
> On May 29, 2020, at 7:03 PM, stardiviner wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > When I have a source block (The "|" represents the point): > > #+begin_src sh :eval no > chrome --remote-debugging-port > | > > #+end_src > > Then press =[C-c C-v d]=, it becomes

Re: Tricking org-mode into using markdown conventions

2020-05-05 Thread Berry, Charles
> On May 5, 2020, at 1:46 AM, Ihor Radchenko wrote: > >> I am assuming though, from the lack of answers back, that there appears to >> be no way to have org-mode grok markdown code blocks (triple backticks) >> when it parses as a substitute for `#+BEGIN_SRC` ? > > #+BEGIN_SRC is a part of org

Re: Self-sufficient Org file with customised export? :eval-when?

2020-05-01 Thread Berry, Charles
> On Apr 30, 2020, at 11:55 AM, akater wrote: > [deleted - discussion of html export] > - > > > If I may prematurely offer my vision: Common Lisp has special operator > eval-when which specifies when the enclosed code is to be evaluated (or > compiled). Example: > > (eval-when

Re: How to add new type of block to a derived back-end?

2020-04-10 Thread Berry, Charles
Salomon, see inline comments below. HTH, Chuck > On Apr 10, 2020, at 7:56 AM, Salomon Turgman wrote: > > Hello all, > > Thanks in advance for any hints you can provide for this. I am trying to > create a derived back-end that handles a new type of block in org-mode. I am > trying to

Re: R session and plotting in x11 window

2020-04-07 Thread Berry, Charles
ample C-c ' C-n RET C-n C-n #+end_example I end up with the same output as above in my *R* session buffer. A new graphics device is opened and the plot appears in it. Best, Chuck > On Apr 6, 2020, at 6:26 PM, Matt Price wrote: > > > > On Sun, Apr 5, 2020 at 1:19 PM Berry

Re: tangling from multiple files

2020-04-05 Thread Berry, Charles
> On Apr 4, 2020, at 11:08 AM, David Bremner wrote: > > "Berry, Charles" writes: > >> Oops. Correction below. >> >>> On Mar 18, 2020, at 7:38 PM, Berry, Charles wrote: >>> >>> >>> Right. It does not work d

Re: R session and plotting in x11 window

2020-04-05 Thread Berry, Charles
> On Apr 4, 2020, at 4:27 PM, Matt Price wrote: > > Does anyone know much about the difference between an R session opened by > typing M-x R, and the R session opened by org-babel? Short answer: almost none. Long answer: what `org-babel-R-initite-session' and friends do. > > I'm just

Re: rmarkdown-like production of multiple plots in org

2020-04-02 Thread Berry, Charles
> On Mar 31, 2020, at 12:23 PM, Matt Price wrote: > > I'm completely new to R. > > I've started working with a project that creates plots using the ggplot > package -- so by default it creates grid objects, rather than writing to > files. > > In rmarkdown/rstudio, I can write something

Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block

2020-03-30 Thread Berry, Charles
> On Mar 30, 2020, at 3:23 PM, Joost Kremers wrote: > [stuff deleted] > > If I reverse the order and add a `+` sign, like so: > > ``` > :PROPERTIES: > :header-args:python+: :session py1 :results function > :header-args:python+: :tangle out1.py > :END: > ``` > > the code does indeed get

Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block

2020-03-29 Thread Berry, Charles
> On Mar 29, 2020, at 1:13 PM, Joost Kremers wrote: > > > On Sun, Mar 29 2020, Berry, Charles via General discussions about Org-mode. > wrote: >>> On Mar 28, 2020, at 3:00 PM, Joost Kremers wrote: >>> Is this expected behaviour? Am I doing somethin

Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block

2020-03-29 Thread Berry, Charles
> On Mar 28, 2020, at 3:00 PM, Joost Kremers wrote: > > Hi list, > > I'm having trouble tangling an Org file. Basically, if I put a =:tangle= > header argument in a =#+PROPERTY= line at the top of the file or in a > =:PROPERTIES:= block under a header, it is not picked up and the code

Re: tangling from multiple files

2020-03-19 Thread Berry, Charles
Oops. Correction below. > On Mar 18, 2020, at 7:38 PM, Berry, Charles wrote: > > > Right. It does not work directly for tangling. So also use > > #+export_file_name: b2.org > > (say) > > Then load ox-ob.el, load ox-org.el, rather. > export as C-c C-e O

Re: tangling from multiple files

2020-03-18 Thread Berry, Charles
> On Mar 18, 2020, at 6:29 PM, David Bremner wrote: > > "Berry, Charles" writes: > >>> On Mar 17, 2020, at 4:21 PM, David Bremner wrote: >>> >>> >>> I've seen this question around e.g. stack overflow, but none of the >&g

Re: tangling from multiple files

2020-03-18 Thread Berry, Charles
> On Mar 17, 2020, at 4:21 PM, David Bremner wrote: > > > I've seen this question around e.g. stack overflow, but none of the > answers I found seems really satisfactory. > > I'd like to share a set of begin_src / end_src blocks in a.org between > b.org and c.org; in particular b.org and

Re: Src blocks laid out side-by-side

2020-02-08 Thread Berry, Charles
> On Feb 8, 2020, at 2:13 AM, Fraga, Eric wrote: > > On Friday, 7 Feb 2020 at 17:59, Steve Downey wrote: >> I have a need to lay out source blocks side by side, in order to present >> before and after changes to the source. If I could embed a block in a >> table, that would do it. > > Do

Re: org-babel-load-file support elisp

2020-02-04 Thread Berry, Charles
> On Feb 3, 2020, at 10:03 PM, Jack Kamm wrote: > > Tim Cross writes: > >> All other language specifiers comply to the pattern of source block >> languages being the language major mode name without the '-mode', but >> there is no elisp-mode. > > Sorry to be pedantic, but I think shell

Re: C-c C-c to close the buffer in *Org Src ...* buffers

2020-01-31 Thread Berry, Charles
> On Jan 31, 2020, at 3:03 AM, Bastien wrote: > > Hi all, > > I'd like to make an equivalent to in Org Src buffers > so that hitting will close the buffer, which seems natural. > > WDYT? Many modes used in org src buffers have C-c C-c in their maps. python, latex, c++, shell, R, ... I

Re: breakage: Using self-defined Macro in macro definition

2020-01-20 Thread Berry, Charles
> On Jan 20, 2020, at 2:27 AM, Robert Klein wrote: > > > Hi, > > when I use a self-defined macro in a macro definition, subsequent > macros in the same macro definition don't get expanded (tested with > org version 9.2.1 and tip of maint): The expansions in your example follow the rules.

Re: Wholesale changes to LaTeX headers

2019-12-31 Thread Berry, Charles
> On Dec 31, 2019, at 7:42 AM, Norman Walsh wrote: > > Hi, > > I want to make wholesale changes to the LaTeX preamble exported from > Org mode. I want to put \RequirePackage and \PassOptionsToPackage > calls before the \documentclass, I want to write a specific set of > macros after the

Re: Turn function into interactive

2019-12-30 Thread Berry, Charles
> On Dec 29, 2019, at 9:26 PM, Lawrence Bottorff wrote: > > I've discovered org-outline-level which when in a code block under a given > header delivers as expected: > > * This old level > #+BEGIN_SRC emacs-lisp > (org-current-level) > #+END_SRC > > #+RESULTS: > : 1 > > Now, how could I

Re: Bug: org-tempo expansion comments out the following src block when org-src-tabs-natively is 't [9.3 (release_9.3 @ /home/yantar92/.emacs.d/straight/build/org/)]

2019-12-18 Thread Berry, Charles
> On Dec 18, 2019, at 5:07 AM, Ihor Radchenko wrote: > > Recipe: > > 1. emacs -Q > 2. Execute the following lisp code: > > (setq org-src-tab-acts-natively t) > (require 'org-tempo) I did not need to add this line to confirm the behavior: > (push (cons "el" "src emacs-lisp")

Re: Calling/using named babel code blocks

2019-12-18 Thread Berry, Charles
> On Dec 18, 2019, at 9:10 AM, Lawrence Bottorff wrote: > > I thought I understood "metaprogramming," i.e., creating generic code blocks > that can be called by any other code block regardless of programming language > -- but apparently I don't. I have this > > #+name: my-random-gen >

Re: Babel: Store script in external file

2019-12-17 Thread Berry, Charles
> On Dec 16, 2019, at 1:53 PM, Michael Gauland wrote: > > I've just started playing with #+INCLUDE, so I may not be using it correctly, > but this works for me. Indeed, if what the OP wants is to wrap just that code as a src block and export it and any results it produces during export

Re: Babel: Store script in external file

2019-12-16 Thread Berry, Charles
> On Dec 15, 2019, at 5:21 PM, Nathan Neff wrote: > > Hello all, > > I think I'm missing something basic: I'd like to have something like this: > > #+begin_src python > #+filename: foo.py > > Instead of storing my Python code in the current org file, I would like > Babel to read foo.py

Re: Babel: Set org-babel-min-lines-for-block-output for single code block?

2019-12-16 Thread Berry, Charles
> On Dec 15, 2019, at 1:55 PM, Nathan Neff wrote: > > Hello all, > > I just found the org-babel-min-lines-for-block-output variable. > > I have a table like this: > > #+RESULTS: people-table > | User | ID | Homepage | > |---++--| > | Bob |

Re: Best way to template a big table

2019-12-12 Thread Berry, Charles
> On Dec 12, 2019, at 8:03 AM, Lawrence Bottorff wrote: > > I just figured out that this > > #+BEGIN_SRC emacs-lisp :results table > '((H1 H2 H3) (text11 text12 text13) (text21 text22 text23) (... ... ...) > (textN1 textN2 textN3)) > #+END_SRC > > #+RESULTS: > | H1 | H2 | H3 |

Re: File tags prevent autocomplete of global tags

2019-12-11 Thread Berry, Charles
> On Dec 10, 2019, at 4:54 PM, E R wrote: > > Hello, > > following the post below, by the same title, I was advised to notify the > org-mode mailing list. > > https://emacs.stackexchange.com/questions/54277/file-tags-prevent-autocomplete-of-global-tags > > To summarize, tags defined inside

Re: Have :var reference a value

2019-12-08 Thread Berry, Charles
> On Dec 8, 2019, at 8:52 AM, George Mauer wrote: > > I'm playing around with learning racket in an org buffer and I have a bunch > of blocks that look like this > >#+begin_src racket :var value="abbracadaabra" >...do stuff with value... >#+end_src > > >#+begin_src racket

Re: “Literate” python?

2019-11-30 Thread Berry, Charles
> On Nov 29, 2019, at 9:54 AM, Norman Walsh wrote: > > Hi, > > I’ve seen a couple of pointers recently to using Org mode and tangle > to write more literate Emacs configurations. I use Org+babel all the > time to write “interactive” documents, so I thought I’d try out tangle > from Org. > >

Re: where to place caption so babel results include caption?

2019-11-06 Thread Berry, Charles
> On Nov 6, 2019, at 1:55 AM, Ken Mankoff wrote: > > Hello, > > If I have a babel block that generates a table and I'd like latex attributes > associated with that table, it seems to work well if I do this: > > #+NAME: foo > #+BEGIN_SRC bash :results table > echo "${RANDOM}|${RANDOM}|" >

Re: Question mark not supported in structured templates?

2019-10-29 Thread Berry, Charles
`org-tempo' is the replacement. It is mentioned in the docstring for `org-structure-template-alist'. Here is what I have in my `emacs-init.org' file: (The letter `p' denotes where point should land. `n' is a newline. See the docstring for `tempo-define-template' for more details.)

Re: Refresher on including R/ggplot2 output via latex/pdf?

2019-10-28 Thread Berry, Charles
> On Oct 28, 2019, at 12:43 AM, John Hendy wrote: > > On Mon, Oct 28, 2019 at 1:14 AM Jack Kamm wrote: >> >>> This is with emacs -Q and loading the minimal config from the initial >>> email. Any ideas on where I might look next? >> >> Sorry, I don't have many ideas here. Have you checked

Re: [O] Exporting noweb-ref's without disabling org-babel processing

2019-10-23 Thread Berry, Charles
Diego, I am not sure I understand. Here is my interpretation: You wish to have `:exports both' behavior in your org export. You want noweb references in the exported code to render as angle-bracketed chunk names, such as <> rather than being expanded in place. If that is what you want, you

Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)

2019-10-10 Thread Berry, Charles
> On Oct 10, 2019, at 10:21 AM, Charles Berry wrote: > >> >> This could work in theory, but doesn't for bash on my system. And (I think) >> with this method tables of output are not then injected back into the Org >> buffer that can be exported as part of the document. > Of course! > >

Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)

2019-10-10 Thread Berry, Charles
> On Oct 10, 2019, at 9:43 AM, Ken Mankoff wrote: > > Hi Charles, > > On 2019-10-10 at 18:22 +02, Berry, Charles wrote... >> If the language mode you use supports of evaluation of the src edit >> buffer (e.g. ESS[R], Python), you can issue >> >

Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)

2019-10-10 Thread Berry, Charles
> On Oct 9, 2019, at 11:04 PM, Ken Mankoff wrote: > > Hello, > > I think that even when ":eval no" is set, eval should happen if the user > explicitly requests it. If the language mode you use supports of evaluation of the src edit buffer (e.g. ESS[R], Python), you can issue C-c C-v v

[O] org-download-screenshot on MacOS Catalina

2019-10-09 Thread Berry, Charles
I just upgraded to MacOS 10.15 and am experiencing some pain. The faithful org-download-screenshot from https://github.com/abo-abo/org-download stopped working. Instead of capturing a window or selection, it just copied the background. This - forbidding screen capture - is considered a

Re: [O] superfluous tags in html src block output

2019-09-14 Thread Berry, Charles
This is newer: === commit ded3d27b1468b878197e5fe55a70c5e13350ea27 Author: Nik Clayton Date: Tue Jun 4 11:57:40 2019 +0200 ox-html: Wrap each line of a source block in a code element * lisp/ox-html.el (org-html-do-format-code): Wrap each line of a source block in a code

Re: [O] Nested calls in babel

2019-09-12 Thread Berry, Charles
Your example works for me. viz, the call to bar returns "foo" (not nil). MacOS 10.14.6, Emacs 26.1, org release_9.2.6-534-g6f32e7 HTH, Chuck > On Sep 10, 2019, at 12:57 AM, Carlos Sánchez de La Lama > wrote: > > Hi all, > > I am being unable to make nested calls work. Here is a minimal

Re: [O] Cannot display local images with orgmode under macOS

2019-09-12 Thread Berry, Charles
> On Sep 12, 2019, at 5:48 AM, Marco Wahl wrote: > > Hi, > >> * The problem >> >>Orgmode under macOS cannot display local images correctly, but it can >> display internet images >> without problem. >> >>I tried both emacs-mac and emacs-plus, they both have this image problem. >>

Re: [O] Some whitespace stripped from emacs-lisp value in src blocks making it unreadable in certain cases

2019-09-10 Thread Berry, Charles
> On Sep 9, 2019, at 5:55 PM, akater wrote: > > Consider a lisp form that, when evaluated, produces another form. I'm > used to org printing the resulting form nicely, in lisp blocks. However, > this is not the case for emacs-lisp src blocks. An example: > > 1. The way it should be (and is now

Re: [O] HTML export with LaTeX babel blocks

2019-08-29 Thread Berry, Charles
> On Aug 28, 2019, at 5:59 PM, Michaël Cadilhac wrote: > > My goal is to export SVG files of TikZ drawings in HTML. Now, what follows > is a bit of a rant on `org-babel-execute:latex`; let's go through the options: > > - [snip] Well you can try to continue on your path, but it can get

[O] org-babel-insert-result doesn't comma escape properly

2019-08-21 Thread Berry, Charles
Here is an ECM: #+begin_src emacs-lisp :wrap example "line 1 ,* headline 2 ,* headline 3 ,* headline 4 ,* headline 5 " #+end_src With today's master, the last `headline' is not escaped in the example block this produces when executed. It seems to me that dropping the let binding for

Re: [O] getting access to a self-invented option?

2019-08-07 Thread Berry, Charles
Correction below. [snip] > >> >> I guess another option is to just set a buffer-local variable in the file, >> or use #+FILETAGS: and hack htings that way. I'm not sure what the most >> sustainable & org-like method relaly is... >> > > The obvious choice for a local file setting is an

Re: [O] getting access to a self-invented option?

2019-08-07 Thread Berry, Charles
Matt, See inline. > On Aug 7, 2019, at 8:36 AM, Matt Price wrote > > > On Sat, Aug 3, 2019 at 1:42 PM Berry, Charles wrote: > Matt, > > This seems like a good use case for a `derived-backend'. > > You can use `org-export-define-derived-backend' with 'hugo as th

Re: [O] getting access to a self-invented option?

2019-08-03 Thread Berry, Charles
Matt, This seems like a good use case for a `derived-backend'. You can use `org-export-define-derived-backend' with 'hugo as the parent, define a :menu-entry to add an export action for your custom export to the hugo menu using '?m' (say) as the key. Then C-c C-e H m will export

Re: [O] Contribution of a :confirm-evaluate flag to src blocks

2019-07-18 Thread Berry, Charles
Gentlemen, I think you have stepped onto a slippery slope. Adding an :eval option that turns off confirmation queries without user intervention defeats the security purpose stated for `org-confirm-babel-evaluate'. Likewise, adding a new header argument that turns off such checks may have

Re: [O] change tables to matrix when importing, including expressions.

2019-06-13 Thread Berry, Charles
[snip] > On Jun 13, 2019, at 6:26 AM, Uwe Brauer wrote: > > > However I would like > #+begin_src > #+attr_latex: :mode math :environment matrix > D= > | 0 | -5 | > | 5 | 0 | > #+end_src > > To be exported as > > #+begin_src > \[ > D= > \begin{matrix} > 0 & -5 \\ > 5 & 0 \\ >

Re: [O] suppress leading ":" in org-babel outputariBLE

2019-05-31 Thread Berry, Charles
AFAICS, the latest update (99aa984) did NOT fix the issue. There are complications in this story that I explain here. If I start a fresh *R* session by eval'ing the src block, I get #+RESULTS: : : 12.23 and the *R* buffer ends with --8<---cut

[O] Outdated manual web pages left in place WAS: Re: Problems with inline source blocks

2019-05-28 Thread Berry, Charles
The OP cited this web page: https://orgmode.org/manual/Exporting-code-blocks.html but the link from https://orgmode.org/#docs to the manual eventually leads this web page: https://orgmode.org/manual/Exporting-Code-Blocks.html which is different (note capitalization of "Code" and "Blocks"). I

Re: [O] suppress leading ":" in org-babel output

2019-05-28 Thread Berry, Charles
> On May 27, 2019, at 7:17 PM, Nick Dokos wrote: > > Jeremie Juste writes: > >> Hello, >> >> I recall seeing this thread on the mailing list but I cannot find it >> back. >> >> I would like to suppress the first line leading ":" in the following output >> >> >>

Re: [O] Problems with inline source blocks

2019-05-28 Thread Berry, Charles
> On May 27, 2019, at 9:47 AM, Christian Heinrich > wrote: > > Hi everyone, > > several issues with inline source blocks: None of the behavior you cite is in the current master as of 28-may-2019: 4a383ee0f19a001b272097398b43312fc0655798 > > 1)

Re: [O] Parens matching off in babel code block

2019-05-02 Thread Berry, Charles
> On May 1, 2019, at 7:56 PM, Lawrence Bottorff wrote: > > Wondering if you have seen this over at emacs.stackexchange. Very puzzling > why the parens mismatch in a babel emacs-lisp block, but not anywhere else in > Emacs. I don't know the details but this ECM might help: #+begin_src

Re: [O] source-block 'uncomment-region' comments out a second time

2019-04-24 Thread Berry, Charles
My bad. See inline. > On Apr 24, 2019, at 8:45 AM, Daniel Herzig wrote: > > Hi! > > "Berry, Charles" writes: > >>> On Apr 22, 2019, at 3:49 AM, Daniel Herzig wrote: >>> >>> I found a minor problem when editing source code blocks. I

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Berry, Charles
> On Apr 22, 2019, at 10:15 AM, Dmitrii Korobeinikov wrote: > > Thank you! > That's a handy technique and it does help. > As I understand, there's no way to extend that to multiple lines? AFAICS, no there is no way to split the :epilogue arg to multiple lines. Of course, you can always

Re: [O] source-block 'uncomment-region' comments out a second time

2019-04-22 Thread Berry, Charles
> On Apr 22, 2019, at 3:49 AM, Daniel Herzig wrote: > > I found a minor problem when editing source code blocks. I am on > Org-Mode 8.2.10 that comes with Emacs 25.1.1 on Debian. With more modern versions (9.2.3, for example), the behavior you describe does not occur. viz., (un)commenting

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Berry, Charles
It looks like you want the :epilogue header argument. See inline. > On Apr 22, 2019, at 2:00 AM, Dmitrii Korobeinikov wrote: > > When I write several source blocks, which depend on one another, I tend to > debug them one by one. > > So, I write this function and test it: > > #+NAME: square >

Re: [O] Feature Request: allow export yes/no for blocks that are valid babel inputs

2019-04-17 Thread Berry, Charles
You are right, Eric. This is a better option - especially as `org-export-with-drawers' gives granular control over what is exported. Chuck > On Apr 16, 2019, at 10:42 PM, Fraga, Eric wrote: > > I missed your original query. Have you considered using drawers? I use > these instead of

Re: [O] Possible bug (?): :noweb doesn't respect indentations (at least i R/BUGS/JAGS).

2019-04-09 Thread Berry, Charles
> On Apr 8, 2019, at 4:01 PM, Emmanuel Charpentier > wrote: > > Compare this org source: > > === > # A small :noweb mystery: indentation > > #+property: header-args:R :session > #+options: toc:nil > #+author: > #+date: > >

Re: [O] local variables to initialize org buffer?

2019-04-01 Thread Berry, Charles
> On Mar 31, 2019, at 8:59 PM, Lawrence Bottorff wrote: > > Sure, but how should it be implemented? # Local Variables: # eval: (org-babel-load-file (buffer-file-name)) # End: or if you want to follow Eric's suggestion, something like: #+name: startup #+begin_src emacs-lisp :tangle no

Re: [O] local variables to initialize org buffer?

2019-03-31 Thread Berry, Charles
Will `org-babel-load-file' suffice? HTH, Chuck > On Mar 31, 2019, at 7:05 PM, Lawrence Bottorff wrote: > > I'm trying to figure out how to start up slime and do > org-babel-execute-buffer when I open a certain org-mode file full of Lisp > source code blocks. I guess > > Local Variables: >

Re: [O] Feature Request: allow export yes/no for blocks that are valid babel inputs

2019-03-24 Thread Berry, Charles
AFAICS, the functionality you seek already exists, although it is not heavily advertised. `C-c C-x t' will insert an inline task. Within such a `task' you can put text, tables, src blocks and other objects. Setting option `inline:nil' will prevent export, but leave the content visible to src

Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Berry, Charles
John, That's the ticket! The only thing I miss in hydra-ox.el is being able to repeat subtree exports. i.e. with the export dispatcher when `C-c C-e C-s l l' is later followed by 'C-u C-c C-e', it navigates back to the right headline and exports the right subtree. Thanks, Chuck > On Feb

Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Berry, Charles
> On Feb 8, 2019, at 12:27 AM, Jens Lechtenboerger > wrote: > > Hi there, > > I need to assign a key to an Org export back-end. My first attempt > ended in a conflict, so I’d like to collect a (full?) list. > I'm not trolling, but ... There are about 30 packages on melpa. And doing a

Re: [O] Easy templates broken with 9.2

2019-01-27 Thread Berry, Charles
> On Jan 27, 2019, at 9:17 AM, Thomas S. Dye wrote: > > Aloha LB, > > I'm working my way through this change, too, hunting down all the places I've > modified org-structure-template-alist. You'll need to get rid of the > templates you've added to this list. The new function won't run if

Re: [O] org-open-at-point calls visit-tags-table ?!? org-ctags module bug?

2019-01-19 Thread Berry, Charles
> On Jan 18, 2019, at 9:01 PM, David Masterson wrote: > > David Masterson writes: > >> I have various Org files with internal hyperlinks of the form >> [[#mylink][My Link]] that should point to a header with the appropriate >> CUSTOM_ID property that I've setup. For some reason that I

Re: [O] org-open-at-point calls visit-tags-table ?!?

2019-01-18 Thread Berry, Charles
> On Jan 17, 2019, at 6:59 PM, David Masterson wrote: > > I have various Org files with internal hyperlinks of the form > [[#mylink][My Link]] that should point to a header with the appropriate > CUSTOM_ID property that I've setup. For some reason that I can't figure > out, when I call

Re: [O] open link in source code block

2019-01-17 Thread Berry, Charles
> On Jan 16, 2019, at 3:43 PM, Win Treese wrote: > > [Quoting trimmed for the most relevant context.] > >> On Jan 11, 2019, at 7:12 PM, Berry, Charles wrote: >> >>> On Jan 5, 2019, at 7:41 AM, Win Treese wrote: >>> >>>> On Jan 5, 2019,

Re: [O] Feature request: Allow export to convert broken links to plain text

2019-01-13 Thread Berry, Charles
> On Jan 13, 2019, at 1:33 PM, Ryan Thompson wrote: > > Hi, > > This sounds like a good idea, but unfortunately it seems that the > `broken-links:mark' option doesn't preserve the text of the link. In fact, > looking at the source, the code that handles broken link errors doesn't even >

Re: [O] Feature request: Allow export to convert broken links to plain text

2019-01-13 Thread Berry, Charles
> On Jan 12, 2019, at 12:38 PM, Ryan Thompson wrote: > > Hi all, > > I have a use case where I'd like for Org Mode to remove broken links while > preserving their text when exporting. In particular, I'm exporting the same > file multiple times with different sets of headlines excluded each

Re: [O] org-mode export behavior change in 9.2?

2019-01-13 Thread Berry, Charles
> On Jan 12, 2019, at 1:33 PM, Haider Rizvi wrote: > > "Berry, Charles" writes: > >>> On Jan 11, 2019, at 5:03 PM, Haider Rizvi wrote: >>> >>> I've been using literate programming approach with org-babel for a >>> while. I just no

Re: [O] org-mode export behavior change in 9.2?

2019-01-12 Thread Berry, Charles
> On Jan 11, 2019, at 5:03 PM, Haider Rizvi wrote: > > I've been using literate programming approach with org-babel for a > while. I just noticed that with 9.2, when I try to export (c-c c-e h > o) an org doc / section, any shell blocks with a named session are > executed as it is exporting

Re: [O] open link in source code block

2019-01-11 Thread Berry, Charles
> On Jan 5, 2019, at 7:41 AM, Win Treese wrote: > > > >> On Jan 5, 2019, at 5:25 AM, Eric S Fraga wrote: >> >> On Friday, 4 Jan 2019 at 19:38, Win Treese wrote: >>> Suppose I have the following Org file contents: >>> >>> * test >>> >>> #+BEGIN_SRC emacs-lisp >>> (setq yyy 3) >>> ;; See

Re: [O] problems with org-tempo

2018-12-13 Thread Berry, Charles
> On Dec 13, 2018, at 2:36 PM, Uwe Brauer wrote: > > > Hi > > I hoped that org-tempo would be a substitute for the old beloved org > template system. well > >1. It expands >2. The syntax is not the same for example I want > > Key: b >Keyword: >

  1   2   >