annotate lisp/emacs-lisp/lucid.el @ 2571:b65cf676a09b

All fsets changed to defaliases.
author Eric S. Raymond <esr@snark.thyrsus.com>
date Fri, 23 Apr 1993 06:51:44 +0000
parents 6ddf357bd36c
children 1e3d854828fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2484
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
1 ;;; lucid.el --- Emulate some Lucid Emacs functions.
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
2 ;; Copyright (C) 1993 Free Software Foundation, Inc.
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
3
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
4 ;; This file is part of GNU Emacs.
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
5
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
6 ;; GNU Emacs is free software; you can redistribute it and/or modify
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
7 ;; it under the terms of the GNU General Public License as published by
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
8 ;; the Free Software Foundation; either version 2, or (at your option)
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
9 ;; any later version.
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
10
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
11 ;; GNU Emacs is distributed in the hope that it will be useful,
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
14 ;; GNU General Public License for more details.
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
15
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
16 ;; You should have received a copy of the GNU General Public License
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
17 ;; along with GNU Emacs; see the file COPYING. If not, write to
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
18 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
19
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
20
2088
aa90bb7c515b Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21 (defun add-timeout (secs function object &optional resignal)
aa90bb7c515b Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22 (run-at-time secs resignal function object))
aa90bb7c515b Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23
aa90bb7c515b Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 (defun disable-timeout (timeout)
aa90bb7c515b Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 (cancel-timer timeout))
2089
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
26
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
27 (defun copy-tree (tree)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
28 (if (consp tree)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
29 (cons (copy-tree (car tree))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
30 (copy-tree (cdr tree)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
31 (if (vectorp tree)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
32 (let ((new (copy-sequence tree))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
33 (i (1- (length new))))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
34 (while (>= i 0)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
35 (aset new i (copy-tree (aref new i)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
36 (setq i (1- i)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
37 new)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
38 tree)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
39
2571
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
40 (defalias 'current-time-seconds 'current-time)
2089
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
41
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
42 (defun keymap-parent (keymap)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
43 (let ((tail (cdr keymap)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
44 (while (and tail (not (eq (car tail) 'keymap)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
45 (setq tail (cdr tail)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
46 tail))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
47
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
48 (defun set-keymap-parent (keymap new-parent)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
49 (let ((tail (cdr keymap)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
50 (while (and tail (cdr tail) (not (eq (car (cdr tail)) 'keymap)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
51 (setq tail (cdr tail)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
52 (if tail
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
53 (setcdr tail new-parent))))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
54
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
55 (defun remove-hook (hook-var function)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
56 (if (boundp 'hook-var)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
57 (set hook-var (delq function (symbol-value hook-var)))))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
58
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
59 (defun remprop (symbol prop)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
60 (let ((plist (symbol-plist symbol)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
61 (while (eq (car plist) prop)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
62 (setplist symbol (setq plist (cdr (cdr plist)))))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
63 (while plist
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
64 (if (eq (nth 2 plist) prop)
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
65 (setcdr (cdr plist) (nthcdr 4 plist)))
cc2e35185964 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2088
diff changeset
66 (setq plist (cdr (cdr plist))))))
2168
af8f27940f79 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2089
diff changeset
67
2206
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
68 (defun map-keymap (function keymap &optional sort-first)
2168
af8f27940f79 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2089
diff changeset
69 "Call FUNCTION for every binding in KEYMAP.
af8f27940f79 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2089
diff changeset
70 This includes bindings inherited from a parent keymap.
af8f27940f79 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2089
diff changeset
71 FUNCTION receives two arguments each time it is called:
af8f27940f79 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2089
diff changeset
72 the character (more generally, the event type) that is bound,
af8f27940f79 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2089
diff changeset
73 and the binding it has."
2206
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
74 (if sort-first
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
75 (let (list)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
76 (map-keymap (function (lambda (a b)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
77 (setq list (cons (cons a b) list))))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
78 keymap)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
79 (setq list (sort list
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
80 (function (lambda (a b)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
81 (setq a (car a) b (car b))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
82 (if (integerp a)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
83 (if (integerp b) (< a b)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
84 t)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
85 (if (integerp b) t
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
86 (string< a b)))))))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
87 (while list
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
88 (funcall function (car (car list)) (cdr (car list)))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
89 (setq list (cdr list))))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
90 (while (consp keymap)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
91 (if (consp (car keymap))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
92 (funcall function (car (car keymap)) (cdr (car keymap)))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
93 (if (vectorp (car keymap))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
94 (let ((i (1- (length (car keymap))))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
95 (vector (car keymap)))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
96 (while (>= i 0)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
97 (funcall function i (aref vector i))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
98 (setq i (1- i))))))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
99 (setq keymap (cdr keymap)))))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
100
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
101 (defun real-path-name (name &optional default)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
102 (file-truename (expand-file-name name default)))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
103
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
104 ;; It's not clear what to return if the mouse is not in FRAME.
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
105 (defun read-mouse-position (frame)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
106 (let ((pos (mouse-position)))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
107 (if (eq (car pos) frame)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
108 (cdr pos))))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
109
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
110 (defun switch-to-other-buffer (arg)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
111 "Switch to the previous buffer.
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
112 With a numeric arg N, switch to the Nth most recent buffer.
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
113 With an arg of 0, buries the current buffer at the
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
114 bottom of the buffer stack."
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
115 (interactive "p")
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
116 (if (eq arg 0)
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
117 (bury-buffer (current-buffer)))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
118 (switch-to-buffer
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
119 (if (<= arg 1) (other-buffer (current-buffer))
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
120 (nth (1+ arg) (buffer-list)))))
2388
3f27c886f375 (try-face-font, find-face, get-face): New aliases.
Richard M. Stallman <rms@gnu.org>
parents: 2281
diff changeset
121
2571
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
122 (defalias 'find-face 'internal-find-face)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
123 (defalias 'get-face 'internal-get-face)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
124 (defalias 'try-face-font 'internal-try-face-font)
2206
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
125
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
126 ;; Support the Lucid names with `screen' instead of `frame'.
c3bec907580c *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 2168
diff changeset
127
2571
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
128 (defalias 'current-screen-configuration 'current-frame-configuration)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
129 (defalias 'delete-screen 'delete-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
130 (defalias 'find-file-new-screen 'find-file-other-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
131 (defalias 'find-file-read-only-new-screen 'find-file-read-only-other-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
132 (defalias 'find-tag-new-screen 'find-tag-other-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
133 ;;(defalias 'focus-screen 'focus-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
134 (defalias 'iconify-screen 'iconify-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
135 (defalias 'mail-new-screen 'mail-other-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
136 (defalias 'make-screen-invisible 'make-frame-invisible)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
137 (defalias 'make-screen-visible 'make-frame-visible)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
138 ;; (defalias 'minibuffer-screen-list 'minibuffer-frame-list)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
139 (defalias 'modify-screen-parameters 'modify-frame-parameters)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
140 (defalias 'next-screen 'next-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
141 ;; (defalias 'next-multiscreen-window 'next-multiframe-window)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
142 ;; (defalias 'previous-multiscreen-window 'previous-multiframe-window)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
143 ;; (defalias 'redirect-screen-focus 'redirect-frame-focus)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
144 (defalias 'redraw-screen 'redraw-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
145 ;; (defalias 'screen-char-height 'frame-char-height)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
146 ;; (defalias 'screen-char-width 'frame-char-width)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
147 ;; (defalias 'screen-configuration-to-register 'frame-configuration-to-register)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
148 ;; (defalias 'screen-focus 'frame-focus)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
149 (defalias 'screen-height 'frame-height)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
150 (defalias 'screen-list 'frame-list)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
151 ;; (defalias 'screen-live-p 'frame-live-p)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
152 (defalias 'screen-parameters 'frame-parameters)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
153 (defalias 'screen-pixel-height 'frame-pixel-height)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
154 (defalias 'screen-pixel-width 'frame-pixel-width)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
155 (defalias 'screen-root-window 'frame-root-window)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
156 (defalias 'screen-selected-window 'frame-selected-window)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
157 (defalias 'lower-screen 'lower-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
158 (defalias 'raise-screen 'raise-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
159 (defalias 'screen-visible-p 'frame-visible-p)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
160 (defalias 'screen-width 'frame-width)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
161 (defalias 'screenp 'framep)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
162 (defalias 'select-screen 'select-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
163 (defalias 'selected-screen 'selected-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
164 ;; (defalias 'set-screen-configuration 'set-frame-configuration)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
165 ;; (defalias 'set-screen-height 'set-frame-height)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
166 (defalias 'set-screen-position 'set-frame-position)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
167 (defalias 'set-screen-size 'set-frame-size)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
168 ll (defalias 'set-screen-width 'set-frame-width)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
169 (defalias 'switch-to-buffer-new-screen 'switch-to-buffer-other-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
170 ;; (defalias 'unfocus-screen 'unfocus-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
171 (defalias 'visible-screen-list 'visible-frame-list)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
172 (defalias 'window-screen 'window-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
173 (defalias 'x-create-screen 'x-create-frame)
b65cf676a09b All fsets changed to defaliases.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2484
diff changeset
174 (defalias 'x-new-screen 'new-frame)
2484
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
175
6ddf357bd36c Add copyright notice.
Richard M. Stallman <rms@gnu.org>
parents: 2388
diff changeset
176 ;;; end of lucid.el