Commit 8a38e772 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(make-frame-on-display): Check for nonsense display name.

parent c520265e
......@@ -414,6 +414,8 @@ These supersede the values given in `default-frame-alist'."
"Make a frame on display DISPLAY.
The optional second argument PARAMETERS specifies additional frame parameters."
(interactive "sMake frame on display: ")
(or (string-match "\\`[^:]+:[0-9]+\\(:[0-9]+\\)?\\'" display)
(error "Invalid display, not HOST:SERVER or HOST:SERVER:SCREEN"))
(make-frame (cons (cons 'display display) parameters)))
(defun make-frame-command ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment