Skip to content

Commit

Permalink
Improve fix for #295
Browse files Browse the repository at this point in the history
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 23, 2017
1 parent 8546620 commit 979107e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editors/protobuf-mode.el
Expand Up @@ -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))

Expand Down

0 comments on commit 979107e

Please sign in to comment.