[Dired] Warn on Windows if ‘w32-browser’ is not installed

This commit is contained in:
Daniel - 2018-11-02 17:40:52 +01:00
parent e73c4d0596
commit 9eae479aa3
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 3 additions and 1 deletions

View File

@ -779,7 +779,9 @@ are assumed to be of the form *.crt."
(require 'dired-x)
(with-demoted-errors "Non-Fatal Error: %s"
(require 'dired+)
(require 'dired-open))
(when (and (eq system-type 'windows-nt)
(not (package-installed-p 'w32-browser)))
(warn "`w32-browser not installed, dired will have reduced functionality.")))
;; Gnus support in dired
(add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)