mbj4668 / yang-mode

Emacs mode for YANG (RFC 7950)
10 stars 4 forks source link

'Symbol's function definition is void: cl-macroexpand-all' on load #2

Closed nickbroon closed 7 years ago

nickbroon commented 7 years ago

Due to this bug in emacs 24.4: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18845

cc-mode derived modes fail with a Symbol's function definition is void: cl-macroexpand-all error.

The work around is to add this:

  (eval-when-compile
    (if (and (= emacs-major-version 24) (= emacs-minor-version 4))
      (require 'cl)))

Can this be added to yang-mode so that works with the older 24.4 release?

See also: http://emacs.stackexchange.com/questions/2864/symbols-function-definition-is-void-cl-macroexpand-all-when-trying-to-instal