Added checks that distinguish between cygwin and windows in some

places.
This commit is contained in:
John Wiegley 2002-08-05 20:09:37 +00:00
parent 851988cd89
commit a5c41f64a1
6 changed files with 26 additions and 4 deletions

View file

@ -146,6 +146,10 @@ function `string-to-number'."
"Return non-nil if we are running under MS-DOS/Windows."
(memq system-type '(ms-dos windows-nt)))
(defsubst eshell-under-cygwin-p ()
"Return non-nil if we are running under Cygwin."
(eq system-type 'cygwin32))
(defmacro eshell-condition-case (tag form &rest handlers)
"Like `condition-case', but only if `eshell-pass-through-errors' is nil."
(if eshell-handle-errors