]> git.eshelyaron.com Git - emacs.git/commitdiff
(display-mouse-p, display-selections-p): Use with-no-warnings.
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 Aug 2004 16:54:33 +0000 (16:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 Aug 2004 16:54:33 +0000 (16:54 +0000)
lisp/frame.el

index a364d7f491bc3458c68b046594b40f69b1c2b456..8d979cdaff4c0fb95f3a60714c46555c3ecea0b4 100644 (file)
@@ -987,7 +987,8 @@ frame's display)."
      ((eq frame-type 'pc)
       (msdos-mouse-p))
      ((eq system-type 'windows-nt)
-      (> w32-num-mouse-buttons 0))
+      (with-no-warnings
+       (> w32-num-mouse-buttons 0)))
      ((memq frame-type '(x mac))
       t)    ;; We assume X and Mac *always* have a pointing device
      (t
@@ -1040,7 +1041,8 @@ frame's display)."
      ((eq frame-type 'pc)
       ;; MS-DOG frames support selections when Emacs runs inside
       ;; the Windows' DOS Box.
-      (not (null dos-windows-version)))
+      (with-no-warnings
+       (not (null dos-windows-version))))
      ((memq frame-type '(x w32 mac))
       t)    ;; FIXME?
      (t