diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-07-03 23:58:12 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-07-03 23:58:12 -0700 |
commit | 23343e36f5854ad0b0aaa69183807311a19dc3a9 (patch) | |
tree | 868035a531f65c6078ce743bb758a999c87b713d /.emacs.d/initlibs | |
parent | 0d2815030dc5fa51dbff53e0485e79733b8d408f (diff) | |
download | dotfiles-23343e36f5854ad0b0aaa69183807311a19dc3a9.tar.gz |
patch diminish.el to use cl-lib not cl
Diffstat (limited to '.emacs.d/initlibs')
-rw-r--r-- | .emacs.d/initlibs/diminish.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.emacs.d/initlibs/diminish.el b/.emacs.d/initlibs/diminish.el index ae92ea8e..b7ddc099 100644 --- a/.emacs.d/initlibs/diminish.el +++ b/.emacs.d/initlibs/diminish.el @@ -107,7 +107,7 @@ ;;; Code: -(eval-when-compile (require 'cl)) +(eval-when-compile (require 'cl-lib)) (defvar diminish-must-not-copy-minor-mode-alist nil "Non-nil means loading diminish.el won't (copy-alist minor-mode-alist). @@ -118,7 +118,7 @@ try to diminish abbrev-mode under GNU Emacs 19.34, you'll get the error message \"Attempt to modify read-only object\".") (or diminish-must-not-copy-minor-mode-alist - (callf copy-alist minor-mode-alist)) + (cl-callf copy-alist minor-mode-alist)) (defvar diminished-mode-alist nil "The original `minor-mode-alist' value of all (diminish)ed modes.") @@ -179,10 +179,10 @@ to TO-WHAT if it's > 1 char long & doesn't already begin with a space." nil nil nil 'diminish-history-names))) (let ((minor (assq mode minor-mode-alist))) (or minor (error "%S is not currently registered as a minor mode" mode)) - (callf or to-what "") + (cl-callf or to-what "") (when (> (length to-what) 1) (or (= (string-to-char to-what) ?\ ) - (callf2 concat " " to-what))) + (cl-callf2 concat " " to-what))) (or (assq mode diminished-mode-alist) (push (copy-sequence minor) diminished-mode-alist)) (setcdr minor (list to-what)))) @@ -224,7 +224,7 @@ the arg must be quoted as a symbol, as in (diminish-undo 'diminished-modes)." (let ((diminished-modes diminished-mode-alist)) (while diminished-modes (diminish-undo (caar diminished-modes)) - (callf cdr diminished-modes))) + (cl-callf cdr diminished-modes))) (let ((minor (assq mode minor-mode-alist)) (diminished (assq mode diminished-mode-alist))) (or minor @@ -261,14 +261,14 @@ what diminished modes would be on the mode-line if they were still minor." (when (symbolp minor-name) ;; This minor mode uses symbol indirection in the cdr (let ((symbols-seen (list minor-name))) - (while (and (symbolp (callf symbol-value minor-name)) + (while (and (symbolp (cl-callf symbol-value minor-name)) (not (memq minor-name symbols-seen))) (push minor-name symbols-seen)))) (push minor-name message))) - (callf cdr minor-modes)) + (cl-callf cdr minor-modes)) (setq message (mapconcat 'identity (nreverse message) "")) (when (= (string-to-char message) ?\ ) - (callf substring message 1)) + (cl-callf substring message 1)) (message "%s" message))) ;; A human mind is a Black Forest of diminished modes. Some are dangerous; |