5 maj 2023 kl. 18.26 skrev Mattias EngdegÄrd : > Stupid printf-debugging actually, nothing fancier than that. Here is some of that stupidity I promised. You probably want to use it with (set-regexp-trace-file "re.log") (unwind-protect (do-something-interesting) (set-regexp-trace-file nil)) so that you don't trace more than necessary. The file may become large, but it's useful data for off-line analysis, scripted or just looking at it in an editor. The first letter of each line indicates a regexp cache hit (H) or miss (M).