Open pierre-rouleau opened 3 years ago
I did not notice the 'p' in the imenup-add-defs-to-menubar()
. This is a imenu+
function. If I disable the use of imenu+
from my setup, the problem goes away. If I set imenu-generic-expression
to something valid inside yang-mode
the problem also goes away (with the added benefit of supporting imenu).
The imenu+
issue has to do with it expecting the imenu-generic-expression
to be set. This has nothing to do about the yang code. The yang-mode code can stay as is and it's possible to add imenu (and imenu+) support via hooks. But Iit might also be a good idea to have built-in imenu support.
I could provide it if there's an interest.
When opening a .yang file that has yang-mode associated with it and using the latest version (20190507.724) of this code Emacs complains that imenu support is not available: I get the following traceback.