changeset 99444:b838c1b7587e

* frame.el (make-frame-on-display): Use `string-match-p'.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 07 Nov 2008 14:52:02 +0000
parents 4e42b5a30f24
children 3b19071de1b9
files lisp/ChangeLog lisp/frame.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Nov 07 14:22:27 2008 +0000
+++ b/lisp/ChangeLog	Fri Nov 07 14:52:02 2008 +0000
@@ -1,3 +1,7 @@
+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.
--- a/lisp/frame.el	Fri Nov 07 14:22:27 2008 +0000
+++ b/lisp/frame.el	Fri Nov 07 14:52:02 2008 +0000
@@ -620,7 +620,7 @@
 	 ;; 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)