Commit 69135f12 authored by Juanma Barranquero's avatar Juanma Barranquero

* frame.el (make-frame-on-display): Use `string-match-p'.

parent e589455f
2008-11-07 Juanma Barranquero <lekktu@gmail.com>
* frame.el (make-frame-on-display): Use `string-match-p'.
2008-11-07 Glenn Morris <rgm@gnu.org>
* progmodes/cc-defs.el (cl-macroexpand-all): Fix declaration.
......
......@@ -620,7 +620,7 @@ The optional argument PARAMETERS specifies additional frame parameters."
;; On Windows, ignore DISPLAY.
(make-frame parameters))
(t
(unless (string-match "\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'" display)
(unless (string-match-p "\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'" display)
(error "Invalid display, not HOST:SERVER or HOST:SERVER.SCREEN"))
(when (and (boundp 'x-initialized) (not x-initialized))
(setq x-display-name display)
......
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