summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2012-06-22 17:24:54 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-06-22 17:24:54 -0400
commit36cec983d4e680e28e7066fda505910cd549f509 (patch)
treef6dc7ad0e0822bc5edd4f12e963969059e0989b5 /lisp/files.el
parentd35af63cd671563fd188c3b0a1ef30067027c7aa (diff)
downloademacs-36cec983d4e680e28e7066fda505910cd549f509.tar.gz
Further GV/CL cleanups.
* lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their gv-expander. (gv--defun-declaration): New function. (defun-declarations-alist): Use it. (gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove. (gv-place): Autoload. * lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's original definition of dotimes and dolist. * lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused. (cl-dolist, cl-dotimes): Use `dolist' and `dotimes'. * lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here. (cl-fifth, cl-sixth, cl-seventh, cl-eighth) (cl-ninth, cl-tenth): Move gv handler to the function's definition. * lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler to the function's definition. * lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%. * lisp/window.el: * lisp/files.el: * lisp/faces.el: * lisp/env.el: Don't use CL.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 857dbc981f0..e19d1d2f16e 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -28,8 +28,6 @@
;;; Code:
-(eval-when-compile (require 'cl-lib))
-
(defvar font-lock-keywords)
(defgroup backup nil
@@ -6464,19 +6462,19 @@ only these files will be asked to be saved."
"/"
(substring (car pair) 2)))))
(setq file-arg-indices (cdr file-arg-indices))))
- (cl-case method
- (identity (car arguments))
- (add (concat "/:" (apply operation arguments)))
- (insert-file-contents
+ (pcase method
+ (`identity (car arguments))
+ (`add (concat "/:" (apply operation arguments)))
+ (`insert-file-contents
(let ((visit (nth 1 arguments)))
(prog1
(apply operation arguments)
(when (and visit buffer-file-name)
(setq buffer-file-name (concat "/:" buffer-file-name))))))
- (unquote-then-quote
+ (`unquote-then-quote
(let ((buffer-file-name (substring buffer-file-name 2)))
(apply operation arguments)))
- (t
+ (_
(apply operation arguments)))))
;; Symbolic modes and read-file-modes.