]> code.delx.au - gnu-emacs-elpa/blob - ChangeLog
* testcases.sml: Add a nasty case that is still wrong.
[gnu-emacs-elpa] / ChangeLog
1 2004-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * testcases.sml: Add a nasty case that is still wrong.
4
5 * sml-proc.el (sml-error-regexp-alist): Tune the regexp for sml/nj.
6
7 * sml-mode.el (sml-mode): Batter handle paragraphs in comments.
8 (sml-mode-variables): Clean up paragraph settings.
9 (sml-electric-pipe): Fix a boundary bug.
10 (sml-indent-starter, sml-get-sym-indent, sml-find-matching-starter):
11 Fix indentation algorithm. Can't remember what it was about.
12 This code is nasty, I just can't understand what's doing what.
13 (completion-ignored-extensions): Add the new .cm directory.
14
15 2003-12-09 Stefan Monnier <monnier@iro.umontreal.ca>
16
17 * sml-defs.el (sml-mode-menu): Fix typo. Use std names.
18 (sml-begin-syms-re): Reduce redundancy.
19
20 2001-09-18 Stefan Monnier <monnier@cs.yale.edu>
21
22 * sml-mode.el (sml-tyvarseq-re): Fix typo.
23
24 2001-07-20 Stefan Monnier <monnier@cs.yale.edu>
25
26 * sml-mode.el (sml-rightalign-and): New defcustom.
27 (sml-tyvarseq-re): New var.
28 (sml-font-lock-keywords): Use it.
29 (sml-imenu-create-index): Don't get confused by tyvarseq's.
30 (sml-mode-variables): Don't set `comment-column'.
31 (sml-funname-of-and): New function.
32 (sml-electric-pipe): Use it.
33 (sml-find-comment-indent): Try to ignore comment-markers in strings.
34 (sml-calculate-indentation): Handle closing parens specially.
35 (sml-indent-pipe): Recognize the case where `and' defines a datatype.
36 (sml-dangling-sym): Make it work if the symbol is an open-paren.
37 (sml-indent-default): Change the behavior when preceded by `end',
38 although I'm not quite sure why.
39 Understand dangling open-parens.
40 Properly skip *all* subexpressions of lower precedence.
41 Allow use of sml-symbol-indent to outdent lines starting with , or ;.
42 (sml-insert-form): Use preceding-char to avoid bug at bobp.
43
44 2001-07-19 Stefan Monnier <monnier@cs.yale.edu>
45
46 * sml-proc.el (sml-proc-buffer): Save excursion when calling run-sml.
47
48 * sml-move.el (sml-syntax-prec): Split ; and , from `in' and `with'.
49
50 * sml-mode.texi: Put the entry in `Emacs' rather than `Editors'.
51
52 * sml-mode.spec (BuildArch): Simplify call to `install-info'.
53
54 * sml-defs.el (sml-mode-menu): Add an explicit t for always-active.
55 (sml-symbol-indent): Add entries for , and ; and turn into defcustom.
56
57 * sml-compat.el: Add more stuff. It might help for Emacs-19.34.
58
59 * makefile.pkg (test): Use elisp files in current dir.
60
61 2000-12-24 Stefan Monnier <monnier@cs.yale.edu>
62
63 * Makefile (install): Also install .el files.
64 (dist): Don't rely on $CVSROOT.
65
66 * sml-mode.el: Require `skeleton'.
67 (sml-mode): Add the menu for XEmacs. Make sure @ is a valid skeleton.
68 (sml-comment-indent): Remove.
69 (sml-mode-variables): Don't set comment-indent-function.
70 (sml-def-skeleton): Nop if skeletons aren't available.
71 (skeletons): Use `> _' and `@'.
72 (sml-forms-menu): Don't bother with easy-menu-filter-return crap.
73 (sml-cm-mode-syntax-table, sml-cm-font-lock-keywords): New vars.
74 (sml-cm-mode): Use define-derived-mode rather than define-generic-mode.
75 (sml-lex-font-lock-keywords, sml-lex-font-lock-defaults): New vars.
76 (sml-yacc-font-lock-keywords): Use sml-lex-font-lock-keywords.
77 Refine pattern to recognize the %prec keyword.
78 (sml-yacc-font-lock-defaults): Fix typo.
79
80 * sml-proc.el (inferior-sml-mode): Disable next-error for XEmacs.
81
82 * sml-util.el (defsyntax): Don't forget to eval `doc'.
83
84 * sml-mode.spec: Simplify.
85
86 * sml-defs.el (sml-mode-menu): Remove bogus entry for sml-mode-version.
87
88 2000-10-06 Stefan Monnier <monnier@cs.yale.edu>
89
90 * sml-mode.el: Make the toplevel closer to usual practice.
91 (sml-imenu-regexp, sml-imenu-create-index): New var and fun.
92 (sml-mode): Use them.
93 (sml-beginning-of-defun): Add `and' as function-leader.
94 (sml-lex-mode): New trivial mode.
95 (sml-yacc-bnf-face, sml-yacc-indent-action, sml-yacc-indent-pipe)
96 (sml-yacc-indent-term, sml-yacc-font-lock-keywords)
97 (sml-yacc-font-lock-defaults): New vars.
98 (sml-yacc-indent-line, sml-yacc-indentation, sml-yacc-mode): New funs.
99
100 * sml-mode.texi: Added yours truly to the list of authors.
101
102 * sml-mode.spec: New file.
103
104 * sml-defs.el (sml-outline-regexp): Slightly improved regexp.
105
106 2000-08-24 Stefan Monnier <monnier@cs.yale.edu>
107
108 * sml-proc.el (inferior-sml-mode-map): Don't inherit from sml-bindings.
109 Add the binding for C-c C-l explicitly instead.
110 (sml-run): Look in cwd (but only if the command has slashes).
111
112 * sml-mode.el (sml-mode-abbrev-table): Remove (created by
113 define-derived-mode).
114 (sml-mode): Setup add-log's current-defun-function.
115 (sml-indent-line): Never indent to a negative level.
116 (sml-skip-siblings, sml-beginning-of-defun, sml-max-name-components)
117 (sml-current-fun-name): New funs and vars for add-log support.
118 (sml-comment-indent): Simplify.
119 (sml-def-skeleton): Also create the skeleton as an abbrev.
120 (skeletons): New for "struct", "sig", "val", "fn" and "fun".
121 (sml-electric-space): Rewrite to use abbrev's machinery.
122
123 * sml-defs.el (sml-mode-map): Merge with sml-bindings.
124 (sml-bindings): Remove.
125
126 2000-02-22 Stefan Monnier <monnier@cs.yale.edu>
127
128 * sml-mode.el (sml-find-matching-starter): Use syms instead of a RE.
129 (sml-indent-default): Use symbol membership rather than a regexp.
130 Also, use `sym-indent' instead of (current-column).
131 This fixes a problem with a hanging `structure Foo = (struct|let)'
132 (due to `structure' having a sml-indent-rule, as opposed to `fun').
133 Hopefully it won't introduce other problems.
134 (sml-font-lock-keywords): Match vars `val x : int' also.
135 (sml-electric-pipe): Update to the new `sml-find-matching-starter' and
136 return a sensible default instead of raising an error in case of
137 unexpected situations.
138 (sml-indent-line): Ignore errors and keep the cursor where it is.
139 (sml-calculate-indentation, sml-indent-pipe): Use syms instead of REs.
140
141 * sml-defs.el (sml-starters-re, sml-pipehead-re): Remove.
142
143 * testcases.sml: New file.
144
145 * makefile.pkg (test): New target to run the test suite.
146
147 2000-02-18 Stefan Monnier <monnier@cs.yale.edu>
148
149 * *.el: Pass through checkdoc and use `eval-when-compile' whenever
150 possible for (require 'cl).
151
152 2000-02-18 Stefan Monnier <monnier@cs.yale.edu>
153
154 * sml-util.el (make-temp-dir, make-temp-file, temp-file-dir)
155 (delete-temp-dirs): Replaced by the make-temp-file from Emacs-21.
156 (custom-create-map): Add :group arg and allow key to be a list.
157 (define-major-mode): Removed (use define-derived-mode instead).
158 (sml-builtin-nested-comments-flag): New var.
159 (concatq): Remove.
160
161 * sml-proc.el (sml-host-name): New var.
162 (sml-make-file-name): Replaced by `sml-compile-commands'.
163 (sml-config-file): New var.
164 (sml-compile-commands-alist): New var.
165 (inferior-sml-load-hook): Removed.
166 (sml-buffer): Query if the current buffer is not a *sml*.
167 (inferior-sml-mode): Use minor-mode-overriding-map-alist to disable
168 compilation-minor-mode's keybindings.
169 (run-sml): Turn into an alias for sml-run.
170 (sml-run): Query the user for the command. If prefix is set (or if
171 default value is not null) query for args and host.
172 Use `split-string' rather than our own function.
173 Run cmd on another host if requested and pass it an init file.
174 Pop to the buffer at the end.
175 (sml-args-to-list): Remove.
176 (sml-compile): Look for special files (sml-compile-command-alist) in
177 the current dir (and its parents) to choose a default command.
178 Remember the command for next time in the same buffer.
179 Make the `cd' explicit in the command so the user can change it.
180 (sml-make-error): Fix for when `endline' is absent.
181
182 * sml-mode.el: Pass it through checkdoc.
183 (sml-mode-version): Remove.
184 (sml-load-hook): Remove.
185 (sml-mode-info): Use `info' rather than `Info-goto-node'.
186 (sml-keywords-regexp): Add "o".
187 (sml-syntax-prop-table): Use `defsyntax'.
188 (sml-font-lock-syntactic-keywords): Only use nested comments if supported.
189 (sml-mode): Use `define-derived-mode'.
190 (sml-electric-pipe): `sml-indent-line' -> `indent-according-to-mode'.
191 (sml-indent-line): Use `indent-line-to'.
192 (sml-cm-mode): New mode for CM files.
193
194 * Makefile: Update.
195
196 * sml-mode-startup.el: Remove since it's now auto-generated.
197
198 * sml-defs.el (sml-bindings): Remove left over C-c` binding.
199 (sml-mode-map): Add binding for sml-drag-region (was in sml-proc.el).
200 (sml-mode-syntax-table): Only use nested comments if supported.
201 (sml-mode-menu): Use next-error rather than the old sml-next-error.
202 (sml-pipehead-re): Remove "of".
203
204 * sml-compat.el (set-keymap-parents): Make sure it also works when
205 called with a single keymap rather than a list.
206 (temporary-file-directory): Add a default definition for XEmacs.
207 (make-temp-file): New function.
208
209 1999-08-11 Stefan Monnier <monnier@cs.yale.edu>
210
211 * release: Version 3.9.3
212
213 * sml-mode.texi: Somewhat update the doc.
214
215 1999-08-09 Stefan Monnier <monnier@cs.yale.edu>
216
217 * Makefile: Update to the version of pcl-cvs.
218
219 * sml-proc.el: Eliminate some old unused code.
220
221 * sml-defs.el,sml-mode.el,sml-proc.el: Add simple customize support.
222
223 1999-07-07 Stefan Monnier <monnier@cs.yale.edu>
224
225 * sml-proc.el (sml-update-cursor): Make sure it also works if
226 compile.el is fixed to uses a marker.
227
228 * sml-mode.el (sml-indent): Fix the `fixindent'.
229
230 1999-06-22 Stefan Monnier <monnier@cs.yale.edu>
231
232 * sml-mode-startup.el: Fix to fulfill autoload.el assumptions.
233
234 1999-06-21 Stefan Monnier <monnier@cs.yale.edu>
235
236 * sml-defs.el (sml-bindings): Remove bindings for TAB and M-C-\.
237
238 1999-06-19 Stefan Monnier <monnier@cs.yale.edu>
239
240 * sml-mode.el (sml-font-lock-keywords): Skip type vars in "fun 'a myfn"
241 (sml-calculate-indentation): Add a hack to allow the user to manually
242 override the indentation algorithm with a magic comment.
243
244 * sml-mode-startup.el: Update the autoloads automatically.
245
246 1999-06-19 Stefan Monnier <monnier@cs.yale.edu>
247
248 * release: 3.9.2
249
250 * sml-proc.el (sml-error-regexp-alist): Fix the pathological
251 font-locking on long lines.
252
253 * sml-move.el (sml-forward-sexp): Slightly improved.
254
255 1999-06-17 Stefan Monnier <monnier@cs.yale.edu>
256
257 * sml-mode.el (sml-insert-form): Only add a space if needed.
258 (sml-electric-space): New command bound to M-SPC.
259
260 * sml-defs.el (sml-close-paren): Add a second field that specifies when
261 not to delegate. Only used for `else'.
262
263 1999-06-16 Stefan Monnier <monnier@cs.yale.edu>
264
265 * sml-move.el (sml-(for|back)ward-sym): Distinguish between
266 operator "=" and syntax for definitions "d=".
267
268 * sml-defs.el (sml-indent-starters, sml-delegate): Simplify.
269 (sml-symbol-indent): Add outdentation for `fn' and generalize it to
270 also work for `of' and `in' and `end'.
271
272 * sml-mode.el (sml-nested-if-indent): Reintroduce as well as the
273 special casing code for it.
274 (sml-indent-relative): Generalize treatment of `of', `in', `end', ...
275 (sml-electric-pipe): Remove the slow behavior and add smarts for the
276 never-used type-variable arguments for function definitions.
277
278 1999-06-15 Stefan Monnier <monnier@cs.yale.edu>
279
280 * sml-defs.el (sml-mode-menu), sml-mode.el (sml-forms-menu):
281 Make the menu dynamically.
282
283 * sml-mode.el (sml-form-<foo>): Use skeletons.
284 (sml-calculate-indentation): Add `with' indentation.
285
286 1999-06-14 Stefan Monnier <monnier@cs.yale.edu>
287
288 * sml-move.el (sml-(for|back)ward-sym): Now also return the string
289 if any and take care of the "op" special keyword.
290 (sml-op-prec): Setup an alist for the infix operators.
291
292 * version 3.9.1: sent to Roland McGrath.
293
294 1999-06-13 Stefan Monnier <monnier@cs.yale.edu>
295
296 * sml-smlnj.el, sml-mosml.el, sml-poly-ml.el: Remove.
297
298 * sml-proc.el (...): Get rid of sml-next-error by spicing up the
299 interface with compile.el so that intervals can be displayed.
300 `sml-overlay' is kept (and moved from sml-mode to sml-proc where it
301 belongs) but is made redundant in the case of transient-mark-mode.
302
303 1999-06-12 Stefan Monnier <monnier@cs.yale.edu>
304
305 * sml-proc.el (sml-prompt-regexp): More general regexp to catch mosml,
306 smlnj as well as polyml prompts.
307 (sml-update-cursor, sml-send-command, inferior-sml-mode):
308 Make it work with compile.el's `next-error'.
309 (sml-temp-threshold): Dropped: Always use a temp file.
310
311 1999-06-10 Stefan Monnier <monnier@cs.yale.edu>
312
313 * sml-move.el (sml-op-prec): Update the list of default infix ops
314 based on sml/nj's source files.
315
316 1999-06-08 Stefan Monnier <monnier@cs.yale.edu>
317
318 * sml-proc.el (sml-run): Remove dubious code to take care of a
319 supposedly special case in order not to send "" when args=nil.
320
321 1999-06-07 Stefan Monnier <monnier@cs.yale.edu>
322
323 * sml-mode.el (sml-font-lock-syntactic-keywords): Add syntactic
324 fontification for the ' \"' case (exhibited by lexgen.sml).
325
326 1999-06-07 Stefan Monnier <monnier@cs.yale.edu>
327
328 * ALL: The new indentation begins to work. v3_9_0
329
330 1999-05-29 Stefan Monnier <monnier@cs.yale.edu>
331
332 * sml-defs.el (sml-mode-syntax-table): Add ~ of prefix-syntax.
333
334 * sml-mode.el (sml-find-match-indent): (nilp sml-type-of-indent) is
335 only applied if the `let' is alone at the end of the line.
336 (sml-type-of-indent): Default changed to `nil'.
337
338 1999-05-28 Stefan Monnier <monnier@cs.yale.edu>
339
340 * sml-mode.el (sml-font-lock-keywords): Change _ and ' back to word
341 syntax for font-locking.
342
343 1999-05-27 Stefan Monnier <monnier@cs.yale.edu>
344
345 * sml-mode.el (sml-font-lock-syntactic-keywords): Finally got the
346 matching of let...end working.
347 (sml-electric-pipe): Take a fun sexp (symbol) rather than a fun word.
348
349 1998-10-26 Stefan Monnier <monnier@cs.yale.edu>
350
351 * sml-mode.el (sml-font-lock-syntactic-keywords):
352 Add syntactic-keywords to support nested comments.
353