[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master bedfa96 152/187: * dired-async.el: Fix compatibility with
From: |
Michael Albinus |
Subject: |
[elpa] master bedfa96 152/187: * dired-async.el: Fix compatibility with emacs-24.3. |
Date: |
Wed, 30 Dec 2015 11:50:19 +0000 |
branch: master
commit bedfa967e0bd0f156e2f73c13940121f674db1a8
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
* dired-async.el: Fix compatibility with emacs-24.3.
---
dired-async.el | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dired-async.el b/dired-async.el
index 441e7fa..ac45be7 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -265,14 +265,22 @@ ESC or `q' to not overwrite any of the remaining files,
(setq dired-async-operation (list operation (length async-fn-list)))
(message "%s proceeding asynchronously..." operation))))
+(defadvice dired-create-files (around dired-async)
+ (dired-async-create-files file-creator operation fn-list
+ name-constructor marker-char))
+
;;;###autoload
(define-minor-mode dired-async-mode
"Do dired actions asynchronously."
:group 'dired-async
:global t
(if dired-async-mode
- (advice-add 'dired-create-files :override #'dired-async-create-files)
- (advice-remove 'dired-create-files #'dired-async-create-files)))
+ (if (fboundp 'advice-add)
+ (advice-add 'dired-create-files :override #'dired-async-create-files)
+ (ad-activate 'dired-create-files))
+ (if (fboundp 'advice-remove)
+ (advice-remove 'dired-create-files #'dired-async-create-files)
+ (ad-deactivate 'dired-create-files))))
(provide 'dired-async)
- [elpa] master 2b01ad8 137/187: Merge branch 'master' of github.com:jwiegley/emacs-async, (continued)
- [elpa] master 2b01ad8 137/187: Merge branch 'master' of github.com:jwiegley/emacs-async, Michael Albinus, 2015/12/30
- [elpa] master 98ef20d 162/187: Change mode-line face., Michael Albinus, 2015/12/30
- [elpa] master 2143217 159/187: Bind print-level and print-length (#48)., Michael Albinus, 2015/12/30
- [elpa] master 89f1ca6 133/187: Merge pull request #42 from mneilsen/master, Michael Albinus, 2015/12/30
- [elpa] master 1f5e89b 146/187: * async-bytecomp.el (package--compile): Fix typo., Michael Albinus, 2015/12/30
- [elpa] master 7625671 140/187: Async compile also dependendies (#46)., Michael Albinus, 2015/12/30
- [elpa] master d250e7b 139/187: Allow customizing which packages compile async (#46)., Michael Albinus, 2015/12/30
- [elpa] master 51c598b 149/187: Add autoload cookie and make dired-async--modeline-mode internal., Michael Albinus, 2015/12/30
- [elpa] master 23edf9e 151/187: * dired-async.el (dired-async-mode): Fix group name., Michael Albinus, 2015/12/30
- [elpa] master c368125 155/187: * async-bytecomp.el: Add autoload cookies., Michael Albinus, 2015/12/30
- [elpa] master bedfa96 152/187: * dired-async.el: Fix compatibility with emacs-24.3.,
Michael Albinus <=
- [elpa] master 753d593 148/187: Allow enabling dired-async with a minor-mode., Michael Albinus, 2015/12/30
- [elpa] master cdbf622 157/187: No message on startup when quiet., Michael Albinus, 2015/12/30
- [elpa] master 4ab15f7 161/187: Merge pull request #50 from tarsius/master, Michael Albinus, 2015/12/30
- [elpa] master a97aa4c 166/187: Don't call package-activate-1 in package--compile., Michael Albinus, 2015/12/30
- [elpa] master 7616e0c 165/187: Check if pkg is member of package-archive-contents (#51)., Michael Albinus, 2015/12/30
- [elpa] master ee727e1 168/187: Add async to load-path when recompiling itself., Michael Albinus, 2015/12/30
- [elpa] master 40814ea 173/187: Correct package headers, Michael Albinus, 2015/12/30
- [elpa] master 3499a32 176/187: Only rename buffers on rename operation (#56)., Michael Albinus, 2015/12/30
- [elpa] master d98799c 172/187: Add epg to inject variables in smtpmail (#54)., Michael Albinus, 2015/12/30
- [elpa] master 062c609 158/187: Add more helm packages to compile async., Michael Albinus, 2015/12/30