Aloha all,

Dot code blocks aren't fontified correctly here. I get the following trace when I toggle debug on error:


  Debugger entered--Lisp error: (void-variable graphviz-dot)
    #f(compiled-function () #<bytecode 0x1049c72a11e8e300>)()
eval-after-load(flycheck #f(compiled-function () #<bytecode 0x1049c72a11e8e300>)) byte-code("\300\301\302\"\210\303\304!\207" [eval-after-load flycheck #f(compiled-function () #<bytecode 0x1049c72a11e8e300>) provide graphviz-dot-flycheck] 3)
    #<subr require>(graphviz-dot-flycheck)
    apply(#<subr require> graphviz-dot-flycheck)
    require(graphviz-dot-flycheck)
    #f(compiled-function () #<bytecode 0x198139685c62>)()
eval-after-load(flycheck #f(compiled-function () #<bytecode 0x198139685c62>)) byte-code("\301\302\303\"\210\3041\20\0\305\306!0\202\24\0\210\202$\0\203$\0\307\310\311\312#\210\313\310\10\312\314$\210\311\207" [graphviz-dot-mode-map eval-after-load flycheck #f(compiled-function () #<bytecode 0x198139685c62>) (error) require easymenu defvar-1 dot-menu nil "Graphviz Mode menu" easy-menu-do-define ("Graphviz" ["Indent Graph" graphviz-dot-indent-graph t] ["Comment Out Region" comment-region (mark)] ["Uncomment Region" uncomment-region (mark)] "-" ["Compile" compile t] ["Preview" graphviz-dot-preview (and (buffer-file-name) (not (buffer-modified-p)))] ["External Viewer" graphviz-dot-view (buffer-file-name)] "-" ["Customize..." graphviz-dot-customize t])] 5)
    graphviz-dot-mode()
org-src-font-lock-fontify-block(#("dot" 0 3 (font-lock-fontified t fontified t isearch-open-invisible-temporary org-fold-core--isearch-show-temporary isearch-open-invisible org-fold-core--isearch-show)) 54243 55652)
    org-fontify-meta-lines-and-blocks-1(55662)
    org-fontify-meta-lines-and-blocks(55662)
    font-lock-fontify-keywords-region(54206 55662 nil)
    font-lock-default-fontify-region(54206 55662 nil)
    font-lock-fontify-region(54206 55662)
#f(compiled-function (fun) #<bytecode -0x1569d0e599f40d43>)(font-lock-fontify-region) run-hook-wrapped(#f(compiled-function (fun) #<bytecode -0x1569d0e599f40d43>) font-lock-fontify-region)
    jit-lock--run-functions(54206 55662)
    jit-lock-fontify-now(54206 55690)
    jit-lock-function(54206)
    redisplay_internal\ \(C\ function\)()


Org mode version 9.7.31 (9.7.31-4e6d38 @ /home/dk/.config/emacs/spacemacs/elpa/29.4/develop/org-9.7.31/)

GNU Emacs 29.4.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2025-08-01

I use dot code blocks fairly frequently and don't remember this problem earlier. My Spacemacs configuration hasn't changed recently, but I haven't tried to setup emacs -q to diagnose the problem.

Any pointers are welcome.

All the best,
Tom

--
Thomas S. Dye
https://tsdye.online/tsdye

Reply via email to