diff options
| author | Stefan Monnier | 2014-04-06 14:15:09 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-04-06 14:15:09 -0400 |
| commit | 7b656e4a55d012f5e35801d2156ae4bba9bd1f30 (patch) | |
| tree | 01196575c38a1d88af7be2d52a497c25b310626e | |
| parent | faa521749378dbfd97f49a0e5c48f6da2ce1ddba (diff) | |
| download | emacs-7b656e4a55d012f5e35801d2156ae4bba9bd1f30.tar.gz emacs-7b656e4a55d012f5e35801d2156ae4bba9bd1f30.zip | |
* lisp/dired-aux.el (dired-file-set-difference): Use lexical-scoping.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 27 |
2 files changed, 22 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2c8387f7708..2016bcd3e02 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,11 @@ | |||
| 1 | 2014-04-06 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * dired-aux.el (dired-file-set-difference): Use lexical-scoping. | ||
| 4 | |||
| 1 | 2014-04-05 Leo Liu <sdl.web@gmail.com> | 5 | 2014-04-05 Leo Liu <sdl.web@gmail.com> |
| 2 | 6 | ||
| 3 | * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add | 7 | * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): |
| 4 | define-compilation-mode. | 8 | Add define-compilation-mode. |
| 5 | 9 | ||
| 6 | 2014-04-04 João Távora <joaotavora@gmail.com> | 10 | 2014-04-04 João Távora <joaotavora@gmail.com> |
| 7 | 11 | ||
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 432d2307725..bb93cce6500 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -215,19 +215,24 @@ condition. Two file items are considered to match if they are equal | |||
| 215 | (dolist (file1 list1) | 215 | (dolist (file1 list1) |
| 216 | (unless (let ((list list2)) | 216 | (unless (let ((list list2)) |
| 217 | (while (and list | 217 | (while (and list |
| 218 | (not (let* ((file2 (car list)) | 218 | (let* ((file2 (car list)) |
| 219 | (fa1 (car (cddr file1))) | 219 | (fa1 (car (cddr file1))) |
| 220 | (fa2 (car (cddr file2))) | 220 | (fa2 (car (cddr file2)))) |
| 221 | (size1 (nth 7 fa1)) | 221 | (or |
| 222 | (size2 (nth 7 fa2)) | 222 | (not (equal (car file1) (car file2))) |
| 223 | (mtime1 (float-time (nth 5 fa1))) | 223 | (eval predicate |
| 224 | (mtime2 (float-time (nth 5 fa2)))) | 224 | `((fa1 . ,fa1) |
| 225 | (and | 225 | (fa2 . ,fa2) |
| 226 | (equal (car file1) (car file2)) | 226 | (size1 . ,(nth 7 fa1)) |
| 227 | (not (eval predicate)))))) | 227 | (size2 . ,(nth 7 fa2)) |
| 228 | (mtime1 | ||
| 229 | . ,(float-time (nth 5 fa1))) | ||
| 230 | (mtime2 | ||
| 231 | . ,(float-time (nth 5 fa2))) | ||
| 232 | ))))) | ||
| 228 | (setq list (cdr list))) | 233 | (setq list (cdr list))) |
| 229 | list) | 234 | list) |
| 230 | (setq res (cons file1 res)))) | 235 | (push file1 res))) |
| 231 | (nreverse res)))) | 236 | (nreverse res)))) |
| 232 | 237 | ||
| 233 | (defun dired-files-attributes (dir) | 238 | (defun dired-files-attributes (dir) |