Rudolf Adamkovič <rud...@adamkovic.org> writes:

> I noticed that `dot' source blocks do not work out of the box: C-c C-c
> works but C-c ' uses the Fundamental mode, even with the Graphviz MELPA
> package installed.

They work. Fundamental mode is usable, isn't it?
In contrast, if you force using graphwiz-dot-mode from MELPA, and it is
not installed, there will be an error.

Maybe we should solve this problem more generally, and universally
change babel to try deriving the major mode first and fall back to
fundamental-mode if the major mode is not available.

> This is because the major mode for the Dot language is `graphviz-dot'
> and not `dot'.  The attached patch improves the situation for the source
> blocks defined as `#+BEGIN_SRC graphviz-dot', namely it makes C-c C-c
> work with them.

Why not simply graphviz?

> P.S. As the next step, we could perhaps rename `ob-dot' to
> `ob-graphviz-dot' and make `dot' the alias, not `graphviz-dot', so that
> the officially documented `#+BEGIN_SRC dot' works out of the box too.

But the official name is "DOT language" isn't it?
I see no reason for renaming.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to