aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2005-12-29 18:20:26 +0000
committerKaroly Lorentey2005-12-29 18:20:26 +0000
commit6ed8eeffb3a2c5cbbd8622a7ccd0726c3bf92946 (patch)
treec50fd5553226312df72cc55fd1167beaaede651b /lisp
parent17ccbd91f620a84e7524b99b74077b4ddb736283 (diff)
downloademacs-6ed8eeffb3a2c5cbbd8622a7ccd0726c3bf92946.tar.gz
emacs-6ed8eeffb3a2c5cbbd8622a7ccd0726c3bf92946.zip
Rename `struct device' to `struct terminal'. Rename some terminal-related functions similarly.
* src/termhooks.h (struct device): Rename to `terminal'. Rename member `next_device' to `next_terminal'. (device_list): Rename to `terminal_list'. (FRAME_DEVICE): Rename to `FRAME_TERMINAL'. (DEVICE_TERMINAL_CODING): Rename to `TERMINAL_TERMINAL_CODING'. (TERMINAL_KEYBOARD_CODING): Rename to `TERMINAL_KEYBOARD_CODING'. (DEVICE_ACTIVE_P): Rename to `TERMINAL_ACTIVE_P'. Update declarations and macro definitions. * src/termchar.h (tty_display_info): Rename member `device' to `terminal'. (FRAME_TTY): Update for renames. * src/xterm.h (x_display_info): Rename member `device' to `terminal'. * src/frame.h (frame): Rename `device' member to `terminal'. (FRAME_KBOARD, FRAME_LIVE_P, Qdevice, Qdisplay_live_p): Update for renames. * src/lisp.h (set_process_environment): Rename to `set_global_environment'. (device): Rename to `terminal'. * src/dispextern.h: Update declarations and macro definitions. * src/terminal.c (device_list): Rename to `terminal_list'. (next_device_id): Rename to `next_terminal_id'. (initial_device): Rename to `initial_terminal'. (get_device): Rename to `get_terminal'. (create_device): Rename to `create_terminal'. (mark_devices): Rename to `mark_terminals'. (delete_device): Rename to `delete_terminal'. (Fdelete_display): Rename to `Fdelete_terminal'. (Fframe_terminal): Move here from frame.c. (Fdisplay_live_p): Rename to `Fterminal_live_p'. (Fdisplay_list): Rename to `Fterminal_list'. (Fdisplay_name): Rename to `Fterminal_name'. (init_initial_device): Rename to `init_initial_terminal'. (delete_initial_device): Rename to `delete_initial_terminal'. (ring_bell, update_begin, update_end, set_terminal_window) (cursor_to, raw_cursor_to, clear_to_end, clear_frame) (clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs) (ins_del_lines, get_terminal_param, store_terminal_param) (Fterminal_parameters, Fterminal_parameter) (Fmodify_terminal_parameters, Fset_terminal_parameter) (syms_of_terminal): Update for renames. * src/term.c (get_tty_device): Rename to `get_tty_terminal'. Update. (Fdisplay_tty_type): Rename to `Ftty_type'. (Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'. (delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes) (Ftty_display_color_p, Ftty_display_color_cells, get_named_tty) (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output) (init_tty, maybe_fatal, delete_tty, syms_of_term): Update for rename. * src/frame.c (Qdevice): Rename to `Qterminal'. (Qdisplay_live_p): Rename to `Qterminal_live_p'. (terminal_frame_count): Rename to `tty_frame_count'. (Fframe_display): Move to terminal.c, rename to `Fframe_terminal'. (make_frame_without_minibuffer, make_initial_frame) (make_terminal_frame, Fmodify_frame_parameters) (do_switch_frame, Fdelete_frame, Fmouse_position) (Fmouse_pixel_position, Fraise_frame, Flower_frame) (Fredirect_frame_focus, set_term_frame_name, syms_of_frame): Update for renames. * src/xdisp.c (message2_nolog, message3_nolog, redisplay_internal) (set_vertical_scroll_bar, redisplay_window, check_x_display_info) (x_set_scroll_bar_foreground, x_set_scroll_bar_background) (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p) (Fx_display_pixel_width, Fx_display_pixel_height) (Fx_display_planes, Fx_display_color_cells) (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width) (Fx_display_backing_store, Fx_display_visual_class) (Fx_display_save_under, Fx_close_connection, x_create_tip_frame): Update for renames. * xterm.c (handle_one_xevent): Initialize `f' to NULL. (x_delete_device): Rename to `x_delete_terminal'. (x_create_device): Rename to `x_create_terminal'. (XTset_terminal_modes, XTreset_terminal_modes) (XTread_socket, x_connection_closed, x_term_init) (x_term_init, x_delete_display): Update for renames. * src/dispnew.c (Fredraw_frame, Fsend_string_to_terminal) (Fsend_string_to_terminal, init_display): Update for renames. * src/keyboard.c (push_frame_kboard, pop_kboard, pop_kboard) (kbd_buffer_get_event, read_avail_input, tty_read_avail_input) (interrupt_signal, Fset_output_flow_control) (Fset_input_meta_mode, Fset_quit_char, delete_kboard) (syms_of_keyboard): Update for renames. * src/alloc.c (mark_devices): Update declaration. (Fgarbage_collect): Update for renames. * src/coding.c (Fset_terminal_coding_system_internal) (Fterminal_coding_system4) (Fset_keyboard_coding_system_internal) (Fkeyboard_coding_system): Update for renames. * src/data.c (Fterminal_local_value, Fset_terminal_local_value): Update for renames. * src/minibuf.c (read_minibuf): Update for renames. * src/sysdep.c (init_sys_modes, reset_sys_modes): Update for renames. * xselect.c (x_handle_selection_clear): Update for renames. * lisp/files.el (save-buffers-kill-display): Rename to `save-buffers-kill-terminal'. (save-buffers-kill-terminal, ctl-x-map): Update for renames. * frame.el (make-frame): Rename 'device frame parameter to 'terminal. Update. (frames-on-display-list, framep-on-display, suspend-frame): Update for renames. (selected-display): Rename to `selected-terminal'. * server.el (server-save-buffers-kill-display): Rename to `server-save-buffers-kill-terminal'. (server-delete-client, server-handle-delete-frame) (server-handle-suspend-tty, server-process-filter) (server-switch-buffer): Update for renames. * startup.el (normal-splash-screen, normal-splash-screen): Update for renames. * talk.el (talk): Update for renames. * termdev.el (terminal-id): Update for renames. * xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal) (turn-off-xterm-mouse-tracking-on-terminal) (xterm-mouse-handle-delete-frame): Update for renames. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-471
Diffstat (limited to 'lisp')
-rw-r--r--lisp/files.el6
-rw-r--r--lisp/frame.el22
-rw-r--r--lisp/server.el44
-rw-r--r--lisp/startup.el4
-rw-r--r--lisp/talk.el8
-rw-r--r--lisp/termdev.el8
-rw-r--r--lisp/xt-mouse.el6
7 files changed, 49 insertions, 49 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 8b8a1444ba6..12384543fe9 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4879,7 +4879,7 @@ With prefix arg, silently save all file-visiting buffers, then kill."
4879 (funcall confirm-kill-emacs "Really exit Emacs? ")) 4879 (funcall confirm-kill-emacs "Really exit Emacs? "))
4880 (kill-emacs))) 4880 (kill-emacs)))
4881 4881
4882(defun save-buffers-kill-display (&optional arg) 4882(defun save-buffers-kill-terminal (&optional arg)
4883 "Offer to save each buffer, then kill the current connection. 4883 "Offer to save each buffer, then kill the current connection.
4884If the current frame has no client, kill Emacs itself. 4884If the current frame has no client, kill Emacs itself.
4885 4885
@@ -4892,7 +4892,7 @@ only these files will be asked to be saved."
4892 (frame (selected-frame))) 4892 (frame (selected-frame)))
4893 (if (null proc) 4893 (if (null proc)
4894 (save-buffers-kill-emacs) 4894 (save-buffers-kill-emacs)
4895 (server-save-buffers-kill-display proc arg)))) 4895 (server-save-buffers-kill-terminal proc arg))))
4896 4896
4897 4897
4898;; We use /: as a prefix to "quote" a file name 4898;; We use /: as a prefix to "quote" a file name
@@ -4991,7 +4991,7 @@ only these files will be asked to be saved."
4991(define-key ctl-x-map "i" 'insert-file) 4991(define-key ctl-x-map "i" 'insert-file)
4992(define-key esc-map "~" 'not-modified) 4992(define-key esc-map "~" 'not-modified)
4993(define-key ctl-x-map "\C-d" 'list-directory) 4993(define-key ctl-x-map "\C-d" 'list-directory)
4994(define-key ctl-x-map "\C-c" 'save-buffers-kill-display) 4994(define-key ctl-x-map "\C-c" 'save-buffers-kill-terminal)
4995(define-key ctl-x-map "\C-q" 'toggle-read-only) 4995(define-key ctl-x-map "\C-q" 'toggle-read-only)
4996 4996
4997(define-key ctl-x-4-map "f" 'find-file-other-window) 4997(define-key ctl-x-4-map "f" 'find-file-other-window)
diff --git a/lisp/frame.el b/lisp/frame.el
index 339100bbff5..818bd9368e1 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -651,7 +651,7 @@ You cannot specify either `width' or `height', you must use neither or both.
651 (window-system . nil) The frame should be displayed on a terminal device. 651 (window-system . nil) The frame should be displayed on a terminal device.
652 (window-system . x) The frame should be displayed in an X window. 652 (window-system . x) The frame should be displayed in an X window.
653 653
654 (device . ID) The frame should use the display device identified by ID. 654 (terminal . ID) The frame should use the terminal identified by ID.
655 655
656Before the frame is created (via `frame-creation-function-alist'), functions on the 656Before the frame is created (via `frame-creation-function-alist'), functions on the
657hook `before-make-frame-hook' are run. After the frame is created, functions 657hook `before-make-frame-hook' are run. After the frame is created, functions
@@ -664,11 +664,11 @@ instance if the frame appears under the mouse pointer and your
664setup is for focus to follow the pointer." 664setup is for focus to follow the pointer."
665 (interactive) 665 (interactive)
666 (let* ((w (cond 666 (let* ((w (cond
667 ((assq 'device parameters) 667 ((assq 'terminal parameters)
668 (let ((type (display-live-p (cdr (assq 'device parameters))))) 668 (let ((type (terminal-live-p (cdr (assq 'terminal parameters)))))
669 (cond 669 (cond
670 ((eq type t) nil) 670 ((eq type t) nil)
671 ((eq type nil) (error "Display %s does not exist" (cdr (assq 'device parameters)))) 671 ((eq type nil) (error "Terminal %s does not exist" (cdr (assq 'terminal parameters))))
672 (t type)))) 672 (t type))))
673 ((assq 'window-system parameters) 673 ((assq 'window-system parameters)
674 (cdr (assq 'window-system parameters))) 674 (cdr (assq 'window-system parameters)))
@@ -682,7 +682,7 @@ setup is for focus to follow the pointer."
682 (setq frame (funcall frame-creation-function (append parameters (cdr (assq w window-system-default-frame-alist))))) 682 (setq frame (funcall frame-creation-function (append parameters (cdr (assq w window-system-default-frame-alist)))))
683 (normal-erase-is-backspace-setup-frame frame) 683 (normal-erase-is-backspace-setup-frame frame)
684 ;; Set up the frame-local environment, if needed. 684 ;; Set up the frame-local environment, if needed.
685 (when (eq (frame-display frame) (frame-display oldframe)) 685 (when (eq (frame-terminal frame) (frame-terminal oldframe))
686 (let ((env (frame-parameter oldframe 'environment))) 686 (let ((env (frame-parameter oldframe 'environment)))
687 (if (not (framep env)) 687 (if (not (framep env))
688 (setq env oldframe)) 688 (setq env oldframe))
@@ -718,7 +718,7 @@ If TERMINAL is omitted or nil, it defaults to the selected
718frame's terminal device." 718frame's terminal device."
719 (let* ((terminal (terminal-id terminal)) 719 (let* ((terminal (terminal-id terminal))
720 (func #'(lambda (frame) 720 (func #'(lambda (frame)
721 (eq (frame-display frame) terminal)))) 721 (eq (frame-terminal frame) terminal))))
722 (filtered-frame-list func))) 722 (filtered-frame-list func)))
723 723
724(defun framep-on-display (&optional terminal) 724(defun framep-on-display (&optional terminal)
@@ -727,7 +727,7 @@ TERMINAL may be a terminal id, a display name or a frame. If it
727is a frame, its type is returned. If TERMINAL is omitted or nil, 727is a frame, its type is returned. If TERMINAL is omitted or nil,
728it defaults to the selected frame's terminal device. All frames 728it defaults to the selected frame's terminal device. All frames
729on a given display are of the same type." 729on a given display are of the same type."
730 (or (display-live-p terminal) 730 (or (terminal-live-p terminal)
731 (framep terminal) 731 (framep terminal)
732 (framep (car (frames-on-display-list terminal))))) 732 (framep (car (frames-on-display-list terminal)))))
733 733
@@ -815,7 +815,7 @@ Calls `suspend-emacs' if invoked from the controlling tty device,
815 (cond 815 (cond
816 ((eq type 'x) (iconify-or-deiconify-frame)) 816 ((eq type 'x) (iconify-or-deiconify-frame))
817 ((eq type t) 817 ((eq type t)
818 (if (display-controlling-tty-p) 818 (if (controlling-tty-p)
819 (suspend-emacs) 819 (suspend-emacs)
820 (suspend-tty))) 820 (suspend-tty)))
821 (t (suspend-emacs))))) 821 (t (suspend-emacs)))))
@@ -1068,9 +1068,9 @@ bars (top, bottom, or nil)."
1068 (cons vert hor))) 1068 (cons vert hor)))
1069 1069
1070;;;; Frame/display capabilities. 1070;;;; Frame/display capabilities.
1071(defun selected-display () 1071(defun selected-terminal ()
1072 "Return the display that is now selected." 1072 "Return the terminal that is now selected."
1073 (frame-display (selected-frame))) 1073 (frame-terminal (selected-frame)))
1074 1074
1075(defun display-mouse-p (&optional display) 1075(defun display-mouse-p (&optional display)
1076 "Return non-nil if DISPLAY has a mouse available. 1076 "Return non-nil if DISPLAY has a mouse available.
diff --git a/lisp/server.el b/lisp/server.el
index f98be109c92..9de88d55896 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -247,7 +247,7 @@ ENV should be in the same format as `process-environment'."
247 (setenv (car ,pair) (cdr ,pair))))))) 247 (setenv (car ,pair) (cdr ,pair)))))))
248 248
249(defun server-delete-client (client &optional noframe) 249(defun server-delete-client (client &optional noframe)
250 "Delete CLIENT, including its buffers, devices and frames. 250 "Delete CLIENT, including its buffers, terminals and frames.
251If NOFRAME is non-nil, let the frames live. (To be used from 251If NOFRAME is non-nil, let the frames live. (To be used from
252`delete-frame-functions'." 252`delete-frame-functions'."
253 ;; Force a new lookup of client (prevents infinite recursion). 253 ;; Force a new lookup of client (prevents infinite recursion).
@@ -271,9 +271,9 @@ If NOFRAME is non-nil, let the frames live. (To be used from
271 (kill-buffer (current-buffer)))))) 271 (kill-buffer (current-buffer))))))
272 272
273 ;; Delete the client's tty. 273 ;; Delete the client's tty.
274 (let ((device (server-client-get client 'device))) 274 (let ((terminal (server-client-get client 'terminal)))
275 (when (eq (display-live-p device) t) 275 (when (eq (terminal-live-p terminal) t)
276 (delete-display device))) 276 (delete-terminal terminal)))
277 277
278 ;; Delete the client's frames. 278 ;; Delete the client's frames.
279 (unless noframe 279 (unless noframe
@@ -323,18 +323,18 @@ message."
323 ;; there are other frames on it. 323 ;; there are other frames on it.
324 (< 0 (let ((frame-num 0)) 324 (< 0 (let ((frame-num 0))
325 (mapc (lambda (f) 325 (mapc (lambda (f)
326 (when (eq (frame-display f) 326 (when (eq (frame-terminal f)
327 (frame-display frame)) 327 (frame-terminal frame))
328 (setq frame-num (1+ frame-num)))) 328 (setq frame-num (1+ frame-num))))
329 (frame-list)) 329 (frame-list))
330 frame-num)))) 330 frame-num))))
331 (server-log (format "server-handle-delete-frame, frame %s" frame) proc) 331 (server-log (format "server-handle-delete-frame, frame %s" frame) proc)
332 (server-delete-client proc 'noframe)))) ; Let delete-frame delete the frame later. 332 (server-delete-client proc 'noframe)))) ; Let delete-frame delete the frame later.
333 333
334(defun server-handle-suspend-tty (device) 334(defun server-handle-suspend-tty (terminal)
335 "Notify the emacsclient process to suspend itself when its tty device is suspended." 335 "Notify the emacsclient process to suspend itself when its tty device is suspended."
336 (dolist (proc (server-clients-with 'device device)) 336 (dolist (proc (server-clients-with 'terminal terminal))
337 (server-log (format "server-handle-suspend-tty, device %s" device) proc) 337 (server-log (format "server-handle-suspend-tty, terminal %s" terminal) proc)
338 (condition-case err 338 (condition-case err
339 (server-send-string proc "-suspend \n") 339 (server-send-string proc "-suspend \n")
340 (file-error (condition-case nil (server-delete-client proc) (error nil)))))) 340 (file-error (condition-case nil (server-delete-client proc) (error nil))))))
@@ -618,7 +618,7 @@ The following commands are accepted by the client:
618 ;; Flag frame as client-created, but use a dummy client. 618 ;; Flag frame as client-created, but use a dummy client.
619 ;; This will prevent the frame from being deleted when 619 ;; This will prevent the frame from being deleted when
620 ;; emacsclient quits while also preventing 620 ;; emacsclient quits while also preventing
621 ;; `server-save-buffers-kill-display' from unexpectedly 621 ;; `server-save-buffers-kill-terminal' from unexpectedly
622 ;; killing emacs on that frame. 622 ;; killing emacs on that frame.
623 (list (cons 'client 'nowait) (cons 'environment env)) 623 (list (cons 'client 'nowait) (cons 'environment env))
624 (list (cons 'client proc) (cons 'environment env))))) 624 (list (cons 'client proc) (cons 'environment env)))))
@@ -636,7 +636,7 @@ The following commands are accepted by the client:
636 (modify-frame-parameters frame params) 636 (modify-frame-parameters frame params)
637 (select-frame frame) 637 (select-frame frame)
638 (server-client-set client 'frame frame) 638 (server-client-set client 'frame frame)
639 (server-client-set client 'device (frame-display frame)) 639 (server-client-set client 'terminal (frame-terminal frame))
640 (setq dontkill t)) 640 (setq dontkill t))
641 ;; This emacs does not support X. 641 ;; This emacs does not support X.
642 (server-log "Window system unsupported" proc) 642 (server-log "Window system unsupported" proc)
@@ -645,19 +645,19 @@ The following commands are accepted by the client:
645 645
646 ;; -resume: Resume a suspended tty frame. 646 ;; -resume: Resume a suspended tty frame.
647 ((equal "-resume" arg) 647 ((equal "-resume" arg)
648 (let ((device (server-client-get client 'device))) 648 (let ((terminal (server-client-get client 'terminal)))
649 (setq dontkill t) 649 (setq dontkill t)
650 (when (eq (display-live-p device) t) 650 (when (eq (terminal-live-p terminal) t)
651 (resume-tty device)))) 651 (resume-tty terminal))))
652 652
653 ;; -suspend: Suspend the client's frame. (In case we 653 ;; -suspend: Suspend the client's frame. (In case we
654 ;; get out of sync, and a C-z sends a SIGTSTP to 654 ;; get out of sync, and a C-z sends a SIGTSTP to
655 ;; emacsclient.) 655 ;; emacsclient.)
656 ((equal "-suspend" arg) 656 ((equal "-suspend" arg)
657 (let ((device (server-client-get client 'device))) 657 (let ((terminal (server-client-get client 'terminal)))
658 (setq dontkill t) 658 (setq dontkill t)
659 (when (eq (display-live-p device) t) 659 (when (eq (terminal-live-p terminal) t)
660 (suspend-tty device)))) 660 (suspend-tty terminal))))
661 661
662 ;; -ignore COMMENT: Noop; useful for debugging emacsclient. 662 ;; -ignore COMMENT: Noop; useful for debugging emacsclient.
663 ;; (The given comment appears in the server log.) 663 ;; (The given comment appears in the server log.)
@@ -687,8 +687,8 @@ The following commands are accepted by the client:
687 (environment . ,env))))) 687 (environment . ,env)))))
688 (select-frame frame) 688 (select-frame frame)
689 (server-client-set client 'frame frame) 689 (server-client-set client 'frame frame)
690 (server-client-set client 'tty (display-name frame)) 690 (server-client-set client 'tty (terminal-name frame))
691 (server-client-set client 'device (frame-display frame)) 691 (server-client-set client 'terminal (frame-terminal frame))
692 692
693 ;; Reply with our pid. 693 ;; Reply with our pid.
694 (server-send-string proc (concat "-emacs-pid " (number-to-string (emacs-pid)) "\n")) 694 (server-send-string proc (concat "-emacs-pid " (number-to-string (emacs-pid)) "\n"))
@@ -1037,8 +1037,8 @@ done that."
1037 (get-window-with-predicate 1037 (get-window-with-predicate
1038 (lambda (w) 1038 (lambda (w)
1039 (and (not (window-dedicated-p w)) 1039 (and (not (window-dedicated-p w))
1040 (equal (frame-parameter (window-frame w) 'device) 1040 (equal (frame-terminal (window-frame w))
1041 (frame-parameter (selected-frame) 'device)))) 1041 (frame-terminal (selected-frame)))))
1042 'nomini 'visible (selected-window)))) 1042 'nomini 'visible (selected-window))))
1043 (condition-case nil 1043 (condition-case nil
1044 (switch-to-buffer next-buffer) 1044 (switch-to-buffer next-buffer)
@@ -1047,7 +1047,7 @@ done that."
1047 (error (pop-to-buffer next-buffer))))))))) 1047 (error (pop-to-buffer next-buffer)))))))))
1048 1048
1049;;;###autoload 1049;;;###autoload
1050(defun server-save-buffers-kill-display (proc &optional arg) 1050(defun server-save-buffers-kill-terminal (proc &optional arg)
1051 "Offer to save each buffer, then kill PROC. 1051 "Offer to save each buffer, then kill PROC.
1052 1052
1053With prefix arg, silently save all file-visiting buffers, then kill. 1053With prefix arg, silently save all file-visiting buffers, then kill.
diff --git a/lisp/startup.el b/lisp/startup.el
index 155ef1d3e79..cef38411dc9 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1430,7 +1430,7 @@ Copyright (C) 2005 Free Software Foundation, Inc."))
1430 ;; use precomputed string to save lots of time. 1430 ;; use precomputed string to save lots of time.
1431 (if (and (eq (key-binding "\C-h") 'help-command) 1431 (if (and (eq (key-binding "\C-h") 'help-command)
1432 (eq (key-binding "\C-xu") 'advertised-undo) 1432 (eq (key-binding "\C-xu") 'advertised-undo)
1433 (eq (key-binding "\C-x\C-c") 'save-buffers-kill-display) 1433 (eq (key-binding "\C-x\C-c") 'save-buffers-kill-terminal)
1434 (eq (key-binding "\C-ht") 'help-with-tutorial) 1434 (eq (key-binding "\C-ht") 'help-with-tutorial)
1435 (eq (key-binding "\C-hi") 'info) 1435 (eq (key-binding "\C-hi") 'info)
1436 (eq (key-binding "\C-hr") 'info-emacs-manual) 1436 (eq (key-binding "\C-hr") 'info-emacs-manual)
@@ -1447,7 +1447,7 @@ Browse manuals C-h i")
1447Get help %s 1447Get help %s
1448Emacs manual \\[info-emacs-manual] 1448Emacs manual \\[info-emacs-manual]
1449Emacs tutorial \\[help-with-tutorial]\tUndo changes\t\\[advertised-undo] 1449Emacs tutorial \\[help-with-tutorial]\tUndo changes\t\\[advertised-undo]
1450Buy manuals \\[view-order-manuals]\tExit Emacs\t\\[save-buffers-kill-display] 1450Buy manuals \\[view-order-manuals]\tExit Emacs\t\\[save-buffers-kill-terminal]
1451Browse manuals \\[info]" 1451Browse manuals \\[info]"
1452 (let ((where (where-is-internal 1452 (let ((where (where-is-internal
1453 'help-command nil t))) 1453 'help-command nil t)))
diff --git a/lisp/talk.el b/lisp/talk.el
index a008a0ef3fd..0807e655703 100644
--- a/lisp/talk.el
+++ b/lisp/talk.el
@@ -50,22 +50,22 @@ Each element has the form (DISPLAY FRAME BUFFER).")
50 "Connect to the Emacs talk group from the current X display or tty frame." 50 "Connect to the Emacs talk group from the current X display or tty frame."
51 (interactive) 51 (interactive)
52 (let ((type (frame-live-p (selected-frame))) 52 (let ((type (frame-live-p (selected-frame)))
53 (display (frame-display (selected-frame)))) 53 (display (frame-terminal (selected-frame))))
54 (cond 54 (cond
55 ((eq type t) 55 ((eq type t)
56 (talk-add-display (selected-frame))) 56 (talk-add-display (selected-frame)))
57 ((eq type 'x) 57 ((eq type 'x)
58 (talk-add-display (frame-display (selected-frame)))) 58 (talk-add-display (frame-terminal (selected-frame))))
59 (t 59 (t
60 (error "Unknown frame type")))) 60 (error "Unknown frame type"))))
61 (talk-update-buffers)) 61 (talk-update-buffers))
62 62
63(defun talk-add-display (frame) 63(defun talk-add-display (frame)
64 (let* ((display (if (frame-live-p frame) 64 (let* ((display (if (frame-live-p frame)
65 (frame-display frame) 65 (frame-terminal frame)
66 frame)) 66 frame))
67 (elt (assoc display talk-display-alist)) 67 (elt (assoc display talk-display-alist))
68 (name (concat "*talk-" (display-name display) "*")) 68 (name (concat "*talk-" (terminal-name display) "*"))
69 buffer) 69 buffer)
70 (unless (frame-live-p frame) 70 (unless (frame-live-p frame)
71 (setq frame (make-frame-on-display display (list (cons 'name name))))) 71 (setq frame (make-frame-on-display display (list (cons 'name name)))))
diff --git a/lisp/termdev.el b/lisp/termdev.el
index 5e12740e11c..c73fe017046 100644
--- a/lisp/termdev.el
+++ b/lisp/termdev.el
@@ -34,17 +34,17 @@ TERMINAL may be the name of an X display
34device (HOST.SERVER.SCREEN) or a tty device file." 34device (HOST.SERVER.SCREEN) or a tty device file."
35 (cond 35 (cond
36 ((integerp terminal) 36 ((integerp terminal)
37 (if (display-live-p terminal) 37 (if (terminal-live-p terminal)
38 terminal 38 terminal
39 (signal 'wrong-type-argument (list 'display-live-p terminal)))) 39 (signal 'wrong-type-argument (list 'terminal-live-p terminal))))
40 ((or (null terminal) (framep terminal)) 40 ((or (null terminal) (framep terminal))
41 (frame-display terminal)) 41 (frame-terminal terminal))
42 ((stringp terminal) 42 ((stringp terminal)
43 (let ((f (car (filtered-frame-list (lambda (frame) 43 (let ((f (car (filtered-frame-list (lambda (frame)
44 (or (equal (frame-parameter frame 'display) terminal) 44 (or (equal (frame-parameter frame 'display) terminal)
45 (equal (frame-parameter frame 'tty) terminal))))))) 45 (equal (frame-parameter frame 'tty) terminal)))))))
46 (or f (error "Display %s does not exist" terminal)) 46 (or f (error "Display %s does not exist" terminal))
47 (frame-display f))) 47 (frame-terminal f)))
48 (t 48 (t
49 (error "Invalid argument %s in `terminal-id'" terminal)))) 49 (error "Invalid argument %s in `terminal-id'" terminal))))
50 50
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el
index 1268994ba89..075ea879270 100644
--- a/lisp/xt-mouse.el
+++ b/lisp/xt-mouse.el
@@ -197,18 +197,18 @@ down the SHIFT key while pressing the mouse button."
197 197
198(defun turn-on-xterm-mouse-tracking-on-terminal (terminal) 198(defun turn-on-xterm-mouse-tracking-on-terminal (terminal)
199 "Enable xterm mouse tracking on TERMINAL." 199 "Enable xterm mouse tracking on TERMINAL."
200 (when (and xterm-mouse-mode (eq t (display-live-p terminal))) 200 (when (and xterm-mouse-mode (eq t (terminal-live-p terminal)))
201 (send-string-to-terminal "\e[?1000h" terminal))) 201 (send-string-to-terminal "\e[?1000h" terminal)))
202 202
203(defun turn-off-xterm-mouse-tracking-on-terminal (terminal) 203(defun turn-off-xterm-mouse-tracking-on-terminal (terminal)
204 "Disable xterm mouse tracking on TERMINAL." 204 "Disable xterm mouse tracking on TERMINAL."
205 (when (and xterm-mouse-mode (eq t (display-live-p terminal))) 205 (when (and xterm-mouse-mode (eq t (terminal-live-p terminal)))
206 (send-string-to-terminal "\e[?1000l" terminal))) 206 (send-string-to-terminal "\e[?1000l" terminal)))
207 207
208(defun xterm-mouse-handle-delete-frame (frame) 208(defun xterm-mouse-handle-delete-frame (frame)
209 "Turn off xterm mouse tracking if FRAME is the last frame on its device." 209 "Turn off xterm mouse tracking if FRAME is the last frame on its device."
210 (when (and (eq t (frame-live-p frame)) 210 (when (and (eq t (frame-live-p frame))
211 (<= 1 (length (frames-on-display-list (frame-display frame))))) 211 (<= 1 (length (frames-on-display-list (frame-terminal frame)))))
212 (turn-off-xterm-mouse-tracking-on-terminal frame))) 212 (turn-off-xterm-mouse-tracking-on-terminal frame)))
213 213
214;; Frame creation and deletion. 214;; Frame creation and deletion.