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

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

[nongnu] elpa/hyperdrive 627edace7b 6/8: Tidy: Compiler warning about us


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 627edace7b 6/8: Tidy: Compiler warning about use-dialog-box-p
Date: Wed, 27 Sep 2023 19:00:42 -0400 (EDT)

branch: elpa/hyperdrive
commit 627edace7b799508dddf328df9c58009a9ec595d
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Tidy: Compiler warning about use-dialog-box-p
    
    use-dialog-box-p is in Emacs 29+.
---
 hyperdrive.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hyperdrive.el b/hyperdrive.el
index 5ce658be9c..0ba7efdaa2 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -735,7 +735,9 @@ The return value of this function is the retrieval buffer."
              (?n "no" "exit without doing anything")
              (?s "save and then kill" "save the buffer and then kill it"))
            nil nil (and (not use-short-answers)
-                        (not (use-dialog-box-p)))))))
+                        (not (when (fboundp 'use-dialog-box-p)
+                               (with-no-warnings
+                                 (use-dialog-box-p)))))))))
     (if (equal response "no")
         nil
       (unless (equal response "yes")



reply via email to

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