]> code.delx.au - gnu-emacs/blobdiff - lisp/talk.el
Speed up CC Mode fontification with less accurate functions extending region
[gnu-emacs] / lisp / talk.el
index aaf2d2085cd82c226e4cfefb694cedde8588e7d3..ae8bd28b193bc0cdaff5c840cce6464c0e2ef778 100644 (file)
@@ -1,9 +1,8 @@
 ;;; talk.el --- allow several users to talk to each other through Emacs
 
-;; Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005,
-;;   2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+;; Copyright (C) 1995, 2001-2016 Free Software Foundation, Inc.
 
-;; Maintainer: FSF
+;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: comm, frames
 
 ;; This file is part of GNU Emacs.
@@ -48,11 +47,10 @@ 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 
-        (terminal-name (frame-terminal (selected-frame))))
+       (talk-add-display
+        (terminal-name (frame-terminal)))
       (error "Unknown frame type")))
   (talk-update-buffers))
 
@@ -113,12 +111,11 @@ Select the first of these windows, displaying the first of the buffers."
          (while (progn
                   (switch-to-buffer (car buffers))
                   (setq buffers (cdr buffers)))
-           (split-window-vertically lines-per-buffer)
+           (split-window-below lines-per-buffer)
            (other-window 1))
          (select-window (frame-first-window frame)))
       (select-frame old-frame))))
 
 (provide 'talk)
 
-;; arch-tag: 7ab0ad88-1788-4886-a44c-ae685e6f8a1a
 ;;; talk.el ends here