Mercurial > emacs
annotate lisp/obsolete/lucid.el @ 108047:bf9a29f59be6
Merge from mainline.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Tue, 13 Apr 2010 22:52:59 +0000 |
parents | 1d1d5d9bd884 |
children | 515d80e174ba 376148b31b5e |
rev | line source |
---|---|
105868
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
1 ;;; lucid.el --- emulate some Lucid Emacs functions |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
2 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
3 ;; Copyright (C) 1993, 1995, 2001, 2002, 2003, 2004, |
106815 | 4 ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
105868
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
5 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
6 ;; Maintainer: FSF |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
7 ;; Keywords: emulations |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
8 ;; Obsolete-since: 23.2 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
9 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
10 ;; This file is part of GNU Emacs. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
11 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
12 ;; GNU Emacs is free software: you can redistribute it and/or modify |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
13 ;; it under the terms of the GNU General Public License as published by |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
14 ;; the Free Software Foundation, either version 3 of the License, or |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
15 ;; (at your option) any later version. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
16 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
17 ;; GNU Emacs is distributed in the hope that it will be useful, |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
20 ;; GNU General Public License for more details. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
21 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
22 ;; You should have received a copy of the GNU General Public License |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
24 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
25 ;;; Commentary: |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
26 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
27 ;;; Code: |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
28 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
29 ;; XEmacs autoloads CL so we might as well make use of it. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
30 (require 'cl) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
31 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
32 (defalias 'current-time-seconds 'current-time) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
33 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
34 (defun read-number (prompt &optional integers-only) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
35 "Read a number from the minibuffer. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
36 Keep reentering the minibuffer until we get suitable input. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
37 If optional argument INTEGERS-ONLY is non-nil, insist on an integer." |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
38 (interactive) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
39 (let (success |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
40 (number nil) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
41 (predicate (if integers-only 'integerp 'numberp))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
42 (while (not success) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
43 (let ((input-string (read-string prompt))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
44 (condition-case () |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
45 (setq number (read input-string)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
46 (error)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
47 (if (funcall predicate number) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
48 (setq success t) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
49 (let ((cursor-in-echo-area t)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
50 (message "Please type %s" |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
51 (if integers-only "an integer" "a number")) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
52 (sit-for 1))))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
53 number)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
54 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
55 (defun real-path-name (name &optional default) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
56 (file-truename (expand-file-name name default))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
57 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
58 ;; It's not clear what to return if the mouse is not in FRAME. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
59 (defun read-mouse-position (frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
60 (let ((pos (mouse-position))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
61 (if (eq (car pos) frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
62 (cdr pos)))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
63 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
64 (defun switch-to-other-buffer (arg) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
65 "Switch to the previous buffer. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
66 With a numeric arg N, switch to the Nth most recent buffer. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
67 With an arg of 0, buries the current buffer at the |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
68 bottom of the buffer stack." |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
69 (interactive "p") |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
70 (if (eq arg 0) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
71 (bury-buffer (current-buffer))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
72 (switch-to-buffer |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
73 (if (<= arg 1) (other-buffer (current-buffer)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
74 (nth arg |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
75 (apply 'nconc |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
76 (mapcar |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
77 (lambda (buf) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
78 (if (= ?\ (string-to-char (buffer-name buf))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
79 nil |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
80 (list buf))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
81 (buffer-list))))))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
82 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
83 (defun device-class (&optional device) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
84 "Return the class (color behavior) of DEVICE. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
85 This will be one of 'color, 'grayscale, or 'mono. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
86 This function exists for compatibility with XEmacs." |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
87 (cond |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
88 ((display-color-p device) 'color) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
89 ((display-grayscale-p device) 'grayscale) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
90 (t 'mono))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
91 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
92 (defalias 'find-face 'internal-find-face) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
93 (defalias 'get-face 'internal-get-face) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
94 ;; internal-try-face-font was removed from faces.el in rev 1.139, 1999/07/21. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
95 ;;;(defalias 'try-face-font 'internal-try-face-font) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
96 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
97 (defalias 'exec-to-string 'shell-command-to-string) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
98 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
99 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
100 ;; Buffer context |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
101 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
102 (defun buffer-syntactic-context (&optional buffer) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
103 "Syntactic context at point in BUFFER. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
104 Either of `string', `comment' or nil. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
105 This is an XEmacs compatibility function." |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
106 (with-current-buffer (or buffer (current-buffer)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
107 (let ((state (syntax-ppss (point)))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
108 (cond |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
109 ((nth 3 state) 'string) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
110 ((nth 4 state) 'comment))))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
111 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
112 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
113 (defun buffer-syntactic-context-depth (&optional buffer) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
114 "Syntactic parenthesis depth at point in BUFFER. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
115 This is an XEmacs compatibility function." |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
116 (with-current-buffer (or buffer (current-buffer)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
117 (nth 0 (syntax-ppss (point))))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
118 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
119 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
120 ;; Extents |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
121 (defun make-extent (beg end &optional buffer) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
122 (make-overlay beg end buffer)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
123 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
124 (defun extent-properties (extent) (overlay-properties extent)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
125 (unless (fboundp 'extent-property) (defalias 'extent-property 'overlay-get)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
126 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
127 (defun extent-at (pos &optional object property before) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
128 (with-current-buffer (or object (current-buffer)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
129 (let ((overlays (overlays-at pos))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
130 (when property |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
131 (let (filtered) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
132 (while overlays |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
133 (if (overlay-get (car overlays) property) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
134 (setq filtered (cons (car overlays) filtered))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
135 (setq overlays (cdr overlays))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
136 (setq overlays filtered))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
137 (setq overlays |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
138 (sort overlays |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
139 (function (lambda (o1 o2) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
140 (let ((p1 (or (overlay-get o1 'priority) 0)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
141 (p2 (or (overlay-get o2 'priority) 0))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
142 (or (> p1 p2) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
143 (and (= p1 p2) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
144 (> (overlay-start o1) (overlay-start o2))))))))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
145 (if before |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
146 (nth 1 (memq before overlays)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
147 (car overlays))))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
148 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
149 (defun set-extent-property (extent prop value) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
150 ;; Make sure that separate adjacent extents |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
151 ;; with the same mouse-face value |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
152 ;; do not run together as one extent. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
153 (and (eq prop 'mouse-face) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
154 (symbolp value) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
155 (setq value (list value))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
156 (if (eq prop 'duplicable) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
157 (cond ((and value (not (overlay-get extent prop))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
158 ;; If becoming duplicable, copy all overlayprops to text props. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
159 (add-text-properties (overlay-start extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
160 (overlay-end extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
161 (overlay-properties extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
162 (overlay-buffer extent))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
163 ;; If becoming no longer duplicable, remove these text props. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
164 ((and (not value) (overlay-get extent prop)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
165 (remove-text-properties (overlay-start extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
166 (overlay-end extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
167 (overlay-properties extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
168 (overlay-buffer extent)))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
169 ;; If extent is already duplicable, put this property |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
170 ;; on the text as well as on the overlay. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
171 (if (overlay-get extent 'duplicable) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
172 (put-text-property (overlay-start extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
173 (overlay-end extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
174 prop value (overlay-buffer extent)))) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
175 (overlay-put extent prop value)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
176 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
177 (defun set-extent-face (extent face) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
178 (set-extent-property extent 'face face)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
179 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
180 (defun set-extent-end-glyph (extent glyph) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
181 (set-extent-property extent 'after-string glyph)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
182 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
183 (defun delete-extent (extent) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
184 (set-extent-property extent 'duplicable nil) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
185 (delete-overlay extent)) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
186 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
187 ;; Support the Lucid names with `screen' instead of `frame'. |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
188 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
189 (defalias 'current-screen-configuration 'current-frame-configuration) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
190 (defalias 'delete-screen 'delete-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
191 (defalias 'find-file-new-screen 'find-file-other-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
192 (defalias 'find-file-read-only-new-screen 'find-file-read-only-other-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
193 (defalias 'find-tag-new-screen 'find-tag-other-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
194 ;;(defalias 'focus-screen 'focus-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
195 (defalias 'iconify-screen 'iconify-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
196 (defalias 'mail-new-screen 'mail-other-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
197 (defalias 'make-screen-invisible 'make-frame-invisible) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
198 (defalias 'make-screen-visible 'make-frame-visible) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
199 ;; (defalias 'minibuffer-screen-list 'minibuffer-frame-list) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
200 (defalias 'modify-screen-parameters 'modify-frame-parameters) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
201 (defalias 'next-screen 'next-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
202 ;; (defalias 'next-multiscreen-window 'next-multiframe-window) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
203 ;; (defalias 'previous-multiscreen-window 'previous-multiframe-window) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
204 ;; (defalias 'redirect-screen-focus 'redirect-frame-focus) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
205 (defalias 'redraw-screen 'redraw-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
206 ;; (defalias 'screen-char-height 'frame-char-height) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
207 ;; (defalias 'screen-char-width 'frame-char-width) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
208 ;; (defalias 'screen-configuration-to-register 'frame-configuration-to-register) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
209 ;; (defalias 'screen-focus 'frame-focus) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
210 (defalias 'screen-list 'frame-list) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
211 ;; (defalias 'screen-live-p 'frame-live-p) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
212 (defalias 'screen-parameters 'frame-parameters) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
213 (defalias 'screen-pixel-height 'frame-pixel-height) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
214 (defalias 'screen-pixel-width 'frame-pixel-width) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
215 (defalias 'screen-root-window 'frame-root-window) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
216 (defalias 'screen-selected-window 'frame-selected-window) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
217 (defalias 'lower-screen 'lower-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
218 (defalias 'raise-screen 'raise-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
219 (defalias 'screen-visible-p 'frame-visible-p) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
220 (defalias 'screenp 'framep) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
221 (defalias 'select-screen 'select-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
222 (defalias 'selected-screen 'selected-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
223 ;; (defalias 'set-screen-configuration 'set-frame-configuration) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
224 ;; (defalias 'set-screen-height 'set-frame-height) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
225 (defalias 'set-screen-position 'set-frame-position) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
226 (defalias 'set-screen-size 'set-frame-size) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
227 ;; (defalias 'set-screen-width 'set-frame-width) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
228 (defalias 'switch-to-buffer-new-screen 'switch-to-buffer-other-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
229 ;; (defalias 'unfocus-screen 'unfocus-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
230 (defalias 'visible-screen-list 'visible-frame-list) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
231 (defalias 'window-screen 'window-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
232 (defalias 'x-create-screen 'x-create-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
233 (defalias 'x-new-screen 'make-frame) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
234 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
235 (provide 'lucid) |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
236 |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
237 ;; arch-tag: 80f9ab46-0b36-4151-86ed-3edb6d449c9e |
b4d1d7858370
* emacs-lisp/lucid.el: Move to obsolete/lucid.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
238 ;;; lucid.el ends here |