[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] org-babel-tangle may fail due to (org-babel-tangle-collect-blo
From: |
Andrea |
Subject: |
Re: [BUG] org-babel-tangle may fail due to (org-babel-tangle-collect-blocks lang-re tangle-file) [9.6.9 ( @ /home/andrea/.emacs.d/elpa/org-9.6.9/)] |
Date: |
Thu, 12 Oct 2023 15:50:01 +0100 |
User-agent: |
mu4e 1.6.10; emacs 28.1 |
On Thu 12 Oct 2023 at 14:40, Ihor Radchenko <yantar92@posteo.net> wrote:
> Andrea <andrea-dev@hotmail.com> writes:
>
>> This is the full trace I get running "emacs --debug-init" (sorry I should
>> have added it in my bug report):
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> string-match("\\`\\(?:e\\(?:\\(?:macs-\\)?lisp\\)\\)\\'" nil nil)
>> string-match-p("\\`\\(?:e\\(?:\\(?:macs-\\)?lisp\\)\\)\\'" nil)
>> (not (string-match-p lang-re src-lang))
>
> That looks like a malformed src block with missing lang.
> I recommend running M-x org-lint
>
Mmm... I run org-lint (and fix unrelated issues, thanks!) and the problem
remains.
It is strange though, this is the block on which the function
stops working (it is the first actually)
#+begin_src emacs-lisp :tangle yes
(defun my/init-audit-message (string)
"Print out STRING and calculate length of init."
(message string)
(if (not (string= "end" (substring string -3)))
(setq my/init-audit-message-begin (current-time))
(message
"It took %s seconds in total."
(time-to-seconds
(time-subtract
(current-time)
my/init-audit-message-begin))))
nil)
#+end_src
Must be something wrong with my configuration then.
I will update this issue if I find that out.