]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix system-info in url-privacy.el
authorEli Zaretskii <eliz@gnu.org>
Tue, 2 Aug 2022 17:27:46 +0000 (20:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 2 Aug 2022 17:27:46 +0000 (20:27 +0300)
* lisp/url/url-privacy.el (url-setup-privacy-info): Fix MS-Windows
configurations.

lisp/url/url-privacy.el

index 93a512c02edab477e1c8f2500803d96f39c569e2..36ccbe2adc153e68f0a596385b08282c70fd0e2f 100644 (file)
          nil)
         ;; First, we handle the inseparable OS/Windowing system
         ;; combinations
-        ((eq system-type 'windows-nt) "Windows-NT; 32bit")
+        ((memq system-type '(windows-nt cygwin))
+          (concat "MS-Windows; "
+                  (if (string-match-p "\\`x86_64" system-configuration)
+                      "64bit"
+                    "32bit")
+                  "; "
+                  (cond ((eq window-system 'w32) "w32")
+                        ((eq window-system 'x) "X11")
+                        (t "TTY"))))
         ((eq system-type 'ms-dos) "MS-DOS; 32bit")
-         ((memq window-system '(win32 w32)) "Windows; 32bit")
         (t
          (pcase (or window-system 'tty)
            ('x "X11")