changeset 84683:875f30e5371e

(terminal-id): Ask terminal-live-p before giving up.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 20 Sep 2007 21:16:26 +0000
parents f7c4da6e6f47
children 14682d9a9d3c
files lisp/ChangeLog lisp/termdev.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Sep 20 21:14:32 2007 +0000
+++ b/lisp/ChangeLog	Thu Sep 20 21:16:26 2007 +0000
@@ -1,3 +1,7 @@
+2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* termdev.el (terminal-id): Ask terminal-live-p before giving up.
+
 2007-09-20  Richard Stallman  <rms@gnu.org>
 
 	* newcomment.el (comment-add): If EXTRA, double `comment-add' value.
--- a/lisp/termdev.el	Thu Sep 20 21:14:32 2007 +0000
+++ b/lisp/termdev.el	Thu Sep 20 21:16:26 2007 +0000
@@ -45,6 +45,7 @@
 					     (equal (frame-parameter frame 'tty) terminal)))))))
       (or f (error "Display %s does not exist" terminal))
       (frame-terminal f)))
+   ((terminal-live-p terminal) terminal)
    (t
     (error "Invalid argument %s in `terminal-id'" terminal))))
 
@@ -191,5 +192,5 @@
 
 (provide 'termdev)
 
-;;; arch-tag: 4c4df277-1ec1-4f56-bfde-7f156fe62fb2
+;; arch-tag: 4c4df277-1ec1-4f56-bfde-7f156fe62fb2
 ;;; termdev.el ends here