aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term
diff options
context:
space:
mode:
authorJim Blandy1992-07-15 03:24:58 +0000
committerJim Blandy1992-07-15 03:24:58 +0000
commit0cc89026beff8f9f7b136f4464934675fe50cfcd (patch)
treebac0be283b70cdaec9095daaeae1e3fd291c56af /lisp/term
parentf98955eaaa3d2c459b373a7b4c5d1176a18687d9 (diff)
downloademacs-0cc89026beff8f9f7b136f4464934675fe50cfcd.tar.gz
emacs-0cc89026beff8f9f7b136f4464934675fe50cfcd.zip
*** empty log message ***
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/sun-mouse.el10
-rw-r--r--lisp/term/sup-mouse.el6
-rw-r--r--lisp/term/vt100.el4
-rw-r--r--lisp/term/vt200.el4
-rw-r--r--lisp/term/wyse50.el8
-rw-r--r--lisp/term/x-win.el20
6 files changed, 26 insertions, 26 deletions
diff --git a/lisp/term/sun-mouse.el b/lisp/term/sun-mouse.el
index db7565baecb..fad388337e8 100644
--- a/lisp/term/sun-mouse.el
+++ b/lisp/term/sun-mouse.el
@@ -218,7 +218,7 @@ Handles wrapped and horizontally scrolled lines correctly."
218 218
219(defun minibuffer-window-p (window) 219(defun minibuffer-window-p (window)
220 "True iff this WINDOW is minibuffer." 220 "True iff this WINDOW is minibuffer."
221 (= (screen-height) 221 (= (frame-height)
222 (nth 3 (window-edges window)) ; The bottom edge. 222 (nth 3 (window-edges window)) ; The bottom edge.
223 )) 223 ))
224 224
@@ -336,11 +336,11 @@ Returns list (window x y) where x and y are relative to window."
336 (te (nth 1 we)) 336 (te (nth 1 we))
337 (re (nth 2 we)) 337 (re (nth 2 we))
338 (be (nth 3 we))) 338 (be (nth 3 we)))
339 (if (= re (screen-width)) 339 (if (= re (frame-width))
340 ;; include the continuation column with this window 340 ;; include the continuation column with this window
341 (setq re (1+ re))) 341 (setq re (1+ re)))
342 (if (= be (screen-height)) 342 (if (= be (frame-height))
343 ;; include partial line at bottom of screen with this window 343 ;; include partial line at bottom of frame with this window
344 ;; id est, if window is not multple of char size. 344 ;; id est, if window is not multple of char size.
345 (setq be (1+ be))) 345 (setq be (1+ be)))
346 346
@@ -375,7 +375,7 @@ Returns one of (text scrollbar modeline minibuffer)"
375 375
376(defun window-line-end (w x y) 376(defun window-line-end (w x y)
377 "Return WINDOW column (ignore X) containing end of line Y" 377 "Return WINDOW column (ignore X) containing end of line Y"
378 (eval-in-window w (save-excursion (move-to-loc (screen-width) y)))) 378 (eval-in-window w (save-excursion (move-to-loc (frame-width) y))))
379 379
380;;; 380;;;
381;;; The encoding of mouse events into a mousemap. 381;;; The encoding of mouse events into a mousemap.
diff --git a/lisp/term/sup-mouse.el b/lisp/term/sup-mouse.el
index 471661f7686..be7e7f0ff4d 100644
--- a/lisp/term/sup-mouse.el
+++ b/lisp/term/sup-mouse.el
@@ -75,7 +75,7 @@ on modeline on \"scroll bar\" in minibuffer
75 (window (sup-pos-to-window x y)) 75 (window (sup-pos-to-window x y))
76 (edges (window-edges window)) 76 (edges (window-edges window))
77 (old-window (selected-window)) 77 (old-window (selected-window))
78 (in-minibuf-p (eq y (1- (screen-height)))) 78 (in-minibuf-p (eq y (1- (frame-height))))
79 (same-window-p (and (not in-minibuf-p) (eq window old-window))) 79 (same-window-p (and (not in-minibuf-p) (eq window old-window)))
80 (in-modeline-p (eq y (1- (nth 3 edges)))) 80 (in-modeline-p (eq y (1- (nth 3 edges))))
81 (in-scrollbar-p (>= x (1- (nth 2 edges))))) 81 (in-scrollbar-p (>= x (1- (nth 2 edges)))))
@@ -190,8 +190,8 @@ X and Y are 0-based character positions in the window."
190 ) 190 )
191 191
192(defun sup-pos-to-window (x y) 192(defun sup-pos-to-window (x y)
193 "Find window corresponding to screen coordinates. 193 "Find window corresponding to frame coordinates.
194X and Y are 0-based character positions on the screen." 194X and Y are 0-based character positions on the frame."
195 (let ((edges (window-edges)) 195 (let ((edges (window-edges))
196 (window nil)) 196 (window nil))
197 (while (and (not (eq window (selected-window))) 197 (while (and (not (eq window (selected-window)))
diff --git a/lisp/term/vt100.el b/lisp/term/vt100.el
index 41cce4b56fb..a3092ea42fa 100644
--- a/lisp/term/vt100.el
+++ b/lisp/term/vt100.el
@@ -49,7 +49,7 @@ but only if you give this command."
49 49
50 50
51;;; Controlling the screen width. 51;;; Controlling the screen width.
52(defconst vt100-wide-mode (= (screen-width) 132) 52(defconst vt100-wide-mode (= (frame-width) 132)
53 "t if vt100 is in 132-column mode.") 53 "t if vt100 is in 132-column mode.")
54 54
55(defun vt100-wide-mode (&optional arg) 55(defun vt100-wide-mode (&optional arg)
@@ -59,4 +59,4 @@ but only if you give this command."
59 (if (null arg) (not vt100-wide-mode) 59 (if (null arg) (not vt100-wide-mode)
60 (> (prefix-numeric-value arg) 0))) 60 (> (prefix-numeric-value arg) 0)))
61 (send-string-to-terminal (if vt100-wide-mode "\e[?3h" "\e[?3l")) 61 (send-string-to-terminal (if vt100-wide-mode "\e[?3h" "\e[?3l"))
62 (set-screen-width (if vt100-wide-mode 132 80))) 62 (set-frame-width (if vt100-wide-mode 132 80)))
diff --git a/lisp/term/vt200.el b/lisp/term/vt200.el
index 162baecd7c1..e2055798f5c 100644
--- a/lisp/term/vt200.el
+++ b/lisp/term/vt200.el
@@ -1,9 +1,9 @@
1(defun terminal-80-columns () 1(defun terminal-80-columns ()
2 (interactive) 2 (interactive)
3 (send-string-to-terminal "\033[?3l") 3 (send-string-to-terminal "\033[?3l")
4 (set-screen-width 80)) 4 (set-frame-width 80))
5 5
6(defun terminal-132-columns () 6(defun terminal-132-columns ()
7 (interactive) 7 (interactive)
8 (send-string-to-terminal "\033[?3h") 8 (send-string-to-terminal "\033[?3h")
9 (set-screen-width 132)) 9 (set-frame-width 132))
diff --git a/lisp/term/wyse50.el b/lisp/term/wyse50.el
index 6430a41ce2e..81a7b321142 100644
--- a/lisp/term/wyse50.el
+++ b/lisp/term/wyse50.el
@@ -48,12 +48,12 @@ With an argument N, move to the Nth line from the bottom of the window."
48(defun wyse-50-toggle-screen-width () 48(defun wyse-50-toggle-screen-width ()
49 "Alternate between 80 and 132 columns." 49 "Alternate between 80 and 132 columns."
50 (interactive) 50 (interactive)
51 (if (<= (screen-width) 80) 51 (if (<= (frame-width) 80)
52 (progn 52 (progn
53 (send-string-to-terminal "\e`;") 53 (send-string-to-terminal "\e`;")
54 (set-screen-width 131)) 54 (set-frame-width 131))
55 (send-string-to-terminal "\e`:") 55 (send-string-to-terminal "\e`:")
56 (set-screen-width 79))) 56 (set-frame-width 79)))
57 57
58 58
59;;; Define the escape sequences for the function keys. 59;;; Define the escape sequences for the function keys.
@@ -162,7 +162,7 @@ With an argument N, move to the Nth line from the bottom of the window."
162(setq kill-emacs-hook 162(setq kill-emacs-hook
163 (function (lambda () (interactive) 163 (function (lambda () (interactive)
164 (send-string-to-terminal 164 (send-string-to-terminal
165 (concat "\ea23R" (1+ (screen-width)) "C\eG0"))))) 165 (concat "\ea23R" (1+ (frame-width)) "C\eG0")))))
166 166
167(defun enable-arrow-keys () 167(defun enable-arrow-keys ()
168 "To be called by term-setup-hook. Overrides 6 Emacs standard keys 168 "To be called by term-setup-hook. Overrides 6 Emacs standard keys
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 22237e5e21a..83b1fc9590e 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -61,7 +61,7 @@
61(if (not (eq window-system 'x)) 61(if (not (eq window-system 'x))
62 (error "Loading x-win.el but not compiled for X")) 62 (error "Loading x-win.el but not compiled for X"))
63 63
64(require 'screen) 64(require 'frame)
65(require 'mouse) 65(require 'mouse)
66 66
67(setq command-switch-alist 67(setq command-switch-alist
@@ -118,34 +118,34 @@
118 (let ((aelt (assoc switch x-switch-definitions))) 118 (let ((aelt (assoc switch x-switch-definitions)))
119 (if aelt 119 (if aelt
120 (if (nth 2 aelt) 120 (if (nth 2 aelt)
121 (setq default-screen-alist 121 (setq default-frame-alist
122 (cons (cons (nth 1 aelt) (nth 2 aelt)) 122 (cons (cons (nth 1 aelt) (nth 2 aelt))
123 default-screen-alist)) 123 default-frame-alist))
124 (setq default-screen-alist 124 (setq default-frame-alist
125 (cons (cons (nth 1 aelt) 125 (cons (cons (nth 1 aelt)
126 (car x-invocation-args)) 126 (car x-invocation-args))
127 default-screen-alist) 127 default-frame-alist)
128 x-invocation-args (cdr x-invocation-args)))))) 128 x-invocation-args (cdr x-invocation-args))))))
129 129
130;; Handler for switches of the form "-switch n" 130;; Handler for switches of the form "-switch n"
131(defun x-handle-numeric-switch (switch) 131(defun x-handle-numeric-switch (switch)
132 (let ((aelt (assoc switch x-switch-definitions))) 132 (let ((aelt (assoc switch x-switch-definitions)))
133 (if aelt 133 (if aelt
134 (setq default-screen-alist 134 (setq default-frame-alist
135 (cons (cons (nth 1 aelt) 135 (cons (cons (nth 1 aelt)
136 (string-to-int (car x-invocation-args))) 136 (string-to-int (car x-invocation-args)))
137 default-screen-alist) 137 default-frame-alist)
138 x-invocation-args 138 x-invocation-args
139 (cdr x-invocation-args))))) 139 (cdr x-invocation-args)))))
140 140
141;; Handle the geometry option 141;; Handle the geometry option
142(defun x-handle-geometry (switch) 142(defun x-handle-geometry (switch)
143 (setq initial-screen-alist (append initial-screen-alist 143 (setq initial-frame-alist (append initial-frame-alist
144 (x-geometry (car x-invocation-args))) 144 (x-geometry (car x-invocation-args)))
145 x-invocation-args (cdr x-invocation-args))) 145 x-invocation-args (cdr x-invocation-args)))
146 146
147(defvar x-display-name nil 147(defvar x-display-name nil
148 "The X display name specifying server and X screen.") 148 "The X display name specifying server and X frame.")
149 149
150(defun x-handle-display (switch) 150(defun x-handle-display (switch)
151 (setq x-display-name (car x-invocation-args) 151 (setq x-display-name (car x-invocation-args)
@@ -442,7 +442,7 @@ This returns ARGS with the arguments that have been processed removed."
442;;; the display. 442;;; the display.
443(set-input-mode t nil t) 443(set-input-mode t nil t)
444 444
445(setq screen-creation-function 'x-create-screen) 445(setq frame-creation-function 'x-create-frame)
446(setq suspend-hook 446(setq suspend-hook
447 '(lambda () 447 '(lambda ()
448 (error "Suspending an emacs running under X makes no sense"))) 448 (error "Suspending an emacs running under X makes no sense")))