diff options
| author | Juri Linkov | 2012-09-19 23:09:55 +0300 |
|---|---|---|
| committer | Juri Linkov | 2012-09-19 23:09:55 +0300 |
| commit | 127342224ea0971d14077f9290d91064972c78ca (patch) | |
| tree | f6464ecd9ea37e7c5534197993300044c7a3fd50 | |
| parent | ce97595bd4604270075a0a7ff04bceaa97b42d9f (diff) | |
| download | emacs-127342224ea0971d14077f9290d91064972c78ca.tar.gz emacs-127342224ea0971d14077f9290d91064972c78ca.zip | |
* lisp/dired-aux.el (dired-diff): Add (require 'diff) because
`diff-latest-backup-file' is not autoloaded.
(dired-do-chxxx, dired-do-chmod): Set `no-error-if-not-filep' arg
of `dired-get-filename' to t to not report error when there is
no default file on the current line.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d5e01ed08a2..d2266f9952f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-09-19 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * dired-aux.el (dired-diff): Add (require 'diff) because | ||
| 4 | `diff-latest-backup-file' is not autoloaded. | ||
| 5 | (dired-do-chxxx, dired-do-chmod): Set `no-error-if-not-filep' arg | ||
| 6 | of `dired-get-filename' to t to not report error when there is | ||
| 7 | no default file on the current line. | ||
| 8 | |||
| 1 | 2012-09-19 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2012-09-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 10 | ||
| 3 | * emacs-lisp/macroexp.el (macroexp--funcall-if-compiled): Rename from | 11 | * emacs-lisp/macroexp.el (macroexp--funcall-if-compiled): Rename from |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 7ba67050337..3d3fe491899 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -70,7 +70,7 @@ the string of command switches for the third argument of `diff'." | |||
| 70 | (interactive | 70 | (interactive |
| 71 | (let* ((current (dired-get-filename t)) | 71 | (let* ((current (dired-get-filename t)) |
| 72 | ;; Get the latest existing backup file. | 72 | ;; Get the latest existing backup file. |
| 73 | (oldf (diff-latest-backup-file current)) | 73 | (oldf (progn (require 'diff) (diff-latest-backup-file current))) |
| 74 | ;; Get the file at the mark. | 74 | ;; Get the file at the mark. |
| 75 | (file-at-mark (if (and transient-mark-mode mark-active) | 75 | (file-at-mark (if (and transient-mark-mode mark-active) |
| 76 | (save-excursion (goto-char (mark t)) | 76 | (save-excursion (goto-char (mark t)) |
| @@ -248,7 +248,7 @@ List has a form of (file-name full-file-name (attribute-list))." | |||
| 248 | ;; ARG describes which files to use, as in `dired-get-marked-files'. | 248 | ;; ARG describes which files to use, as in `dired-get-marked-files'. |
| 249 | (let* ((files (dired-get-marked-files t arg)) | 249 | (let* ((files (dired-get-marked-files t arg)) |
| 250 | ;; The source of default file attributes is the file at point. | 250 | ;; The source of default file attributes is the file at point. |
| 251 | (default-file (dired-get-filename t)) | 251 | (default-file (dired-get-filename t t)) |
| 252 | (default (when default-file | 252 | (default (when default-file |
| 253 | (cond ((eq op-symbol 'touch) | 253 | (cond ((eq op-symbol 'touch) |
| 254 | (format-time-string | 254 | (format-time-string |
| @@ -300,7 +300,7 @@ into the minibuffer." | |||
| 300 | (interactive "P") | 300 | (interactive "P") |
| 301 | (let* ((files (dired-get-marked-files t arg)) | 301 | (let* ((files (dired-get-marked-files t arg)) |
| 302 | ;; The source of default file attributes is the file at point. | 302 | ;; The source of default file attributes is the file at point. |
| 303 | (default-file (dired-get-filename t)) | 303 | (default-file (dired-get-filename t t)) |
| 304 | (modestr (when default-file | 304 | (modestr (when default-file |
| 305 | (nth 8 (file-attributes default-file)))) | 305 | (nth 8 (file-attributes default-file)))) |
| 306 | (default | 306 | (default |