aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1992-07-15 03:24:58 +0000
committerJim Blandy1992-07-15 03:24:58 +0000
commit0cc89026beff8f9f7b136f4464934675fe50cfcd (patch)
treebac0be283b70cdaec9095daaeae1e3fd291c56af
parentf98955eaaa3d2c459b373a7b4c5d1176a18687d9 (diff)
downloademacs-0cc89026beff8f9f7b136f4464934675fe50cfcd.tar.gz
emacs-0cc89026beff8f9f7b136f4464934675fe50cfcd.zip
*** empty log message ***
-rw-r--r--lisp/emulation/mlconvert.el4
-rw-r--r--lisp/loadup.el4
-rw-r--r--lisp/mail/sendmail.el8
-rw-r--r--lisp/register.el10
-rw-r--r--lisp/startup.el2
-rw-r--r--lisp/subr.el10
-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
-rw-r--r--lisp/window.el2
13 files changed, 46 insertions, 46 deletions
diff --git a/lisp/emulation/mlconvert.el b/lisp/emulation/mlconvert.el
index 54b177792c8..ec6d93eb4a1 100644
--- a/lisp/emulation/mlconvert.el
+++ b/lisp/emulation/mlconvert.el
@@ -248,8 +248,8 @@
248(ml-expansion 'file-modified-time "you-lose-on-file-modified-time") 248(ml-expansion 'file-modified-time "you-lose-on-file-modified-time")
249(ml-expansion 'needs-checkpointing "you-lose-on-needs-checkpointing") 249(ml-expansion 'needs-checkpointing "you-lose-on-needs-checkpointing")
250 250
251(ml-expansion 'lines-on-screen "set-screen-height") 251(ml-expansion 'lines-on-screen "set-frame-height")
252(ml-expansion 'columns-on-screen "set-screen-width") 252(ml-expansion 'columns-on-screen "set-frame-width")
253 253
254(ml-expansion 'dumped-emacs "t") 254(ml-expansion 'dumped-emacs "t")
255 255
diff --git a/lisp/loadup.el b/lisp/loadup.el
index b502f457899..24b09eb6bcf 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -40,8 +40,8 @@
40(garbage-collect) 40(garbage-collect)
41(load "window") 41(load "window")
42(garbage-collect) 42(garbage-collect)
43(if (fboundp 'delete-screen) 43(if (fboundp 'delete-frame)
44 (load "screen")) 44 (load "frame"))
45(garbage-collect) 45(garbage-collect)
46(load "paths.el") ;Don't get confused if someone compiled paths by mistake. 46(load "paths.el") ;Don't get confused if someone compiled paths by mistake.
47(garbage-collect) 47(garbage-collect)
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 7df1c7380ce..a9f6c864fec 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -647,10 +647,10 @@ The seventh argument ACTIONS is a list of actions to take
647 (mail noerase to subject in-reply-to cc replybuffer sendactions)) 647 (mail noerase to subject in-reply-to cc replybuffer sendactions))
648 648
649;;;###autoload 649;;;###autoload
650(defun mail-other-screen (&optional noerase to subject in-reply-to cc replybuffer sendactions) 650(defun mail-other-frame (&optional noerase to subject in-reply-to cc replybuffer sendactions)
651 "Like `mail' command, but display mail buffer in another screen." 651 "Like `mail' command, but display mail buffer in another frame."
652 (interactive "P") 652 (interactive "P")
653 (let ((pop-up-screens t)) 653 (let ((pop-up-frames t))
654 (pop-to-buffer "*mail*")) 654 (pop-to-buffer "*mail*"))
655 (mail noerase to subject in-reply-to cc replybuffer sendactions)) 655 (mail noerase to subject in-reply-to cc replybuffer sendactions))
656 656
@@ -659,7 +659,7 @@ The seventh argument ACTIONS is a list of actions to take
659(define-key ctl-x-4-map "m" 'mail-other-window) 659(define-key ctl-x-4-map "m" 'mail-other-window)
660 660
661;;;###autoload 661;;;###autoload
662(define-key ctl-x-5-map "m" 'mail-other-screen) 662(define-key ctl-x-5-map "m" 'mail-other-frame)
663 663
664 664
665;;; Do not add anything but external entries on this page. 665;;; Do not add anything but external entries on this page.
diff --git a/lisp/register.el b/lisp/register.el
index a78a046a56a..abf5d97d656 100644
--- a/lisp/register.el
+++ b/lisp/register.el
@@ -22,7 +22,7 @@
22(defvar register-alist nil 22(defvar register-alist nil
23 "Alist of elements (NAME . CONTENTS), one for each Emacs register. 23 "Alist of elements (NAME . CONTENTS), one for each Emacs register.
24NAME is a character (a number). CONTENTS is a string, number, 24NAME is a character (a number). CONTENTS is a string, number,
25screen configuration, mark or list. 25frame configuration, mark or list.
26A list represents a rectangle; its elements are strings.") 26A list represents a rectangle; its elements are strings.")
27 27
28(defun get-register (char) 28(defun get-register (char)
@@ -40,11 +40,11 @@ A list represents a rectangle; its elements are strings.")
40 40
41(defun point-to-register (char arg) 41(defun point-to-register (char arg)
42 "Store current location of point in register REGISTER. 42 "Store current location of point in register REGISTER.
43With prefix argument, store current screen configuration. 43With prefix argument, store current frame configuration.
44Use \\[jump-to-register] to go to that location or restore that configuration. 44Use \\[jump-to-register] to go to that location or restore that configuration.
45Argument is a character, naming the register." 45Argument is a character, naming the register."
46 (interactive "cPoint to register: \nP") 46 (interactive "cPoint to register: \nP")
47 (set-register char (if arg (current-screen-configuration) (point-marker)))) 47 (set-register char (if arg (current-frame-configuration) (point-marker))))
48 48
49(fset 'register-to-point 'jump-to-register) 49(fset 'register-to-point 'jump-to-register)
50(defun jump-to-register (char) 50(defun jump-to-register (char)
@@ -53,13 +53,13 @@ Argument is a character, naming the register."
53 (interactive "cJump to register: ") 53 (interactive "cJump to register: ")
54 (let ((val (get-register char))) 54 (let ((val (get-register char)))
55 (condition-case () 55 (condition-case ()
56 (set-screen-configuration val) 56 (set-frame-configuration val)
57 (error 57 (error
58 (if (markerp val) 58 (if (markerp val)
59 (progn 59 (progn
60 (switch-to-buffer (marker-buffer val)) 60 (switch-to-buffer (marker-buffer val))
61 (goto-char val)) 61 (goto-char val))
62 (error "Register doesn't contain a buffer position or screen configuration")))))) 62 (error "Register doesn't contain a buffer position or frame configuration"))))))
63 63
64;(defun number-to-register (arg char) 64;(defun number-to-register (arg char)
65; "Store a number in a register. 65; "Store a number in a register.
diff --git a/lisp/startup.el b/lisp/startup.el
index 8437a98e683..43d3e3c2eea 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -76,7 +76,7 @@ altering command-line-args-left to remove them.")
76 76
77(defvar before-init-hook nil 77(defvar before-init-hook nil
78 "Functions to call after handling urgent options but before loading init file. 78 "Functions to call after handling urgent options but before loading init file.
79The screen system uses this to open screens to display messages while 79The frame system uses this to open frames to display messages while
80Emacs loads the user's initialization file.") 80Emacs loads the user's initialization file.")
81 81
82(defvar after-init-hook nil 82(defvar after-init-hook nil
diff --git a/lisp/subr.el b/lisp/subr.el
index de97d76b426..ecb119cccfc 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -28,19 +28,19 @@ even if it is active."
28 (eq base-window 28 (eq base-window
29 (next-window base-window (if nomini 'arg))))) 29 (next-window base-window (if nomini 'arg)))))
30 30
31(defun walk-windows (proc &optional minibuf all-screens) 31(defun walk-windows (proc &optional minibuf all-frames)
32 "Cycle through all visible windows, calling PROC for each one. 32 "Cycle through all visible windows, calling PROC for each one.
33PROC is called with a window as argument. 33PROC is called with a window as argument.
34Optional second arg MINIBUF t means count the minibuffer window 34Optional second arg MINIBUF t means count the minibuffer window
35even if not active. If MINIBUF is neither t nor nil it means 35even if not active. If MINIBUF is neither t nor nil it means
36not to count the minibuffer even if it is active. 36not to count the minibuffer even if it is active.
37Optional third arg ALL-SCREENS t means include all windows in all screens; 37Optional third arg ALL-FRAMES t means include all windows in all frames;
38otherwise cycle within the selected screen." 38otherwise cycle within the selected frame."
39 (let* ((walk-windows-start (selected-window)) 39 (let* ((walk-windows-start (selected-window))
40 (walk-windows-current walk-windows-start)) 40 (walk-windows-current walk-windows-start))
41 (while (progn 41 (while (progn
42 (setq walk-windows-current 42 (setq walk-windows-current
43 (next-window walk-windows-current minibuf all-screens)) 43 (next-window walk-windows-current minibuf all-frames))
44 (funcall proc walk-windows-current) 44 (funcall proc walk-windows-current)
45 (not (eq walk-windows-current walk-windows-start)))))) 45 (not (eq walk-windows-current walk-windows-start))))))
46 46
@@ -205,7 +205,7 @@ The normal global definition of the character C-x indirects to this keymap.")
205(define-key ctl-x-map "4" 'ctl-x-4-prefix) 205(define-key ctl-x-map "4" 'ctl-x-4-prefix)
206 206
207(defvar ctl-x-5-map (make-sparse-keymap) 207(defvar ctl-x-5-map (make-sparse-keymap)
208 "Keymap for screen commands.") 208 "Keymap for frame commands.")
209(fset 'ctl-x-5-prefix ctl-x-5-map) 209(fset 'ctl-x-5-prefix ctl-x-5-map)
210(define-key ctl-x-map "5" 'ctl-x-5-prefix) 210(define-key ctl-x-map "5" 'ctl-x-5-prefix)
211 211
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")))
diff --git a/lisp/window.el b/lisp/window.el
index 8369789a9e7..e2a403dff58 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -40,7 +40,7 @@ even if it is active."
40 (walk-windows (function (lambda (w) 40 (walk-windows (function (lambda (w)
41 (setq count (+ count 1)))) 41 (setq count (+ count 1))))
42 'nomini) 42 'nomini)
43 (let ((size (/ (screen-height) count))) 43 (let ((size (/ (frame-height) count)))
44 (walk-windows (function (lambda (w) 44 (walk-windows (function (lambda (w)
45 (select-window w) 45 (select-window w)
46 (enlarge-window (- size (window-height))))) 46 (enlarge-window (- size (window-height)))))