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
there's such a "link comment" near the definition and jump to that instead. All this is rather hackish and I stopped doing my init files in literate org. Immanuel On Mon, Jul 4, 2022 at 4:07 PM Stephen Eglen wrote: > > I see many users are switching to using a 'literate program

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 P

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 c

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 >

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

2021-01-04 Thread Immanuel Litzroth
I also seem to remember that the buffer you are dropped into after tangling doesn't even have the correct major mode set. 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 goo

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

2021-01-04 Thread Immanuel Litzroth
Oh and I also made the tangling itself more flexible in that you can now also choose to only tangle stuff going to a certain file. This is mainly to be able to define an interactive command that tangles/reloads everything going to the file under point. Immanuel On Mon, Jan 4, 2021 at 4:31 PM

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

2021-01-04 Thread Immanuel Litzroth
beginning of the body") (end-body "buffer pos of the end of the body")) >>> That way I can tangle a multi language org file and do the correct thing for each of the language by defining functions of interest. It's quite flexible, I'm going to use it to do some aspect-orient

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

2021-01-04 Thread Immanuel Litzroth
containing the result of tangling. Immanuel On Mon, Jan 4, 2021 at 3:07 PM Diego Zamboni wrote: > > There's =org-babel-post-tangle-hook=, which AFAICT specifies hooks that will > be run with the tangled code in a temporary buffer. I couldn't find much > documentation nor examples, but it

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

2021-01-01 Thread Immanuel Litzroth
recompile. The project is private now but if you're interested I can give you access to it. What exactly are you trying to do? Immanuel On Fri, Jan 1, 2021 at 2:09 AM George Mauer wrote: > > I'd like to run some code to post-process files after they are tangled. Is > there a h

Re: Unhealthy Haskell babel

2020-12-10 Thread Immanuel Litzroth
Well another possible solution is to wrap the code blocks in :{ xxx :} in (defun org-babel-execute:haskell (body params) -- ob-haskell.el Immanuel On Thu, Dec 10, 2020 at 6:21 PM Lawrence Bottorff wrote: > > I see your point, i.e., compiled, multi-file projects are not really

Re: Unhealthy Haskell babel

2020-12-10 Thread Immanuel Litzroth
e per file), compile that, run the resulting binary. Or org mode would have to have some idea of what needs to be retangled & rebuilt. I think that using org-babel for compiled, multifile languages will only work in very simple cases -- and even then.. -- but will lead to problems very soon. Im

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
-p "@start" body t) assignments (format "@startuml\n%s\n@enduml" (org-babel-expand-body:generic body params assignments) expands to assignments if the body starts with @startmindmap? Immanuel -- -- Researching the dual problem of finding the function that has a given point as fixpoint.

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

2020-10-28 Thread Immanuel Litzroth
or Haskell, C++ and elisp. It's in a private repo on github because it's not ready for release yet, but if someone is interested I can give them access. Immanuel On Tue, Oct 27, 2020 at 11:30 PM Dr. Arne Babenhauserheide wrote: > > > TRS-80 writes: > > > Therefore, any stuff I plan on relea

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 &g

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
. Would there be interest in such a feature, if it doesn't change current behaviour? Immanuel On Fri, Aug 30, 2019 at 11:37 PM Nicolas Goaziou wrote: > > Hello, > > immanuel writes: > > > #+NAME: this is a test > > #+BEGIN_SRC elisp :tangle no > > > > (message

[O] Bug: org-babel-tangle-clean seems buggy [9.2.5 (release_9.2.5-504-g3c24be @ /home/immanuel/.emacs.d/straight/build/org/)]

2019-08-31 Thread immanuel
]\\[.*\\]\\]" nil t) (re-search-forward (org-babel-noweb-wrap) nil t)) (delete-region (save-excursion (beginning-of-line 1) (point)) (save-excursion (end-of-line 1) (forward-char 1) (point) #END_SRC Immanuel Emacs : GNU Emacs 26.2 (build 1, x86_64-p

[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-08-30 Thread immanuel
er #'split-window-horizontally)) (pop-to-buffer-same-window buffer)) (`other-frame (pcase context Emacs : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-07-17 Package: Org mode version 9.2.5 (release_9.2.5-504-g3c24be @ /home/immanuel/.emacs.d/strai

[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-25 Thread immanuel
lang) "-mode"))) #+END_SRC Immanuel Emacs : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-07-17 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/) current state: == (setq org-src-m

[O] Bug: org-babel-tangle-comment-links does not honor org-babel-tangle-uncomment-comments in noweb comments [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/)]

2019-08-24 Thread immanuel
rent) org-latex-listings t org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-odt-format-headline-function 'org-odt-format-headline-default-function org-

[O] Bug: org-babel-tangle-comment-links does not start-line but start-point. [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/)]

2019-08-24 Thread immanuel
tings t org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-odt-format-headline-function 'org-odt-format-headline-default-function org-ascii-format-inlinet

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

2019-08-21 Thread Immanuel Litzroth
el (defvar *a-var* "blah") (defun v() (interactive) ,*a-var*) #+END_SRC This happens in a clean emacs started the -q flag, so it should not have anything to do with my configuration. Immanuel Emacs : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-07-

[O] Bug: :lexical header argument not handled when tangling [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/)]

2019-08-21 Thread immanuel
all _lex-p) (message "lexical binding") (message "no lexical binding" (lex-p) #+END_SRC When evaluating this code block with C-c C-c I get lexical binding. When tangling it or with org-babel-load-file I get no lexical binding. Immanuel Emacs : GNU Emacs 26.2