Permalink
Browse files

Improve fix for #295

Requiring the legacy ‘cl’ library unconditionally pollutes the namespace.
Instead, require it only when compiling and in known-broken versions.

This is almost the same patch that opoplawski suggested, except that I removed
the test for ‘emacs-repository-version’, which isn’t defined in Emacs 24.3.
  • Loading branch information...
phst committed May 18, 2017
1 parent 8546620 commit 979107ec7a257cbb6a0fa221956a9b2ada03b7ad
Showing with 3 additions and 1 deletion.
  1. +3 −1 editors/protobuf-mode.el
View
@@ -64,9 +64,11 @@
;;; Code:
(require 'cc-mode)
(require 'cl)
(eval-when-compile
(and (= emacs-major-version 24)
(>= emacs-minor-version 4)
(require 'cl))
(require 'cc-langs)
(require 'cc-fonts))

0 comments on commit 979107e

Please sign in to comment.