Skip to content

Commit

Permalink
Fix byte-compile warn on cl-remove-duplicates
Browse files Browse the repository at this point in the history
Run make
emacs -Q --batch -L . --eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile elisp-demos.el

In toplevel form:
elisp-demos.el:286:1:Error: the function ‘cl-remove-duplicates’ might not be defined at runtime.
  • Loading branch information
xuchunyang committed Jan 16, 2024
1 parent e42f069 commit 82e1a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elisp-demos.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

;;; Code:

(eval-when-compile (require 'cl-lib))
(require 'cl-lib)
(require 'subr-x)
(require 'org)

Expand Down Expand Up @@ -85,7 +85,7 @@ If set, new notes are added to the first file in this list."
(delay-mode-hooks (org-mode))
(while (re-search-forward "^\\* +\\(.+\\)$" nil t)
(push (org-entry-get (point) "ITEM") symbols))))
(mapcar 'intern (sort (cl-remove-duplicates symbols :test #'eq) #'string<))))
(mapcar 'intern (sort (cl-delete-duplicates symbols :test #'eq) #'string<))))

(defun elisp-demos-find-demo (symbol)
"Find the demo of the SYMBOL."
Expand Down

0 comments on commit 82e1a75

Please sign in to comment.