Re: Mistake in LaTeX syntax not detected, strange pdf generated

2022-11-29 Thread Immanuel Litzroth
Same problem here -- seeing mistakes in latex/pdf generation. i On Tue, Nov 29, 2022 at 1:27 PM Dominik Schrempf wrote: > > Hi! > > I wanted to chime in here, because sometimes I do have a similar > problem. > > Whenever I export to LaTeX + PDF, it is pretty difficult to see if the > compilation

Re: Babel C-mode corrupts double-quoted strings in output

2022-08-31 Thread Immanuel Litzroth
from is impossible, if the language even supports #line and #file directives (Rust still doesn't). Immanuel Litzroth On Wed, Aug 31, 2022 at 6:38 PM Martin Jerabek wrote: > > Hi! > > I recently started to use Org Babel for C++ programs. One of the programs > outputs several lines

Re: Moving to a literate file for .emacs

2022-07-04 Thread Immanuel Litzroth
It's possible to let tangling generate comments that will link back to the literate file where you defined the function. https://orgmode.org/manual/Extracting-Source-Code.html See the comment header arg. Then you could advise the relevant functions that do emacs function lookup to check whether

Re:

2022-01-20 Thread Immanuel Litzroth
Just going by what I see, not having tried it: (setq haskell-process-args-stack-ghci (list "--ghci-options" "-XFlexibleContexts")) In your version the process gets 1 argument (with a space in it). In my version it gets 2 args. Immanuel On Thu, Jan 20, 2022 at 8:22 PM Roger Mason wrote: > >

Re: noweb and shell heredocs

2021-11-25 Thread Immanuel Litzroth
You can set the delimiters used for noweb code. org-babel-noweb-wrap-end and org-babel-noweb-wrap-end. I think I set them to @@ in shell code. Immanuel On Thu, Nov 25, 2021 at 7:41 PM Ɓukasz Stelmach wrote: > > Hi, > > Is there anything I may try to stop shell syntax hihgliting in code > blocks

Re: noweb syntax clashing with shell here document syntax

2021-03-22 Thread Immanuel Litzroth
You can choose which delimiters signal noweb. see the documentation of org-babel-noweb-wrap-start and org-babel-noweb-wrap-end. Immanuel On Mon, Mar 22, 2021 at 5:35 PM Sebastian Miele wrote: > > Hello! > > The noweb syntax seems to clash with the syntax of here documents in > shell scripts. In

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
d control over where and how the changes are made. > > --Diego > > > On Mon, Jan 4, 2021 at 3:51 PM Immanuel Litzroth > wrote: >> >> There's that, but you're not gonna do much with that since it is >> global to emacs. If you're brimming >> with vigour you

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
Immanuel Litzroth wrote: > > Well I solved the problem by writing a tangler which can be configured > with tangle-config > you define a tangler by making a hash "language" -> tangle-hooks. The > tangle-hooks are > called at beginning of tangling, on each source block, on

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
ed programming/tangling when I find the time. Immanuel On Mon, Jan 4, 2021 at 4:11 PM Diego Zamboni wrote: > > Agree. It should be possible to make the hook file-local, but still it's not > trivial to have good control over where and how the changes are made. > > --Diego > >

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
is mentioned at > https://orgmode.org/manual/Extracting-Source-Code.html#Hooks-3 > > --Diego > > > > > > On Fri, Jan 1, 2021 at 1:31 PM Immanuel Litzroth > wrote: >> >> I don't think there is an arg for that. I have written a tangler that >> reuses

Re: ist here a :post header arg for tangling?

2021-01-01 Thread Immanuel Litzroth
I don't think there is an arg for that. I have written a tangler that reuses a lot of the org-babel machinery and has a more flexible mechanism to decide what to do with the tangled code -- I use it for example to not write a tangled file if it hasn't changed, meaning that it will not trigger

Re: Unhealthy Haskell babel

2020-12-10 Thread Immanuel Litzroth
kell made with their REPL and babel really can't do much about it, I > suppose. The Haskell .lhs literate option is interesting. Yes, I'd like to > see your tangle option, please. > > On Thu, Dec 10, 2020 at 4:28 AM Immanuel Litzroth > wrote: >> >> I don't think org-babel

Re: Unhealthy Haskell babel

2020-12-10 Thread Immanuel Litzroth
I don't think org-babel is a good fit for compiled languages. If the idea is to just take 1 snippet, and "execute" that it means that to have a consistent whole you'd need to put all the modules of your program into that snippet (already impossible in Haskell, you can have only 1 module per file),

Re: buggy plantuml function

2020-11-23 Thread Immanuel Litzroth
c". Weren't there supposed to be maintainers for this stuff? Has no plantuml maintainer been found? Immanuel On Mon, Nov 23, 2020 at 11:28 AM Heinz Tuechler wrote: > > Immanuel Litzroth wrote/hat geschrieben on/am 15.11.2020 13:27: > > (defun org-babel-plantuml-make-body

buggy plantuml function

2020-11-15 Thread Immanuel Litzroth
(defun org-babel-plantuml-make-body (body params) "Return PlantUML input string. BODY is the content of the source block and PARAMS is a property list of source block parameters. This function relies on the `org-babel-expand-body:generic' function to extract `:var' entries from PARAMS and on

Re: best practices query: non-emacs packages based on tangled source

2020-10-28 Thread Immanuel Litzroth
I think the org way of tangling just doesn't work well for compiled languages. Here are some reasons: - Not possible to tangle all code going to a specified file - Not possible to add line directives without major surgery - Not all language modes do the correct thing - No way to prevent

Re: [O] Bug: org-edit-src keeps splitting the window [9.2.5 (release_9.2.5-504-g3c24be @ /home/immanuel/.emacs.d/straight/build/org/)]

2019-09-02 Thread Immanuel Litzroth
You want me to do that and send a new patch or are you going to do it after you apply the patch? Regards, Immanuel On Mon, Sep 2, 2019 at 9:41 PM Nicolas Goaziou wrote: > > Hello, > > immanuel writes: > > > When org-edit-src-code is called with org-window-setup equal to > > 'split-window-below

Re: [O] Bug: tangling with elisp as lang in a noweb reference doesn't work [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/)]

2019-08-31 Thread Immanuel Litzroth
No problem! I have some more coming up :-) I've been looking at getting org-babel to add line directives for languages that support it. (c, c++, haskell...). It would make literate programming for these kinds of languages much better, and other people have been complaining e.g.

[O] Editing elisp code block inserts spurious , before *

2019-08-21 Thread Immanuel Litzroth
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 bug report will be posted to the Org mailing list.