]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/xwidget.el (xwidget-webkit-browse-url): Give explicit error
authorGlenn Morris <rgm@gnu.org>
Wed, 27 Jan 2016 22:01:30 +0000 (17:01 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 27 Jan 2016 22:01:30 +0000 (17:01 -0500)
if not compiled with xwidgets.

lisp/xwidget.el

index 9f257ba463af67e350dc6ca73e5cecc84ba9d700..889311943063c5971f79a7bd2f72988e7d5a9af7 100644 (file)
@@ -97,6 +97,8 @@ Interactively, URL defaults to the string looking like a url around point."
                  (browse-url-interactive-arg "xwidget-webkit URL: "
                                              ;;(xwidget-webkit-current-url)
                                              )))
+  (or (featurep 'xwidget-internal)
+      (user-error "Your Emacs was not compiled with xwidgets support"))
   (when (stringp url)
     (if new-session
         (xwidget-webkit-new-session url)