summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRoger Iyengar <ri@rogeriyengar.com>2018-03-02 01:57:50 -0500
committerAndreas Politz <politza@hochschule-trier.de>2018-04-21 18:36:20 +0200
commit73ead2b71368fdacc4a1209b5af252a3ea604fac (patch)
tree64c03aa13826c9c7c99214be5d3d4247a95d3e3f /lisp
parent10960babfa98b1f383d39072b3a25a91cbef83b4 (diff)
Fixed Path Issue on Windows and updated readme
Changed install to always prompt Windows users for MSYS2 location. This allows users who have their cygwin bin directory in their path variable to install pdf-tools properly
Diffstat (limited to 'lisp')
-rw-r--r--lisp/pdf-tools.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/pdf-tools.el b/lisp/pdf-tools.el
index 7731eeb..bc2d069 100644
--- a/lisp/pdf-tools.el
+++ b/lisp/pdf-tools.el
@@ -263,11 +263,11 @@ Returns always nil, unless `system-type' equals windows-nt."
(defun pdf-tools-find-bourne-shell ()
"Locate a usable sh."
- (or (executable-find "sh")
- (and (eq system-type 'windows-nt)
+ (or (and (eq system-type 'windows-nt)
(let* ((directory (pdf-tools-msys2-directory)))
(when directory
- (expand-file-name "usr/bin/bash.exe" directory))))))
+ (expand-file-name "usr/bin/bash.exe" directory))))
+ (executable-find "sh")))
(defun pdf-tools-build-server (target-directory
&optional