Replace cl in some obsolete files
* lisp/obsolete/assoc.el, lisp/obsolete/fast-lock.el: * lisp/obsolete/mouse-sel.el: No need for cl. * lisp/obsolete/lazy-lock.el, lisp/obsolete/pgg-gpg.el: * lisp/obsolete/pgg-parse.el, lisp/obsolete/pgg-pgp.el: * lisp/obsolete/pgg-pgp5.el, lisp/obsolete/pgg.el: * lisp/obsolete/sregex.el: Replace cl with cl-lib.
This commit is contained in:
parent
3a34c076b9
commit
07e340daaf
10 changed files with 13 additions and 33 deletions
|
@ -27,7 +27,6 @@
|
|||
;; fetching off key-value pairs in association lists.
|
||||
|
||||
;;; Code:
|
||||
(eval-when-compile (require 'cl))
|
||||
|
||||
(defun asort (alist-symbol key)
|
||||
"Move a specified key-value pair to the head of an alist.
|
||||
|
|
|
@ -190,10 +190,6 @@
|
|||
(defvar font-lock-face-list)
|
||||
|
||||
(eval-when-compile
|
||||
;;
|
||||
;; We don't do this at the top-level as we only use non-autoloaded macros.
|
||||
(require 'cl)
|
||||
;;
|
||||
;; We use this to preserve or protect things when modifying text properties.
|
||||
(defmacro save-buffer-state (varlist &rest body)
|
||||
"Bind variables according to VARLIST and eval BODY restoring buffer state."
|
||||
|
|
|
@ -267,11 +267,9 @@
|
|||
;;; Code:
|
||||
|
||||
(require 'font-lock)
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
(eval-when-compile
|
||||
;; We don't do this at the top-level as we only use non-autoloaded macros.
|
||||
(require 'cl)
|
||||
;;
|
||||
;; We use this to preserve or protect things when modifying text properties.
|
||||
(defmacro save-buffer-state (varlist &rest body)
|
||||
"Bind variables according to VARLIST and eval BODY restoring buffer state."
|
||||
|
@ -977,7 +975,7 @@ verbosity is controlled via the variable `lazy-lock-stealth-verbose'."
|
|||
(while (setq beg (text-property-any beg (point-max) 'lazy-lock t))
|
||||
(setq next (or (text-property-any beg (point-max) 'lazy-lock nil)
|
||||
(point-max)))
|
||||
(incf size (- next beg))
|
||||
(cl-incf size (- next beg))
|
||||
(setq beg next))
|
||||
;; Float because using integer multiplication will frequently overflow.
|
||||
(truncate (* (/ (float size) (point-max)) 100)))))
|
||||
|
|
|
@ -135,9 +135,6 @@
|
|||
(require 'mouse)
|
||||
(require 'thingatpt)
|
||||
|
||||
(eval-when-compile
|
||||
(require 'cl))
|
||||
|
||||
;;=== User Variables ======================================================
|
||||
|
||||
(defgroup mouse-sel nil
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(eval-when-compile
|
||||
(require 'cl))
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
(require 'pgg)
|
||||
|
||||
|
@ -303,7 +302,7 @@ passphrase cache or user."
|
|||
|
||||
(defun pgg-gpg-select-matching-key (message-keys secret-keys)
|
||||
"Choose a key from MESSAGE-KEYS that matches one of the keys in SECRET-KEYS."
|
||||
(loop for message-key in message-keys
|
||||
(cl-loop for message-key in message-keys
|
||||
for message-key-id = (and (equal (car message-key) 1)
|
||||
(cdr (assq 'key-identifier
|
||||
(cdr message-key))))
|
||||
|
|
|
@ -35,10 +35,7 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(eval-when-compile
|
||||
;; For Emacs <22.2 and XEmacs.
|
||||
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))
|
||||
(require 'cl))
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
(defgroup pgg-parse ()
|
||||
"OpenPGP packet parsing."
|
||||
|
@ -229,7 +226,7 @@
|
|||
(list content-tag packet-bytes header-bytes)))
|
||||
|
||||
(defun pgg-parse-packet (ptag)
|
||||
(case (car ptag)
|
||||
(cl-case (car ptag)
|
||||
(1 ;Public-Key Encrypted Session Key Packet
|
||||
(pgg-parse-public-key-encrypted-session-key-packet ptag))
|
||||
(2 ;Signature Packet
|
||||
|
@ -282,7 +279,7 @@
|
|||
(1+ (cdr length-type)))))
|
||||
|
||||
(defun pgg-parse-signature-subpacket (ptag)
|
||||
(case (car ptag)
|
||||
(cl-case (car ptag)
|
||||
(2 ;signature creation time
|
||||
(cons 'creation-time
|
||||
(let ((bytes (pgg-read-bytes 4)))
|
||||
|
|
|
@ -25,8 +25,7 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(eval-when-compile
|
||||
(require 'cl))
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
(require 'pgg)
|
||||
|
||||
|
|
|
@ -25,8 +25,7 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(eval-when-compile
|
||||
(require 'cl))
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
(require 'pgg)
|
||||
|
||||
|
|
|
@ -29,11 +29,7 @@
|
|||
(require 'pgg-parse)
|
||||
(autoload 'run-at-time "timer")
|
||||
|
||||
;; Don't merge these two `eval-when-compile's.
|
||||
(eval-when-compile
|
||||
;; For Emacs <22.2 and XEmacs.
|
||||
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))
|
||||
(require 'cl))
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
;;; @ utility functions
|
||||
;;;
|
||||
|
@ -258,7 +254,7 @@ regulate cache behavior."
|
|||
(defmacro pgg-convert-lbt-region (start end lbt)
|
||||
`(let ((pgg-conversion-end (set-marker (make-marker) ,end)))
|
||||
(goto-char ,start)
|
||||
(case ,lbt
|
||||
(cl-case ,lbt
|
||||
(CRLF
|
||||
(while (progn
|
||||
(end-of-line)
|
||||
|
|
|
@ -240,7 +240,7 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(eval-when-compile (require 'cl))
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
;; Compatibility code for when we didn't have shy-groups
|
||||
(defvar sregex--current-sregex nil)
|
||||
|
@ -487,7 +487,7 @@ has one of the following forms:
|
|||
(concat "\\(?:" (regexp-quote exp) "\\)")
|
||||
(regexp-quote exp)))
|
||||
((symbolp exp)
|
||||
(ecase exp
|
||||
(cl-ecase exp
|
||||
(any ".")
|
||||
(bol "^")
|
||||
(eol "$")
|
||||
|
|
Loading…
Add table
Reference in a new issue