plantuml-mode icon indicating copy to clipboard operation
plantuml-mode copied to clipboard

Allow reinitialization of font lock regexps

Open exot opened this issue 3 years ago • 3 comments

In plantuml-mode, initialization of the font locking regular expressions is done by asking the current version of plantuml for its supported keywords, builtins, etc. Every so often, this might fail for any reason, leaving the current Emacs session with invalid font lock information for plantuml. Redoing the initialization process is tedious, as the corresponding function plantuml-init-once does not allow for that to be done easily (one would have to undefine a lot of global variables to do so).

This commit introduces a force parameter for plantuml-init-once to conduct reinitialization of all font lock information. It also moves regular expressions meant for indentation out of plantuml-init-once, as those are initialized by literal values that do not depend on any runtime information.

exot avatar Jul 03 '21 08:07 exot

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 08:04 stale[bot]

Bump to make stale-bot happy.

exot avatar Apr 16 '22 15:04 exot

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 04:09 stale[bot]