; Fix system-info in url-privacy.el

* lisp/url/url-privacy.el (url-setup-privacy-info): Fix MS-Windows
configurations.
This commit is contained in:
Eli Zaretskii 2022-08-02 20:27:46 +03:00
parent 8af91dee9a
commit 286e308561

View file

@ -41,9 +41,16 @@
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")