branch: master
commit e0531fdbda14c932d39e5f0edf2336589209d9c4
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ace-window.el: add work-around for autoload
Up to now, the `aw-generic' macro was called inside the autoload file.
Now define empty functions that generate the autoload entry points,
then redefine them using the old mechanism.
Fixes #13.
---
ace-window.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ace-window.el b/ace-window.el
index 67cc7cb..1a83ede 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -232,16 +232,20 @@ HANDLER is a function that takes a window argument."
;; ——— Interactive
—————————————————————————————————————————————————————————————
;;;###autoload
+(defun ace-select-window () (interactive) "Ace select window.")
+;;;###autoload
+(defun ace-delete-window () (interactive) "Ace delete window.")
+;;;###autoload
+(defun ace-swap-window () (interactive) "Ace swap window.")
+
(defalias 'ace-select-window
(aw-generic " Ace - Window" aw-switch-to-window)
"Ace select window.")
-;;;###autoload
(defalias 'ace-delete-window
(aw-generic " Ace - Delete Window" aw-delete-window)
"Ace delete window.")
-;;;###autoload
(defalias 'ace-swap-window
(aw-generic " Ace - Swap Window" aw-swap-window)
"Ace swap window.")