From 0afab352e02d7070a8ced2af53c1d01217400cdf Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Sat, 12 Jun 2021 15:11:56 +0200 Subject: [PATCH] Make `window-system-for-display' work for ipv6, too * lisp/term/x-win.el (display-format-alist): Also work for ipv6 (bug#42045). --- lisp/term/x-win.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index e4521ff1876..8c6c75e7e22 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -1355,7 +1355,7 @@ This returns an error if any Emacs frames are X frames." (declare-function x-get-selection-internal "xselect.c" (selection-symbol target-type &optional time-stamp terminal)) -(add-to-list 'display-format-alist '("\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'" . x)) +(add-to-list 'display-format-alist '("\\`.*:[0-9]+\\(\\.[0-9]+\\)?\\'" . x)) (cl-defmethod handle-args-function (args &context (window-system x)) (x-handle-args args)) -- 2.39.5