branch: master
commit 2d4db965a95c2e4a1174c57235f0e339bea693af
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
Silence byte-compiler
---
counsel.el | 3 ++-
ivy-overlay.el | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index bbd7bb4..cb1da76 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1454,7 +1454,8 @@ string - the full shell command to run."
(defun counsel-locate-action-extern (x)
"Use xdg-open shell command, or corresponding system command, on X."
(interactive (list (read-file-name "File: ")))
- (if (eq system-type 'windows-nt)
+ (if (and (eq system-type 'windows-nt)
+ (fboundp 'w32-shell-execute))
(w32-shell-execute "open" x)
(call-process shell-file-name nil
nil nil
diff --git a/ivy-overlay.el b/ivy-overlay.el
index 521d810..9503b86 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -69,6 +69,9 @@ Then attach the overlay the character before point."
(overlay-put ivy-overlay-at 'display str)
(overlay-put ivy-overlay-at 'after-string ""))
+(declare-function org-current-level "org")
+(defvar org-indent-indentation-per-level)
+
(defun ivy-display-function-overlay (str)
"Called from the minibuffer, display STR in an overlay in Ivy window.
Hide the minibuffer contents and cursor."