diff options
Diffstat (limited to 'lisp/talk.el')
-rw-r--r-- | lisp/talk.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/talk.el b/lisp/talk.el index fd845a7eee0..c16255f7742 100644 --- a/lisp/talk.el +++ b/lisp/talk.el @@ -47,10 +47,9 @@ Each element has the form (DISPLAY FRAME BUFFER).") (defun talk () "Connect to the Emacs talk group from the current X display or tty frame." (interactive) - (let ((type (frame-live-p (selected-frame))) - (display (frame-terminal (selected-frame)))) + (let ((type (frame-live-p (selected-frame)))) (if (or (eq type t) (eq type 'x)) - (talk-add-display + (talk-add-display (terminal-name (frame-terminal (selected-frame)))) (error "Unknown frame type"))) (talk-update-buffers)) |