In special-display-p signal an error if BUFFER-NAME is not a string (Bug#11713).
authorMartin Rudalics <rudalics@gmx.at>
Sun, 17 Jun 2012 10:43:50 +0000 (12:43 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 17 Jun 2012 10:43:50 +0000 (12:43 +0200)
* window.el (special-display-p): Signal an error if BUFFER-NAME
is not a string (Bug#11713).

lisp/ChangeLog
lisp/window.el

index c9fe440..63b02cf 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-17  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (special-display-p): Signal an error if BUFFER-NAME
+       is not a string (Bug#11713).
+
 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        * progmodes/python.el (python-info-beginning-of-backslash):
index d9dd7b6..62cd226 100644 (file)
@@ -4192,7 +4192,8 @@ or matches BUFFER-NAME, the return value is the cdr of that
 entry."
   (let (tmp)
     (cond
-     ((not (stringp buffer-name)))
+     ((not (stringp buffer-name))
+      (error "Invalid buffer name %s" buffer-name))
      ((member buffer-name special-display-buffer-names)
       t)
      ((setq tmp (assoc buffer-name special-display-buffer-names))