emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/devdocs 6764e66 2/4: Check if libxml is available at lo


From: ELPA Syncer
Subject: [elpa] externals/devdocs 6764e66 2/4: Check if libxml is available at load time
Date: Sun, 6 Jun 2021 05:57:08 -0400 (EDT)

branch: externals/devdocs
commit 6764e6621d07bb8208a7d3e7621147709db91725
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    Check if libxml is available at load time
---
 devdocs.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/devdocs.el b/devdocs.el
index a0f3431..dc45381 100644
--- a/devdocs.el
+++ b/devdocs.el
@@ -41,6 +41,9 @@
 (eval-when-compile
   (require 'let-alist))
 
+(unless (libxml-available-p)
+  (display-warning 'devdocs "This package requires Emacs to be compiled with 
libxml2"))
+
 (defgroup devdocs nil
   "Emacs viewer for DevDocs."
   :group 'help
@@ -293,8 +296,6 @@ with the order of appearance in the text."
 ENTRY is an alist like those in the variable `devdocs--index',
 possibly with an additional ENTRY.fragment which overrides the
 fragment part of ENTRY.path."
-  (or (libxml-available-p)
-      (error "This function requires Emacs to be compiled with libxml2"))
   (with-current-buffer (get-buffer-create "*devdocs*")
     (unless (eq major-mode 'devdocs-mode)
       (devdocs-mode))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]