aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-06-13 16:52:25 -0400
committerStefan Monnier2012-06-13 16:52:25 -0400
commit5a315f9ce965e29d4e8c034c453030d20307be20 (patch)
tree680d23977968c6b35bd5917eaf63979c64ef3aa8
parent16192a571104a951f1d3fee722addd5a32a27ce3 (diff)
downloademacs-5a315f9ce965e29d4e8c034c453030d20307be20.tar.gz
emacs-5a315f9ce965e29d4e8c034c453030d20307be20.zip
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't add print-func.
* lisp/files.el: Require cl-lib. (file-name-non-special): Replace case -> cl-case.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/cl-macs.el19
-rw-r--r--lisp/files.el10
3 files changed, 22 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3669101d3ae..5d08e2e7a81 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12012-06-13 Stefan Monnier <monnier@iro.umontreal.ca> 12012-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * files.el: Require cl-lib.
4 (file-name-non-special): Replace case -> cl-case.
5
6 * emacs-lisp/cl-macs.el (cl-defstruct): Don't add print-func.
7
3 * emacs-lisp/edebug.el (edebug-read-function): Remove old incorrect 8 * emacs-lisp/edebug.el (edebug-read-function): Remove old incorrect
4 mapping from #' to function*. 9 mapping from #' to function*.
5 10
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index bc90898ad00..b3236e84b70 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2731,14 +2731,17 @@ value, that slot cannot be set via `cl-setf'.
2731 (if (cl--safe-expr-p `(progn ,@(mapcar #'cl-second descs))) 2731 (if (cl--safe-expr-p `(progn ,@(mapcar #'cl-second descs)))
2732 (push (cons name t) side-eff)))) 2732 (push (cons name t) side-eff))))
2733 (if print-auto (nconc print-func (list '(princ ")" cl-s) t))) 2733 (if print-auto (nconc print-func (list '(princ ")" cl-s) t)))
2734 (if print-func 2734 ;; Don't bother adding to cl-custom-print-functions since it's not used
2735 (push `(push 2735 ;; by anything anyway!
2736 ;; The auto-generated function does not pay attention to 2736 ;;(if print-func
2737 ;; the depth argument cl-n. 2737 ;; (push `(if (boundp 'cl-custom-print-functions)
2738 (lambda (cl-x cl-s ,(if print-auto '_cl-n 'cl-n)) 2738 ;; (push
2739 (and ,pred-form ,print-func)) 2739 ;; ;; The auto-generated function does not pay attention to
2740 cl-custom-print-functions) 2740 ;; ;; the depth argument cl-n.
2741 forms)) 2741 ;; (lambda (cl-x cl-s ,(if print-auto '_cl-n 'cl-n))
2742 ;; (and ,pred-form ,print-func))
2743 ;; cl-custom-print-functions))
2744 ;; forms))
2742 (push `(setq ,tag-symbol (list ',tag)) forms) 2745 (push `(setq ,tag-symbol (list ',tag)) forms)
2743 (push `(cl-eval-when (compile load eval) 2746 (push `(cl-eval-when (compile load eval)
2744 (put ',name 'cl-struct-slots ',descs) 2747 (put ',name 'cl-struct-slots ',descs)
diff --git a/lisp/files.el b/lisp/files.el
index 619e64ddb04..a934eca4527 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -28,6 +28,8 @@
28 28
29;;; Code: 29;;; Code:
30 30
31(eval-when-compile (require 'cl-lib))
32
31(defvar font-lock-keywords) 33(defvar font-lock-keywords)
32 34
33(defgroup backup nil 35(defgroup backup nil
@@ -6459,20 +6461,20 @@ only these files will be asked to be saved."
6459 "/" 6461 "/"
6460 (substring (car pair) 2))))) 6462 (substring (car pair) 2)))))
6461 (setq file-arg-indices (cdr file-arg-indices)))) 6463 (setq file-arg-indices (cdr file-arg-indices))))
6462 (case method 6464 (cl-case method
6463 (identity (car arguments)) 6465 (identity (car arguments))
6464 (add (concat "/:" (apply operation arguments))) 6466 (add (concat "/:" (apply operation arguments)))
6465 (insert-file-contents 6467 (insert-file-contents
6466 (let ((visit (nth 1 arguments))) 6468 (let ((visit (nth 1 arguments)))
6467 (prog1 6469 (prog1
6468 (apply operation arguments) 6470 (apply operation arguments)
6469 (when (and visit buffer-file-name) 6471 (when (and visit buffer-file-name)
6470 (setq buffer-file-name (concat "/:" buffer-file-name)))))) 6472 (setq buffer-file-name (concat "/:" buffer-file-name))))))
6471 (unquote-then-quote 6473 (unquote-then-quote
6472 (let ((buffer-file-name (substring buffer-file-name 2))) 6474 (let ((buffer-file-name (substring buffer-file-name 2)))
6473 (apply operation arguments))) 6475 (apply operation arguments)))
6474 (t 6476 (t
6475 (apply operation arguments))))) 6477 (apply operation arguments)))))
6476 6478
6477;; Symbolic modes and read-file-modes. 6479;; Symbolic modes and read-file-modes.
6478 6480