From: Martin Rudalics Date: Sun, 17 Jun 2012 10:43:50 +0000 (+0200) Subject: In special-display-p signal an error if BUFFER-NAME is not a string (Bug#11713). X-Git-Tag: emacs-24.2.90~1199^2~443 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=074633638d5f65e3cbf8fa5ee3856113b105286a;p=emacs.git In special-display-p signal an error if BUFFER-NAME is not a string (Bug#11713). * window.el (special-display-p): Signal an error if BUFFER-NAME is not a string (Bug#11713). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c9fe44089c9..63b02cfe017 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-06-17 Martin Rudalics + + * window.el (special-display-p): Signal an error if BUFFER-NAME + is not a string (Bug#11713). + 2012-06-17 Paul Eggert * progmodes/python.el (python-info-beginning-of-backslash): diff --git a/lisp/window.el b/lisp/window.el index d9dd7b63e27..62cd226daec 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -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))