branch: elpa/powershell
commit 77b27faf8a292f1dc9f54c872241dc53b6791bf1
Merge: ce1f0ae0b2e 803fa4617ef
Author: Jürgen Hötzel <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #33 from morganwillcock/compilation-warnings
    
    Fix byte-compilation warnings
---
 powershell.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/powershell.el b/powershell.el
index b0967cc6319..0bfe80c72ec 100644
--- a/powershell.el
+++ b/powershell.el
@@ -1012,7 +1012,8 @@ See the help for `shell' for more details.  \(Type
 
   (setq buffer (get-buffer-create (or buffer "*PowerShell*")))
   (powershell-log 1 "powershell starting up...in buffer %s" (buffer-name 
buffer))
-  (let ((explicit-shell-file-name (if (eq system-type 'cygwin)
+  (let ((explicit-shell-file-name (if (and (eq system-type 'cygwin)
+                                           (fboundp 
'cygwin-convert-file-name-from-windows))
                                      (cygwin-convert-file-name-from-windows 
powershell-location-of-exe)
                                    powershell-location-of-exe)))
     ;; set arguments for the powershell exe.
@@ -1060,8 +1061,8 @@ See the help for `shell' for more details.  \(Type
 
     ;; add the hook that sets the flag
     (add-hook 'window-size-change-functions
-              '(lambda (&optional x)
-                 (setq powershell--need-rawui-resize t)))
+              #'(lambda (&rest _)
+                  (setq powershell--need-rawui-resize t)))
 
     ;; set the flag so we resize properly the first time.
     (setq powershell--need-rawui-resize t)

Reply via email to