]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/spinner/spinner.el
Add *.info and dir to debbugs
[gnu-emacs-elpa] / packages / spinner / spinner.el
index 95d15684b534e6a1346aeaaaa0086a68881ae533..a21bf42a5e78c7ad698b8ce3780abb5e6a6b267b 100644 (file)
@@ -1,9 +1,10 @@
 ;;; spinner.el --- Add spinners and progress-bars to the mode-line for ongoing operations -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2015  Artur Malabarba
+;; Copyright (C) 2015 Free Software Foundation, Inc.
 
 ;; Author: Artur Malabarba <bruce.connor.am@gmail.com>
 ;; Version: 1.0
+;; Package-Requires: ((cl-lib "0.5"))
 ;; URL: https://github.com/Bruce-Connor/spinner.el
 ;; Keywords: processes mode-line
 
@@ -48,6 +49,7 @@
 
 \f
 ;;; Code:
+(require 'cl-lib)
 
 (defconst spinner-types
   '((3-line-clock . ["┤" "┘" "┴" "└" "├" "┌" "┬" "┐"])
@@ -137,7 +139,7 @@ is chosen as the spinner type."
 
   ;; Maybe add to mode-line.
   (unless (memq 'spinner--mode-line-construct mode-line-format)
-    (setq mode-line-format (copy-list mode-line-format))
+    (setq mode-line-format (cl-copy-list mode-line-format))
     (let ((cell (memq 'mode-line-buffer-identification mode-line-format)))
       (if cell
           (setcdr cell (cons 'spinner--mode-line-construct (cdr cell)))