annotate lisp/emulators/mlconvert.el @ 143:50e7fedfe353

Added tag r20-2b5 for changeset 1856695b1fa9
author cvs
date Mon, 13 Aug 2007 09:33:20 +0200
parents b9518feda344
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; mlconvert.el --- convert buffer of Mocklisp code to real lisp.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Copyright (C) 1985 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
5 ;; Maintainer: FSF
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
6 ;; Keywords: emulations
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
23 ;; 02111-1307, USA.
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
24
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
25 ;;; Synched up with: FSF 19.34
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
26
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
27 ;;; Commentary:
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
28
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
29 ;; This package converts Mocklisp code written under a Gosling or UniPress
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
30 ;; Emacs for use with GNU Emacs. The translated code will require runtime
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
31 ;; support from the mlsupport.el equivalent.
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
32
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
33 ;;; Code:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (defun convert-mocklisp-buffer ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 "Convert buffer of Mocklisp code to real Lisp that GNU Emacs can run."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (emacs-lisp-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (set-syntax-table (copy-sequence (syntax-table)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (modify-syntax-entry ?\| "w")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (message "Converting mocklisp (ugh!)...")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (fix-mlisp-syntax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ;; Emulation of mocklisp is accurate only within a mocklisp-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;; so turn any non-function into a defun and then call it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 (condition-case ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (while t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (let ((opt (point))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (form (read (current-buffer))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (and (listp form)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (not (eq (car form) 'defun))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (progn (insert "))\n\n(ml-foo)\n\n")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 (goto-char opt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (skip-chars-forward "\n")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 (insert "(defun (ml-foo \n "))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (end-of-file nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (insert ";;; GNU Emacs code converted from Mocklisp\n")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (insert "(require 'mlsupport)\n\n")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (fix-mlisp-symbols)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (message "Converting mocklisp...done"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (defun fix-mlisp-syntax ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (while (re-search-forward "['\"]" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (if (= (preceding-char) ?\")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (progn (forward-char -1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (forward-sexp 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (delete-char -1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (insert "?")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (if (or (= (following-char) ?\\) (= (following-char) ?^))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (forward-char 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (if (looking-at "[^a-zA-Z]")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (insert ?\\)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (forward-char 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (delete-char 1))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (defun fix-mlisp-symbols ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 (while (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (skip-chars-forward " \t\n()")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 (not (eobp)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (cond ((or (= (following-char) ?\?)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (= (following-char) ?\"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (forward-sexp 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ((= (following-char) ?\;)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 (forward-line 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (let ((start (point)) prop)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 (forward-sexp 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (setq prop (get (intern-soft (buffer-substring start (point)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 'mocklisp))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (cond ((null prop))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ((stringp prop)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (delete-region start (point))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (insert prop))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (goto-char start)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (funcall prop)))))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (defun ml-expansion (ml-name lisp-string)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (put ml-name 'mocklisp lisp-string))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (ml-expansion 'defun "ml-defun")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (ml-expansion 'if "ml-if")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (ml-expansion 'setq '(lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 (if (looking-at "setq[ \t\n]+buffer-modified-p")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (replace-match "set-buffer-modified-p"))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
116 ;;(ml-expansion 'while '(lambda ()
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
117 ;; (let ((end (progn (forward-sexp 2) (point-marker)))
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
118 ;; (start (progn (forward-sexp -1) (point))))
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
119 ;; (let ((cond (buffer-substring start end)))
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
120 ;; (cond ((equal cond "1")
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
121 ;; (delete-region (point) end)
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
122 ;; (insert "t"))
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
123 ;; (t
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
124 ;; (insert "(not (zerop ")
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
125 ;; (goto-char end)
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
126 ;; (insert "))")))
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
127 ;; (set-marker end nil)
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
128 ;; (goto-char start)))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (ml-expansion 'arg "ml-arg")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (ml-expansion 'nargs "ml-nargs")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (ml-expansion 'interactive "ml-interactive")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (ml-expansion 'message "ml-message")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (ml-expansion 'print "ml-print")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (ml-expansion 'set "ml-set")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (ml-expansion 'set-default "ml-set-default")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (ml-expansion 'provide-prefix-argument "ml-provide-prefix-argument")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 (ml-expansion 'prefix-argument-loop "ml-prefix-argument-loop")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 (ml-expansion 'prefix-argument "ml-prefix-arg")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (ml-expansion 'use-local-map "ml-use-local-map")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (ml-expansion 'use-global-map "ml-use-global-map")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (ml-expansion 'modify-syntax-entry "ml-modify-syntax-entry")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (ml-expansion 'error-message "error")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (ml-expansion 'dot "point-marker")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (ml-expansion 'mark "mark-marker")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (ml-expansion 'beginning-of-file "beginning-of-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (ml-expansion 'end-of-file "end-of-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (ml-expansion 'exchange-dot-and-mark "exchange-point-and-mark")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (ml-expansion 'set-mark "set-mark-command")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (ml-expansion 'argument-prefix "universal-arg")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 (ml-expansion 'previous-page "ml-previous-page")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 (ml-expansion 'next-page "ml-next-page")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 (ml-expansion 'next-window "ml-next-window")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 (ml-expansion 'previous-window "ml-previous-window")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (ml-expansion 'newline "ml-newline")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (ml-expansion 'next-line "ml-next-line")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (ml-expansion 'previous-line "ml-previous-line")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (ml-expansion 'self-insert "self-insert-command")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (ml-expansion 'meta-digit "digit-argument")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (ml-expansion 'meta-minus "negative-argument")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (ml-expansion 'newline-and-indent "ml-newline-and-indent")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (ml-expansion 'yank-from-killbuffer "yank")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (ml-expansion 'yank-buffer "insert-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 (ml-expansion 'copy-region "copy-region-as-kill")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 (ml-expansion 'delete-white-space "delete-horizontal-space")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 (ml-expansion 'widen-region "widen")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (ml-expansion 'forward-word '(lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (if (looking-at "forward-word[ \t\n]*)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (replace-match "forward-word 1)"))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (ml-expansion 'backward-word '(lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (if (looking-at "backward-word[ \t\n]*)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (replace-match "backward-word 1)"))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (ml-expansion 'forward-paren "forward-list")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (ml-expansion 'backward-paren "backward-list")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (ml-expansion 'search-reverse "ml-search-backward")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (ml-expansion 're-search-reverse "ml-re-search-backward")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (ml-expansion 'search-forward "ml-search-forward")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (ml-expansion 're-search-forward "ml-re-search-forward")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (ml-expansion 'quote "regexp-quote")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (ml-expansion 're-query-replace "query-replace-regexp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 (ml-expansion 're-replace-string "replace-regexp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ; forward-paren-bl, backward-paren-bl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 (ml-expansion 'get-tty-character "read-char")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 (ml-expansion 'get-tty-input "read-input")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 (ml-expansion 'get-tty-string "read-string")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 (ml-expansion 'get-tty-buffer "read-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 (ml-expansion 'get-tty-command "read-command")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 (ml-expansion 'get-tty-variable "read-variable")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (ml-expansion 'get-tty-no-blanks-input "read-no-blanks-input")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 (ml-expansion 'get-tty-key "read-key")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
200 (ml-expansion 'concat "ml-concat")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 (ml-expansion 'c= "char-equal")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (ml-expansion 'goto-character "goto-char")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (ml-expansion 'substr "ml-substr")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (ml-expansion 'variable-apropos "apropos")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 (ml-expansion 'execute-mlisp-buffer "eval-current-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 (ml-expansion 'execute-mlisp-file "load")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 (ml-expansion 'visit-file "find-file")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 (ml-expansion 'read-file "find-file")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 (ml-expansion 'write-modified-files "save-some-buffers")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 (ml-expansion 'backup-before-writing "make-backup-files")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 (ml-expansion 'write-file-exit "save-buffers-kill-emacs")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 (ml-expansion 'write-named-file "write-file")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (ml-expansion 'change-file-name "set-visited-file-name")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 (ml-expansion 'change-buffer-name "rename-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 (ml-expansion 'buffer-exists "get-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 (ml-expansion 'delete-buffer "kill-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 (ml-expansion 'unlink-file "delete-file")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 (ml-expansion 'unlink-checkpoint-files "delete-auto-save-files")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 (ml-expansion 'file-exists "file-exists-p")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (ml-expansion 'write-current-file "save-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 (ml-expansion 'change-directory "cd")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 (ml-expansion 'temp-use-buffer "set-buffer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 (ml-expansion 'fast-filter-region "filter-region")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 (ml-expansion 'pending-input "input-pending-p")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 (ml-expansion 'execute-keyboard-macro "call-last-kbd-macro")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 (ml-expansion 'start-remembering "start-kbd-macro")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 (ml-expansion 'end-remembering "end-kbd-macro")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 (ml-expansion 'define-keyboard-macro "name-last-kbd-macro")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 (ml-expansion 'define-string-macro "ml-define-string-macro")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 (ml-expansion 'current-column "ml-current-column")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 (ml-expansion 'current-indent "ml-current-indent")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 (ml-expansion 'insert-character "insert")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 (ml-expansion 'users-login-name "user-login-name")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 (ml-expansion 'users-full-name "user-full-name")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 (ml-expansion 'current-time "current-time-string")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 (ml-expansion 'current-numeric-time "current-numeric-time-you-lose")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 (ml-expansion 'current-buffer-name "buffer-name")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 (ml-expansion 'current-file-name "buffer-file-name")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 (ml-expansion 'local-binding-of "local-key-binding")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 (ml-expansion 'global-binding-of "global-key-binding")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ;defproc (ProcedureType, "procedure-type");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 (ml-expansion 'remove-key-binding "global-unset-key")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 (ml-expansion 'remove-binding "global-unset-key")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 (ml-expansion 'remove-local-binding "local-unset-key")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 (ml-expansion 'remove-all-local-bindings "use-local-map nil")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 (ml-expansion 'autoload "ml-autoload")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 (ml-expansion 'checkpoint-frequency "auto-save-interval")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 (ml-expansion 'mode-string "mode-name")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 (ml-expansion 'right-margin "fill-column")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 (ml-expansion 'tab-size "tab-width")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 (ml-expansion 'default-right-margin "default-fill-column")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 (ml-expansion 'default-tab-size "default-tab-width")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 (ml-expansion 'buffer-is-modified "(buffer-modified-p)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 (ml-expansion 'file-modified-time "you-lose-on-file-modified-time")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 (ml-expansion 'needs-checkpointing "you-lose-on-needs-checkpointing")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 (ml-expansion 'lines-on-screen "set-screen-height")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (ml-expansion 'columns-on-screen "set-screen-width")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 (ml-expansion 'dumped-emacs "t")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 (ml-expansion 'buffer-size "ml-buffer-size")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 (ml-expansion 'dot-is-visible "pos-visible-in-window-p")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 (ml-expansion 'track-eol-on-^N-^P "track-eol")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 (ml-expansion 'ctlchar-with-^ "ctl-arrow")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 (ml-expansion 'help-on-command-completion-error "completion-auto-help")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 (ml-expansion 'dump-stack-trace "backtrace")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 (ml-expansion 'pause-emacs "suspend-emacs")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 (ml-expansion 'compile-it "compile")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 (ml-expansion '!= "/=")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 (ml-expansion '& "logand")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 (ml-expansion '| "logior")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 (ml-expansion '^ "logxor")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 (ml-expansion '! "ml-not")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (ml-expansion '<< "lsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 ;Variable pause-writes-files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
290 ;;; mlconvert.el ends here