emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master e0531fd 26/68: ace-window.el: add work-around for autoload


From: Oleh Krehel
Subject: [elpa] master e0531fd 26/68: ace-window.el: add work-around for autoload
Date: Sat, 21 Mar 2015 19:06:56 +0000

branch: master
commit e0531fdbda14c932d39e5f0edf2336589209d9c4
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]