branch: elpa/powershell
commit 313da3930c23cfa2672449dd117a9838acc19165
Author: Joe Schafer <[email protected]>
Commit: Joe Schafer <[email protected]>

    Prevent byte compilation errors.
---
 powershell-mode.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/powershell-mode.el b/powershell-mode.el
index 0cb2852d6b3..d45a7eb2745 100644
--- a/powershell-mode.el
+++ b/powershell-mode.el
@@ -673,8 +673,9 @@ Where <fcn-name> is the name of the function to which 
<helper string> applies.
       (which-function-mode t))))
 
 (eval-when-compile (require 'speedbar))
-(if (require 'speedbar nil t)
-    (speedbar-add-supported-extension ".ps1?"))
+(when (require 'speedbar nil t)
+  (declare-function speedbar-add-supported-extension "speedbar")
+  (speedbar-add-supported-extension ".ps1?"))
 
 (require 'compile nil t)
 ;; A better command would be something like "powershell.exe -NoLogo

Reply via email to