From 7e5b8803052894ebf78a697c4cc5eb410ac9cf72 Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Wed, 6 Jan 2016 14:02:31 +0900 Subject: [PATCH] Fix for using cl function - Remove 'eval-when-compile' Because this package uses cl function - Use cl-lib function instead of cl.el Because loading cl.el at runtime causes byte-compile warning --- markdown-preview-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/markdown-preview-mode.el b/markdown-preview-mode.el index 8835491..d007857 100644 --- a/markdown-preview-mode.el +++ b/markdown-preview-mode.el @@ -5,7 +5,7 @@ ;; Author: Igor Shymko ;; URL: https://github.com/ancane/markdown-preview-mode ;; Keywords: markdown, preview -;; Package-Requires: ((websocket "1.3") (markdown-mode "2.0")) +;; Package-Requires: ((websocket "1.3") (markdown-mode "2.0") (cl-lib "0.5")) ;; This file is not part of GNU Emacs. @@ -22,8 +22,9 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . -(eval-when-compile (require 'cl)) +;;; Code: +(require 'cl-lib) (require 'websocket) (require 'markdown-mode) @@ -66,7 +67,7 @@ (defun mdpm:drop-closed-clients () (setq mdpm:remote-clients - (remove-if-not #'websocket-openp mdpm:remote-clients))) + (cl-remove-if-not #'websocket-openp mdpm:remote-clients))) (defun mdpm:start-websocket-server () (when (not mdpm:websocket-server)