Mercurial > emacs
annotate lisp/obsolete/lucid.el @ 110523:a5ad4f188e19
Synch Semantic to CEDET 1.0.
Move CEDET ChangeLog entries to new file lisp/cedet/ChangeLog.
* semantic.el (semantic-version): Update to 2.0.
(semantic-mode-map): Add "," and "m" bindings.
(navigate-menu): Update.
* semantic/symref.el (semantic-symref-calculate-rootdir):
New function.
(semantic-symref-detect-symref-tool): Use it.
* semantic/symref/grep.el (semantic-symref-grep-shell): New var.
(semantic-symref-perform-search): Use it. Calculate root dir with
semantic-symref-calculate-rootdir.
(semantic-symref-derive-find-filepatterns): Improve error message.
* semantic/symref/list.el
(semantic-symref-results-mode-map): New bindings.
(semantic-symref-auto-expand-results): New option.
(semantic-symref-results-dump): Obey auto-expand.
(semantic-symref-list-expand-all, semantic-symref-regexp)
(semantic-symref-list-contract-all)
(semantic-symref-list-map-open-hits)
(semantic-symref-list-update-open-hits)
(semantic-symref-list-create-macro-on-open-hit)
(semantic-symref-list-call-macro-on-open-hits): New functions.
(semantic-symref-list-menu-entries)
(semantic-symref-list-menu): New vars.
(semantic-symref-list-map-open-hits): Move cursor to beginning of
match before calling the mapped function.
* semantic/doc.el
(semantic-documentation-comment-preceeding-tag): Do nothing if the
mode doesn't provide comment-start-skip.
* semantic/scope.el
(semantic-analyze-scope-nested-tags-default): Strip duplicates.
(semantic-analyze-scoped-inherited-tag-map): Take the tag we are
looking for as part of the scoped tags list.
* semantic/html.el (semantic-default-html-setup): Add
senator-step-at-tag-classes.
* semantic/decorate/include.el
(semantic-decoration-on-unknown-includes): Change light bgcolor.
(semantic-decoration-on-includes-highlight-default): Check that
the include tag has a postion.
* semantic/complete.el (semantic-collector-local-members):
(semantic-complete-read-tag-local-members)
(semantic-complete-jump-local-members): New class and functions.
(semantic-complete-self-insert): Save excursion before completing.
* semantic/analyze/complete.el
(semantic-analyze-possible-completions-default): If no completions
are found, return the raw by-name-only completion list. Add FLAGS
arguments. Add support for 'no-tc (type constraint) and
'no-unique, or no stripping duplicates.
(semantic-analyze-possible-completions-default): Add FLAGS arg.
* semantic/util-modes.el
(semantic-stickyfunc-show-only-functions-p): New option.
(semantic-stickyfunc-fetch-stickyline): Don't show stickytext for
the very first line in a buffer.
* semantic/util.el (semantic-hack-search)
(semantic-recursive-find-nonterminal-by-name)
(semantic-current-tag-interactive): Deleted.
(semantic-describe-buffer): Fix expand-nonterminal. Add
lex-syntax-mods, type relation separator char, and command
separation char.
(semantic-sanity-check): Only message if called interactively.
* semantic/tag.el (semantic-tag-deep-copy-one-tag): Copy the
:filename property and the tag position.
* semantic/lex-spp.el (semantic-lex-spp-lex-text-string):
Add recursion limit.
* semantic/imenu.el (semantic-imenu-bucketize-type-members):
Make this buffer local, not the obsoleted variable.
* semantic/idle.el: Add breadcrumbs support.
(semantic-idle-summary-current-symbol-info-default)
(semantic-idle-tag-highlight)
(semantic-idle-completion-list-default): Use
semanticdb-without-unloaded-file-searches for speed, and to
conform to the controls that specify if the idle timer is supposed
to be parsing unparsed includes.
(semantic-idle-symbol-highlight-face)
(semantic-idle-symbol-maybe-highlight): Rename from *-summary-*.
Callers changed.
(semantic-idle-work-parse-neighboring-files-flag): Default to nil.
(semantic-idle-work-update-headers-flag): New var.
(semantic-idle-work-for-one-buffer): Use it.
(semantic-idle-local-symbol-highlight): Rename from
semantic-idle-tag-highlight.
(semantic-idle-truncate-long-summaries): New option.
* semantic/ia.el (semantic-ia-cache)
(semantic-ia-get-completions): Deleted. Callers changed.
(semantic-ia-show-variants): New command.
(semantic-ia-show-doc): If doc is empty, don't make a temp buffer.
(semantic-ia-show-summary): If there isn't anything to show, say so.
* semantic/grammar.el (semantic-grammar-create-package):
Save the buffer even in batch mode.
* semantic/fw.el
(semanticdb-without-unloaded-file-searches): New macro.
* semantic/dep.el (semantic-dependency-find-file-on-path):
Fix case dereferencing ede-object when it is a list.
* semantic/db-typecache.el (semanticdb-expand-nested-tag)
(semanticdb-typecache-faux-namespace): New functions.
(semanticdb-typecache-file-tags)
(semanticdb-typecache-merge-streams): Use them.
(semanticdb-typecache-file-tags): When deriving tags from a file,
give the mode a chance to monkey with the tag copy.
(semanticdb-typecache-find-default): Wrap find in save-excursion.
(semanticdb-typecache-find-by-name-helper): Merge found names down.
* semantic/db-global.el
(semanticdb-enable-gnu-global-in-buffer): Don't show messages if
GNU Global is not available and we don't want to throw an error.
* semantic/db-find.el (semanticdb-find-result-nth-in-buffer):
When trying to normalize the tag to a buffer, don't error if
set-buffer method doesn't exist.
* semantic/db-file.el (semanticdb-save-db): Simplify msg.
* semantic/db.el (semanticdb-refresh-table): If forcing a
refresh on a file not in a buffer, use semantic-find-file-noselect
and delete the buffer after use.
(semanticdb-current-database-list): When calculating root via
hooks, force it through true-filename and skip the list of
possible roots.
* semantic/ctxt.el (semantic-ctxt-imported-packages): New.
* semantic/analyze/debug.el
(semantic-analyzer-debug-insert-tag): Reset standard output to
current buffer.
(semantic-analyzer-debug-global-symbol)
(semantic-analyzer-debug-missing-innertype): Change "prefix" to
"symbol" in messages.
* semantic/analyze/refs.el: (semantic-analyze-refs-impl)
(semantic-analyze-refs-proto): When calculating value, make sure
the found tag is 'similar' to the originating tag.
(semantic--analyze-refs-find-tags-with-parent): Attempt to
identify matches via imported symbols of parents.
(semantic--analyze-refs-full-lookup-with-parents): Do a deep
search during the brute search.
* semantic/analyze.el
(semantic-analyze-find-tag-sequence-default): Be robust to
calculated scopes being nil.
* semantic/bovine/c.el (semantic-c-describe-environment): Add
project macro symbol array.
(semantic-c-parse-lexical-token): Add recursion limit.
(semantic-ctxt-imported-packages, semanticdb-expand-nested-tag):
New overrides.
(semantic-expand-c-tag-namelist): Split a full type from a typedef
out to its own tag.
(semantic-expand-c-tag-namelist): Do not split out a typedef'd
inline type if it is an anonymous type.
(semantic-c-reconstitute-token): Use the optional initializers as
a clue that some function is probably a constructor. When
defining the type of these constructors, split the parent name,
and use only the class part, if applicable.
* semantic/bovine/c-by.el:
* semantic/wisent/python-wy.el: Regenerate.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 18 Sep 2010 22:49:54 -0400 |
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 |