On Thu 12 Oct 2023 at 14:40, Ihor Radchenko <yanta...@posteo.net> wrote:
> Andrea <andrea-...@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.