annotate lisp/progmodes/scheme.el @ 17359:13ebd090612a

Add DSSSL mode and share code with newly required lisp-mode as much as possible. (scheme-mode-variables): Copy filling stuff from lisp-mode. Add an outline-regexp. (scheme-mode-map): Inherit shared-lisp-mode-map and provide a menu. (dsssl-sgml-declaration): New variable. (dsssl-mode): New command. (dsssl-font-lock-keywords): New variable. (scheme-indent-function): Near copy of lisp-indent-function. (scheme-comment-indent, scheme-indent-offset, scheme-indent-function, scheme-indent-line, calculate-scheme-indent, scheme-indent-specform, scheme-indent-defform, scheme-indent-sexp): Removed; use lisp-mode equivalents. (scheme-imenu-generic-expression): New variable. (dsssl-imenu-generic-expression): New variable. (scheme-let-indent): Use lisp-indent-specform.
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 Apr 1997 19:41:00 +0000
parents c5f04e0724ec
children 1c01c986afc9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
1 ;;; scheme.el --- Scheme (and DSSSL) editing mode.
658
7cbd4fcd8b0f *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 584
diff changeset
2
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
3 ;; Copyright (C) 1986, 87, 88, 1997 Free Software Foundation, Inc.
846
20674ae6bf52 *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 814
diff changeset
4
807
4f28bd14272c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 658
diff changeset
5 ;; Author: Bill Rozas <jinz@prep.ai.mit.edu>
814
38b2499cb3e9 *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 807
diff changeset
6 ;; Keywords: languages, lisp
807
4f28bd14272c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 658
diff changeset
7
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
807
4f28bd14272c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 658
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 ;; any later version.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
14169
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 11173
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 11173
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 11173
diff changeset
23 ;; Boston, MA 02111-1307, USA.
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
25 ;; Originally adapted from Lisp mode by Bill Rozas, jinx@prep with a
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
26 ;; comment that the code should be merged back. Merging done by
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
27 ;; d.love@dl.ac.uk when DSSSL features added.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
28
807
4f28bd14272c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 658
diff changeset
29 ;;; Commentary:
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
31 ;; The major mode for editing Scheme-type Lisp code, very similar to
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
32 ;; the Lisp mode documented in the Emacs manual. `dsssl-mode' is a
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
33 ;; variant of scheme-mode for editing DSSSL specifications for SGML
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
34 ;; documents. [As of Apr 1997, some pointers for DSSSL may be found,
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
35 ;; for instance, at <URL:http://www.sil.org/sgml/related.html#dsssl>.]
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
36 ;; All these Lisp-ish modes vary basically in details of the language
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
37 ;; syntax they highlight/indent/index, but dsssl-mode uses "^;;;" as
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
38 ;; the page-delimiter since ^L isn't normally a legal SGML character.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
39 ;;
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
40 ;; For interacting with a Scheme interpreter See also `run-scheme' in
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
41 ;; the `cmuscheme' package and also the implementation-specific
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
42 ;; `xscheme' package.
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43
807
4f28bd14272c *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 658
diff changeset
44 ;;; Code:
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
46 (require 'lisp-mode)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
47
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48 (defvar scheme-mode-syntax-table nil "")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 (if (not scheme-mode-syntax-table)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 (let ((i 0))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 (setq scheme-mode-syntax-table (make-syntax-table))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 (set-syntax-table scheme-mode-syntax-table)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 ;; Default is atom-constituent.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 (while (< i 256)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 (modify-syntax-entry i "_ ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 (setq i (1+ i)))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 ;; Word components.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 (setq i ?0)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 (while (<= i ?9)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 (modify-syntax-entry i "w ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63 (setq i (1+ i)))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 (setq i ?A)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65 (while (<= i ?Z)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 (modify-syntax-entry i "w ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 (setq i (1+ i)))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 (setq i ?a)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 (while (<= i ?z)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 (modify-syntax-entry i "w ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 (setq i (1+ i)))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 ;; Whitespace
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 (modify-syntax-entry ?\t " ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 (modify-syntax-entry ?\n "> ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 (modify-syntax-entry ?\f " ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 (modify-syntax-entry ?\r " ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 (modify-syntax-entry ? " ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 ;; These characters are delimiters but otherwise undefined.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 ;; Brackets and braces balance for editing convenience.
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
82 (modify-syntax-entry ?\[ "(] ")
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
83 (modify-syntax-entry ?\] ")[ ")
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 (modify-syntax-entry ?{ "(} ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 (modify-syntax-entry ?} "){ ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 (modify-syntax-entry ?\| " 23")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 ;; Other atom delimiters
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 (modify-syntax-entry ?\( "() ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 (modify-syntax-entry ?\) ")( ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 (modify-syntax-entry ?\; "< ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 (modify-syntax-entry ?\" "\" ")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 (modify-syntax-entry ?' " p")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 (modify-syntax-entry ?` " p")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 ;; Special characters
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 (modify-syntax-entry ?, "_ p")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 (modify-syntax-entry ?@ "_ p")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 (modify-syntax-entry ?# "_ p14")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 (modify-syntax-entry ?\\ "\\ ")))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 (defvar scheme-mode-abbrev-table nil "")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 (define-abbrev-table 'scheme-mode-abbrev-table ())
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
105 (defvar scheme-imenu-generic-expression
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
106 '((nil
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
107 "^(define\\(\\|-\\(generic\\(\\|-procedure\\)\\|method\\)\\)*\\s-+(?\\(\\(\\sw\\|\\s_\\)+\\)" 4)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
108 (" Types"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
109 "^(define-class\\s-+(?\\(\\(\\sw\\|\\s_\\)+\\)" 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
110 (" Macros"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
111 "^(\\(defmacro\\|define-macro\\|define-syntax\\)\\s-+(?\\(\\(\\sw\\|\\s_\\)+\\)" 2))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
112 "Imenu generic expression for Scheme mode. See `imenu-generic-expression'.")
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
113
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 (defun scheme-mode-variables ()
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 (set-syntax-table scheme-mode-syntax-table)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 (setq local-abbrev-table scheme-mode-abbrev-table)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 (make-local-variable 'paragraph-start)
10892
0e6ae3605c92 (scheme-mode-variables): Remove ^ from paragraph-start & paragraph-separate.
Boris Goldowsky <boris@gnu.org>
parents: 9912
diff changeset
118 (setq paragraph-start (concat "$\\|" page-delimiter))
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 (make-local-variable 'paragraph-separate)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120 (setq paragraph-separate paragraph-start)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 (make-local-variable 'paragraph-ignore-fill-prefix)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122 (setq paragraph-ignore-fill-prefix t)
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
123 (make-local-variable 'fill-paragraph-function)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
124 (setq fill-paragraph-function 'lisp-fill-paragraph)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
125 ;; Adaptive fill mode gets in the way of auto-fill,
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
126 ;; and should make no difference for explicit fill
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
127 ;; because lisp-fill-paragraph should do the job.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
128 (make-local-variable 'adaptive-fill-mode)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
129 (setq adaptive-fill-mode nil)
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 (make-local-variable 'indent-line-function)
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
131 (setq indent-line-function 'lisp-indent-line)
9912
08d268f33d66 (scheme-mode-variables): Set parse-sexp-ignore-comments to t.
Karl Heuer <kwzh@gnu.org>
parents: 9179
diff changeset
132 (make-local-variable 'parse-sexp-ignore-comments)
08d268f33d66 (scheme-mode-variables): Set parse-sexp-ignore-comments to t.
Karl Heuer <kwzh@gnu.org>
parents: 9179
diff changeset
133 (setq parse-sexp-ignore-comments t)
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
134 (make-local-variable 'outline-regexp)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
135 (setq outline-regexp ";;; \\|(....")
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 (make-local-variable 'comment-start)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 (setq comment-start ";")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 (make-local-variable 'comment-start-skip)
15598
c5f04e0724ec (scheme-mode-variables): Set comment-start-skip to ignore backslash-quoted
Miles Bader <miles@gnu.org>
parents: 14169
diff changeset
139 ;; Look within the line for a ; following an even number of backslashes
c5f04e0724ec (scheme-mode-variables): Set comment-start-skip to ignore backslash-quoted
Miles Bader <miles@gnu.org>
parents: 14169
diff changeset
140 ;; after either a non-backslash or the line beginning.
c5f04e0724ec (scheme-mode-variables): Set comment-start-skip to ignore backslash-quoted
Miles Bader <miles@gnu.org>
parents: 14169
diff changeset
141 (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+[ \t]*")
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 (make-local-variable 'comment-column)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 (setq comment-column 40)
2307
10e417efb12a Added or corrected Commentary sections
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 851
diff changeset
144 (make-local-variable 'comment-indent-function)
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
145 (setq comment-indent-function 'lisp-comment-indent)
9179
c8ef8dc59108 (scheme-mode-variables): Make parse-sexp-ignore-comments t.
Richard M. Stallman <rms@gnu.org>
parents: 6310
diff changeset
146 (make-local-variable 'parse-sexp-ignore-comments)
c8ef8dc59108 (scheme-mode-variables): Make parse-sexp-ignore-comments t.
Richard M. Stallman <rms@gnu.org>
parents: 6310
diff changeset
147 (setq parse-sexp-ignore-comments t)
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
148 (make-local-variable 'lisp-indent-function)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
149 (set lisp-indent-function 'scheme-indent-function)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
150 (setq mode-line-process '("" scheme-mode-line-process))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
151 (make-local-variable 'imenu-generic-expression)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
152 (setq imenu-generic-expression scheme-imenu-generic-expression))
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 (defvar scheme-mode-line-process "")
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
156 (defvar scheme-mode-map nil
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
157 "Keymap for Scheme mode.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
158 All commands in `shared-lisp-mode-map' are inherited by this map.")
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
159
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
160 (if scheme-mode-map
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
161 ()
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
162 (let ((map (make-sparse-keymap "Scheme")))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
163 (setq scheme-mode-map
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
164 (nconc (make-sparse-keymap) shared-lisp-mode-map))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
165 (define-key scheme-mode-map "\e\t" 'lisp-complete-symbol)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
166 (define-key scheme-mode-map [menu-bar] (make-sparse-keymap))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
167 (define-key scheme-mode-map [menu-bar scheme]
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
168 (cons "Scheme" map))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
169 (define-key map [run-scheme] '("Run Inferior Scheme" . run-scheme))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
170 (define-key map [comment-region] '("Comment Out Region" . comment-region))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
171 (define-key map [indent-region] '("Indent Region" . indent-region))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
172 (define-key map [indent-line] '("Indent Line" . lisp-indent-line))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
173 (put 'comment-region 'menu-enable 'mark-active)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
174 (put 'indent-region 'menu-enable 'mark-active)))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
175
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
176 ;; Used by cmuscheme
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177 (defun scheme-mode-commands (map)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178 (define-key map "\t" 'scheme-indent-line)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179 (define-key map "\177" 'backward-delete-char-untabify)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 (define-key map "\e\C-q" 'scheme-indent-sexp))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181
266
e0142855e083 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 65
diff changeset
182 ;;;###autoload
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 (defun scheme-mode ()
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
184 "Major mode for editing Scheme code.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
185 Editing commands are similar to those of lisp-mode.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
186
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
187 In addition, if an inferior Scheme process is running, some additional
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
188 commands will be defined, for evaluating expressions and controlling
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189 the interpreter, and the state of the process will be displayed in the
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
190 modeline of all Scheme buffers. The names of commands that interact
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
191 with the Scheme process start with \"xscheme-\". For more information
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
192 see the documentation for xscheme-interaction-mode.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
193
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194 Commands:
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
195 Delete converts tabs to spaces as it moves back.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
196 Blank lines separate paragraphs. Semicolons start comments.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
197 \\{scheme-mode-map}
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198 Entry to this mode calls the value of scheme-mode-hook
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
199 if that value is non-nil."
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 (interactive)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
201 (kill-all-local-variables)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
202 (scheme-mode-initialize)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
203 (scheme-mode-variables)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
204 (run-hooks 'scheme-mode-hook))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206 (defun scheme-mode-initialize ()
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
207 (use-local-map scheme-mode-map)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
208 (setq major-mode 'scheme-mode)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
209 (setq mode-name "Scheme"))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
210
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
211 (defvar scheme-mit-dialect t
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
212 "If non-nil, scheme mode is specialized for MIT Scheme.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
213 Set this to nil if you normally use another dialect.")
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
214
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
215 (defvar dsssl-sgml-declaration
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
216 "<!DOCTYPE style-sheet PUBLIC \"-//James Clark//DTD DSSSL Style Sheet//EN\">
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
217 "
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
218 "*An SGML declaration (typically using James Clark's style-sheet
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
219 doctype, as required for Jade) which will be inserted into an empty
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
220 buffer in dsssl-mode.")
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
221
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
222 (defvar dsssl-imenu-generic-expression
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
223 ;; Perhaps this should also look for the style-sheet DTD tags. I'm
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
224 ;; not sure it's the best way to organize it; perhaps one type
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
225 ;; should be at the first level, though you don't see this anyhow if
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
226 ;; it gets split up.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
227 '((" Defines"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
228 "^(define\\s-+(?\\(\\(\\sw\\|\\s_\\)+\\)" 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
229 (" Modes"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
230 "^\\s-*(mode\\s-+\\(\\(\\sw\\|\\s-\\|\\s_\\)+\\)" 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
231 (" Elements"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
232 ;; (element foo ...) or (element (foo bar ...) ...)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
233 "^\\s-*(element\\s-+(?\\(\\(\\sw\\|\\s-\\|\\s_\\)+\\))?" 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
234 (" Declarations"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
235 "^(declare\\(-\\sw+\\)+\\>\\s-+\\(\\(\\sw\\|\\s_\\)+\\)" 2))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
236 "Imenu generic expression for DSSSL mode. See `imenu-generic-expression'.")
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
237
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
238 ;;;###autoload
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
239 (defun dsssl-mode ()
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
240 "Major mode for editing DSSSL code.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
241 Editing commands are similar to those of lisp-mode.
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
242
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
243 Commands:
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
244 Delete converts tabs to spaces as it moves back.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
245 Blank lines separate paragraphs. Semicolons start comments.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
246 \\{scheme-mode-map}
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
247 Entry to this mode calls the value of dsssl-mode-hook
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
248 if that value is non-nil."
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
249 (interactive)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
250 (kill-all-local-variables)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
251 (use-local-map scheme-mode-map)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
252 (scheme-mode-initialize)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
253 (make-local-variable 'font-lock-defaults)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
254 (setq font-lock-defaults '(dsssl-font-lock-keywords
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
255 nil t (("+-*/.<>=!?$%_&~^:" . "w"))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
256 beginning-of-defun
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
257 (font-lock-comment-start-regexp . ";")
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
258 (font-lock-mark-block-function . mark-defun)))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
259 (make-local-variable 'page-delimiter)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
260 (setq page-delimiter "^;;;" ; ^L not valid SGML char
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
261 major-mode 'dsssl-mode
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
262 mode-name "DSSSL")
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
263 ;; Insert a suitable SGML declaration into an empty buffer.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
264 (and (zerop (buffer-size))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
265 dsssl-sgml-declaration
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
266 (not buffer-read-only)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
267 (insert dsssl-sgml-declaration))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
268 (run-hooks 'scheme-mode-hook)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
269 (run-hooks 'dsssl-mode-hook)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
270 (scheme-mode-variables)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
271 (setq imenu-generic-expression dsssl-imenu-generic-expression))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
272
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
273 ;; Extra syntax for DSSSL. This isn't separated from Scheme, but
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
274 ;; shouldn't cause much trouble in scheme-mode.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
275 (put 'element 'scheme-indent-function 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
276 (put 'mode 'scheme-indent-function 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
277 (put 'with-mode 'scheme-indent-function 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
278
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
279 (defvar dsssl-font-lock-keywords
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
280 '(("(\\(define\\(-\\w+\\)?\\)\\>[ ]*\\\((?\\)\\(\\sw+\\)\\>"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
281 (1 font-lock-keyword-face)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
282 (4 font-lock-function-name-face))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
283 ("(\\(case\\|cond\\|else\\|if\\|lambda\\|let\\*?\\|letrec\\|and\\|or\\|map\\|with-mode\\)\\>" . 1)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
284 ("(\\(element\\|mode\\|declare-\\w+\\)\\>[ ]*\\(\\sw+\\)"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
285 (1 font-lock-keyword-face)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
286 (2 font-lock-type-face))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
287 ("(\\(element\\)\\>[ ]*(\\(\\S)+\\))"
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
288 (1 font-lock-keyword-face)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
289 (2 font-lock-type-face))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
290 ("\\<\\sw+:\\>" . font-lock-reference-face)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
291 ("<\\([!?][-a-z0-9]+\\)" 1 font-lock-keyword-face)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
292 ("<\\(/?[-a-z0-9]+\\)" 1 font-lock-function-name-face))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
293 "Default expressions to highlight in DSSSL mode.")
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
294
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
295
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
296 (defvar calculate-lisp-indent-last-sexp)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
297
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
298 ;; Copied from lisp-indent-function, but with gets of
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
299 ;; scheme-indent-{function,hook}.
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
300 (defun scheme-indent-function (indent-point state)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
301 (let ((normal-indent (current-column)))
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
302 (goto-char (1+ (elt state 1)))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
303 (parse-partial-sexp (point) calculate-lisp-indent-last-sexp 0 t)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
304 (if (and (elt state 2)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
305 (not (looking-at "\\sw\\|\\s_")))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
306 ;; car of form doesn't seem to be a a symbol
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
307 (progn
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
308 (if (not (> (save-excursion (forward-line 1) (point))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
309 calculate-lisp-indent-last-sexp))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
310 (progn (goto-char calculate-lisp-indent-last-sexp)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
311 (beginning-of-line)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
312 (parse-partial-sexp (point)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
313 calculate-lisp-indent-last-sexp 0 t)))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
314 ;; Indent under the list or under the first sexp on the same
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
315 ;; line as calculate-lisp-indent-last-sexp. Note that first
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
316 ;; thing on that line has to be complete sexp since we are
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
317 ;; inside the innermost containing sexp.
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
318 (backward-prefix-chars)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
319 (current-column))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
320 (let ((function (buffer-substring (point)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
321 (progn (forward-sexp 1) (point))))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
322 method)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
323 (setq method (or (get (intern-soft function) 'scheme-indent-function)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
324 (get (intern-soft function) 'scheme-indent-hook)))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
325 (cond ((or (eq method 'defun)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
326 (and (null method)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
327 (> (length function) 3)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
328 (string-match "\\`def" function)))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
329 (lisp-indent-defform state indent-point))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
330 ((integerp method)
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
331 (lisp-indent-specform method state
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
332 indent-point normal-indent))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
333 (method
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
334 (funcall method state indent-point)))))))
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
335
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
336
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
337 ;;; Let is different in Scheme
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
338
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
339 (defun would-be-symbol (string)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
340 (not (string-equal (substring string 0 1) "(")))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
341
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
342 (defun next-sexp-as-string ()
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
343 ;; Assumes that protected by a save-excursion
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
344 (forward-sexp 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
345 (let ((the-end (point)))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
346 (backward-sexp 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
347 (buffer-substring (point) the-end)))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
348
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
349 ;; This is correct but too slow.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
350 ;; The one below works almost always.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
351 ;;(defun scheme-let-indent (state indent-point)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
352 ;; (if (would-be-symbol (next-sexp-as-string))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
353 ;; (scheme-indent-specform 2 state indent-point)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
354 ;; (scheme-indent-specform 1 state indent-point)))
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
355
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
356 (defun scheme-let-indent (state indent-point)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
357 (skip-chars-forward " \t")
6310
c40e283c262b Put hyphen in a safer place in the character class.
Karl Heuer <kwzh@gnu.org>
parents: 3591
diff changeset
358 (if (looking-at "[-a-zA-Z0-9+*/?!@$%^&_:~]")
17359
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
359 (lisp-indent-specform 2 state indent-point (current-column))
13ebd090612a Add DSSSL mode and share code with newly required
Richard M. Stallman <rms@gnu.org>
parents: 15598
diff changeset
360 (lisp-indent-specform 1 state indent-point (current-column))))
65
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
361
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
362 ;; (put 'begin 'scheme-indent-function 0), say, causes begin to be indented
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
363 ;; like defun if the first form is placed on the next line, otherwise
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
364 ;; it is indented like any other form (i.e. forms line up under first).
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
365
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
366 (put 'begin 'scheme-indent-function 0)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
367 (put 'case 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
368 (put 'delay 'scheme-indent-function 0)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
369 (put 'do 'scheme-indent-function 2)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
370 (put 'lambda 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
371 (put 'let 'scheme-indent-function 'scheme-let-indent)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
372 (put 'let* 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
373 (put 'letrec 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
374 (put 'sequence 'scheme-indent-function 0)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
375
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
376 (put 'call-with-input-file 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
377 (put 'with-input-from-file 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
378 (put 'with-input-from-port 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
379 (put 'call-with-output-file 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
380 (put 'with-output-to-file 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
381 (put 'with-output-to-port 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
382
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
383 ;;;; MIT Scheme specific indentation.
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
384
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
385 (if scheme-mit-dialect
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
386 (progn
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
387 (put 'fluid-let 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
388 (put 'in-package 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
389 (put 'let-syntax 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
390 (put 'local-declare 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
391 (put 'macro 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
392 (put 'make-environment 'scheme-indent-function 0)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
393 (put 'named-lambda 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
394 (put 'using-syntax 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
395
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
396 (put 'with-input-from-string 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
397 (put 'with-output-to-string 'scheme-indent-function 0)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
398 (put 'with-values 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
399
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
400 (put 'syntax-table-define 'scheme-indent-function 2)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
401 (put 'list-transform-positive 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
402 (put 'list-transform-negative 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
403 (put 'list-search-positive 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
404 (put 'list-search-negative 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
405
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
406 (put 'access-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
407 (put 'assignment-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
408 (put 'combination-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
409 (put 'comment-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
410 (put 'conditional-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
411 (put 'disjunction-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
412 (put 'declaration-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
413 (put 'definition-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
414 (put 'delay-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
415 (put 'in-package-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
416 (put 'lambda-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
417 (put 'lambda-components* 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
418 (put 'lambda-components** 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
419 (put 'open-block-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
420 (put 'pathname-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
421 (put 'procedure-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
422 (put 'sequence-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
423 (put 'unassigned\?-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
424 (put 'unbound\?-components 'scheme-indent-function 1)
cbd4df147e97 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
425 (put 'variable-components 'scheme-indent-function 1)))
584
4cd7543be581 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 266
diff changeset
426
4cd7543be581 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 266
diff changeset
427 (provide 'scheme)
658
7cbd4fcd8b0f *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 584
diff changeset
428
7cbd4fcd8b0f *** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 584
diff changeset
429 ;;; scheme.el ends here