Skip to content

Commit

Permalink
Re-factor cl(-lib) require code
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed May 4, 2017
1 parent 246ab75 commit 026f78b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/rtags.el
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,15 @@
:group 'tools
:link '(url-link :tag "Website" "http://rtags.net"))

(if (version< emacs-version "24.3")
(eval-when-compile
(require 'cl))
(require 'cl-lib)
(defalias 'defun* 'cl-defun))
(require 'bookmark)
(require 'cc-mode)
(require 'tramp)
(require 'simple)
(if (or (> emacs-major-version 24)
(< emacs-major-version 23)
(and (= emacs-major-version 24)
(>= emacs-minor-version 3)))
(progn
(require 'cl-lib)
(defalias 'defun* 'cl-defun)) ;; cl-lib has own namespace now
(eval-when-compile
(require 'cl)))
(require 'compile)
(require 'thingatpt)
(require 'repeat)
Expand Down Expand Up @@ -4998,6 +4994,6 @@ the user enter missing field manually."
(set-process-sentinel rtags-install-process 'rtags-install-process-sentinel)
(set-process-filter rtags-install-process 'rtags-install-process-filter))))


(provide 'rtags)

;;; rtags.el ends here

0 comments on commit 026f78b

Please sign in to comment.