branch: externals/hyperbole
commit 1113f960659ca5cf2b047ff1301d6be2eda7f9a4
Author: Mats Lidell <[email protected]>
Commit: GitHub <[email protected]>

    Remove warnings (#809)
---
 ChangeLog   | 6 ++++++
 hsys-www.el | 5 ++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6d66c1cd59..4fd5a0b2a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-11-07  Mats Lidell  <[email protected]>
+
+* hsys-www.el (eww--dwim-expand-url): Declare function to silence warning.
+    (www-eww-browse-url): Defvar url-allow-non-local-files to silence
+    warning in Emacs 28 where it is not defined. Introduced with Emacs 29.
+
 2025-11-06  Mats Lidell  <[email protected]>
 
 * test/hywiki-tests.el (hywiki-tests--hywiki-face-regions): Helper for
diff --git a/hsys-www.el b/hsys-www.el
index 41242d8099..71fb13ac32 100644
--- a/hsys-www.el
+++ b/hsys-www.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:     7-Apr-94 at 17:17:39 by Bob Weiner
-;; Last-Mod:      5-Oct-25 at 13:51:02 by Bob Weiner
+;; Last-Mod:      7-Nov-25 at 19:23:34 by Mats Lidell
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -43,6 +43,8 @@
 
 (defvar hpath:display-where-alist)      ; "hpath.el"
 
+(declare-function eww--dwim-expand-url "eww" (url))
+
 (declare-function hpath:remote-available-p "hpath")
 (declare-function hpath:remote-p "hpath")
 (declare-function hpath:remote-at-p "hpath")
@@ -226,6 +228,7 @@ instead of `browse-url-new-window-flag'."
       (format "*eww-%s*" (url-host (url-generic-parse-url
                                     (eww--dwim-expand-url url)))))))
   (eww-mode)
+  (defvar url-allow-non-local-files)    ; Defined from Emacs 29.
   (let ((url-allow-non-local-files t))
     (eww url)))
 

Reply via email to