/
ChangeLog
801 lines (570 loc) · 30 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
2008-02-28 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-region): New dummy function.
(turn-on-haskell-indent): Use it to be more honest.
* haskell-mode.el (literate-haskell-mode): Fix up mode line.
Disable fill-comment-paragraph in Bird style.
* inf-haskell.el (subst-char-in-string, make-temp-file):
Add fallback definitions for XEmacs-21.4.
2008-02-28 Greg Steuck <greg@nest.cx> (tiny change)
* inf-haskell.el (inferior-haskell-find-haddock): Jump to the symbol
anchor within Haddock.
2008-02-18 Daniel Burrows <dburrows@debian.org> (tiny change)
* haskell-indent.el (haskell-indent-next-symbol-safe): New fun.
(haskell-indent-separate-valdef): Use it.
2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-cabal-of-buf): Fix typo.
Reported by Bas van Dijk <v.dijk.bas@gmail.com>.
2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-wait-for-prompt): Add timeout arg.
(inferior-haskell-find-definition): Expand file name in the right cwd.
2008-01-30 Greg Steuck <greg@nest.cx> (tiny change)
* inf-haskell.el (inferior-haskell-cabal-of-buf)
(inferior-haskell-module-alist-file): Adjust for XEmacs.
2008-01-17 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-cabal.el (haskell-cabal-font-lock-keywords): Add rules
for `if', `else', `Library', `Flag', and `Executable'.
(haskell-cabal-mode): Setup comment variables.
2007-12-12 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (haskell-package-conf-file): Don't use `ignore-errors'
because this form is not byte-compiled :-(.
2007-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
* Release version 2.4.
2007-12-11 Florian Lorenzen <lorenzen@physik.fu-berlin.de> (tiny change)
* haskell-mode.el (haskell-mode-map): Fix last change.
2007-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-mode.el (haskell-delete-indentation): New command.
(haskell-mode-map): Use it.
* haskell-doc.el (haskell-doc-in-code-p): New function.
(haskell-doc-show-type): Use it.
* Makefile (ELFILES): Add haskell-c, haskell-cabal,
and haskell-simple-indent.
2007-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-cabal.el (haskell-cabal-get-setting):
Handle multi-line settings.
* inf-haskell.el (inferior-haskell-load-file): Typo.
2007-09-26 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-cabal.el (haskell-cabal-get-setting): New function.
* inf-haskell.el (inferior-haskell-find-project-root): Use it.
* haskell-c.el: New file.
2007-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-load-file): Do reload if prefix arg.
2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (turn-on-haskell-indent): Fix keymap setup code.
2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-find-project-root): New var, to
replace inferior-haskell-use-cabal.
(inferior-haskell-find-project-root): New function.
(inferior-haskell-load-file): Use them.
(inferior-haskell-module-alist): Use a temp buffer so as not to write
out random junk before/after the actual module alist.
2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-load-file): Re-add the `reload' arg.
(inferior-haskell-reload-file): Re-instate the command.
* haskell-mode.el (turn-on-haskell-hugs, turn-on-haskell-ghci):
Make people work harder to use those obsolete packages.,
* haskell-indent.el (haskell-indent-map): New var.
(turn-on-haskell-indent, turn-off-haskell-indent): Use it together with
keymap inheritance instead of inplace modifications.
* haskell-indent.el (turn-on-haskell-indent): Add alternate binding for
C-c C-|. Suggested by David House <dmhouse@gmail.com>.
2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-type): Fix call to message.
2007-07-30 Stefan Monnier <monnier@iro.umontreal.ca>
* Update license to GPLv3.
* haskell-mode.el (haskell-ident-at-point): Extend it to cover
all elements of a qualified name.
2007-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-mode.el (haskell-mode-map): Remove C-c C-r binding.
* inf-haskell.el (inferior-haskell-load-file): Remove reload arg.
(inferior-haskell-reload-file): Remove.
2007-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-compute-module-alist): Fix regexps.
(inferior-haskell-module-alist-file): Thinko.
* inf-haskell.el (inferior-haskell-run-command): New var.
(inferior-haskell-load-and-run): New command.
* inf-haskell.el (inferior-haskell-map-internal-ghc-ident): New var.
(inferior-haskell-map-internal-ghc-ident): New fun.
(inferior-haskell-find-haddock): Use it.
* inf-haskell.el (inferior-haskell-module-alist-file): Use a file in
/tmp rather than ~/ by default.
(inferior-haskell-compute-module-alist):
Rename from inferior-haskell-populate-module-alist.
Just return the result without saving it in any cache.
(inferior-haskell-read-module-alist-cache): Delete.
(inferior-haskell-module-alist): New function which replaces it, taking
care of the caching (both store&read).
(inferior-haskell-find-haddock): Adjust to this new arrangement.
2007-06-29 David House <dmhouse@gmail.com>
* haskell-mode.el (haskell-mode-map): Add binding to the new
inferior-haskell-find-haddock command.
2007-06-29 David House <dmhouse@gmail.com>
* inf-haskell.el (inferior-haskell-module-alist-file)
(inferior-haskell-module-re, inferior-haskell-use-web-docs)
(inferior-haskell-web-docs-base, haskell-package-manager-name)
(haskell-package-conf-file, inferior-haskell-module-alist): New vars.
(inferior-haskell-get-module, inferior-haskell-query-ghc-pkg)
(inferior-haskell-get-package-list)
(inferior-haskell-populate-module-alist)
(inferior-haskell-read-module-alist-cache)
(inferior-haskell-find-haddock): New functions to lookup Haddock docs.
2007-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-type, inferior-haskell-info)
(inferior-haskell-find-definition): Add missing autoload cookies since
they're used in haskell-mode-map.
2007-06-26 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-error-regexp-alist):
Add more regexps for GHC's ever expanding variety of formats.
2007-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-font-lock.el (haskell-font-lock-haddock): New custom.
(haskell-font-lock-seen-haddock): New internal var.
(haskell-syntactic-face-function): Highlight Haddock comments.
2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-font-lock.el (haskell-font-lock-symbols-alist): Add `forall'.
* inf-haskell.el (inferior-haskell-error-regexp-alist): Be more careful
with multiline patterns. Add pattern for GHCi's type error messages.
2007-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-font-lock.el (haskell-font-lock-dot-is-not-composition):
New function.
(haskell-font-lock-symbols-alist): Change rule for the "." symbol to
use that new function, so as to check it's not a "forall <foo> .".
(haskell-font-lock-compose-symbol)
(haskell-font-lock-symbols-keywords): Adjust to the new syntax.
2007-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-error-regexp-alist): Add entries for
GHCI's exceptions.
(inferior-haskell-mode): Set compilation-first-column.
2007-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-column+offset): New function.
(haskell-indent-push-pos-offset, haskell-indent-after-keyword-column):
Use it.
(haskell-indent-within-literate-code): Accept `tex' as well as `latex'
for literate style.
* haskell-mode.el (haskell-literate): Use `tex' rather than `latex'.
Declare as safe-local-variable.
(literate-haskell-mode): Use `tex' rather than `latex'.
Make it visible in the modeline.
* haskell-font-lock.el (haskell-font-lock-keywords-create):
Accept `tex' as well as `latex' for literate style.
* haskell-decl-scan.el (haskell-decl-scan-version): Remove.
2007-05-08 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-use-cabal): New custom var.
(inferior-haskell-cabal-of-buf): New fun.
(inferior-haskell-load-file): Use it to try and do the right thing in
multi-directory projects using a Cabal file.
* haskell-cabal.el (inferior-haskell-string-prefix-p)
(haskell-cabal-find-file): New functions.
* inf-haskell.el (inferior-haskell-string-to-strings):
Remove `separator' argument. Call split string without separator arg
either, so that it drops null strings.
2007-05-03 "David House" <dmhouse@gmail.com> (tiny change)
* inf-haskell.el (inferior-haskell-load-file): Save buffer before
using buffer-file-name.
2007-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-mode.el (haskell-hoogle-command, haskell-hoogle): New var
and command.
2007-03-05 Ken Takusagawa <ken.takusagawa.2@gmail.com> (tiny change)
* haskell-font-lock.el (haskell-font-lock-keywords-create):
Wrap haskell-default-face for XEmacs.
2007-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
* Release version 2.3.
* haskell-cabal.el: New file.
* haskell-indent.el (haskell-indent-look-past-empty-line): Typo.
* inf-haskell.el (with-selected-window): Define while compiling.
2007-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
* Release version 2.2.
* haskell-font-lock.el (haskell-font-lock-keywords-create):
Remove qualified and hiding from the reserved identifiers.
Add a special rule for import statements.
* haskell-doc.el (haskell-doc-get-current-word): Remove.
Change all refs to it, to use haskell-ident-at-point instead.
* inf-haskell.el (inferior-haskell-info-xref-re): New cst.
(inferior-haskell-error-regexp-alist): Use it to highlight xref info.
(inferior-haskell-type, inferior-haskell-info)
(inferior-haskell-find-definition): New funs.
Contributed by Matthew Danish <mrd@cs.cmu.edu>.
* haskell-mode.el (haskell-ident-at-point): New fun.
Copy of haskell-doc-get-current-word.
(haskell-mode-map): Add bindings for inferior-haskell-(type|info|find).
2007-02-09 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-back-to-indentation): Simplify.
(haskell-indent-look-past-empty-line): New var.
(haskell-indent-start-of-def): Use it.
* fontlock.hs: Add test case.
* haskell-font-lock.el (haskell-font-lock-version): Remove.
* haskell-doc.el (haskell-doc-version): Remove.
(haskell-doc-get-current-word): Correctly distinguish
variable identifiers and infix identifiers.
(haskell-doc-rescan-files): Avoid switch-to-buffer.
(haskell-doc-imported-list): Operate on current buffer.
(haskell-doc-make-global-fct-index): Adjust call.
2006-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-doc.el (haskell-doc-mode-print-current-symbol-info):
Fix thinko.
2006-10-19 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-load-file): Simplify and make more
robust at the same time.
* haskell-doc.el: Drop p-c-idle-h in favor of run-with-idle-timer.
(haskell-doc-timer, haskell-doc-buffers): New vars.
(haskell-doc-mode): Use them.
(haskell-doc-check-active): Update the check.
(haskell-doc-mode-print-current-symbol-info): Don't sit-for unless it's
really needed. Remove the interactive spec.
2006-09-25 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-mode.el (haskell-mode-menu): Fix typo.
2006-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-font-lock.el (haskell-font-lock-keywords-create): Use a more
precise test for literate haskell highlighting.
* haskell-mode.el (haskell-mode-menu): New menu.
(haskell-mode): Use new name `eldoc-documentation-function'.
2006-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-wait-for-prompt): New fun, extracted
from inferior-haskell-send-command.
(inferior-haskell-send-command): Use it.
(inferior-haskell-wait-and-jump): New custom var.
(inferior-haskell-load-file): Use it.
2006-05-17 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-mode): Use shell-dirtrack-mode
if possible.
* haskell-hugs.el (haskell-hugs-start-process):
* haskell-ghci.el (haskell-ghci-start-process):
Use comint-input-filter-functions rather than the outdated
comint-input-sentinel. Reported by Jerry James <james@xemacs.org>.
2005-12-09 Stefan Monnier <monnier@iro.umontreal.ca>
* indent.hs: Add some erroneous cases.
* haskell-font-lock.el (haskell-font-lock-keywords-create):
Minor regexp fiddling.
2005-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-next-symbol): Simplify.
(haskell-indent-comment): Rename from haskell-indent-inside-comment.
(haskell-indent-skip-lexeme-forward)
(haskell-indent-offset-after-info, haskell-indent-hanging-p): New funs.
(haskell-indent-inhibit-after-offset, haskell-indent-dont-hang):
New variables.
(haskell-indent-closing-keyword, haskell-indent-after-keyword-column)
(haskell-indent-inside-paren): New functions, extracted
from haskell-indent-indentation-info. Use the above new functions.
(haskell-indent-indentation-info): Use them.
(haskell-indent-after-keywords): Add data for ( and {.
* haskell-font-lock.el (haskell-font-lock-keywords-create): `as' is not
a reserved keyword, apparently, and is used as var name.
2005-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-*.el (turn-(on|off)-*): Make non-interactive.
* haskell-decl-scan.el (haskell-decl-scan-mode): New minor mode.
(turn-on-haskell-decl-scan): Use it.
* haskell-doc.el (haskell-doc-extract-types): Get labelled data working.
(haskell-doc-prelude-types): Update via auto-generation.
* haskell-doc.el (haskell-doc-extract-types): Get it partly working.
(haskell-doc-fetch-lib-urls): Don't use a literal if we apply
`nreverse' on it later on.
(haskell-doc-prelude-types): Update some parts by auto-generation.
(haskell-doc-grab, haskell-doc-string-nub-ws): Simplify.
* haskell-doc.el (haskell-doc-maintainer, haskell-doc-varlist)
(haskell-doc-submit-bug-report, haskell-doc-ftp-site)
(haskell-doc-visit-home): Remove.
(haskell-doc-reserved-ids, haskell-doc-fetch-lib-urls)
(haskell-doc-extract-and-insert-types): New funs.
(haskell-doc-reserved-ids): Fix type of `map'.
2005-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-load-file): Fix the
compilation-parsing-end fiddling so it doesn't get moved inadvertently.
* haskell-font-lock.el (haskell-font-lock-symbols-alist): Some XEmacs
versions define make-char but not charsetp.
(haskell-font-lock-symbols-keywords): Add a `keep' arg so
de-highlighting in strings works correctly even in Emacs-21.
* haskell-doc.el: Add coding cookie.
2005-11-14 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-decl-scan.el (haskell-ds-get-variable): Massage.
(haskell-ds-move-to-decl, haskell-ds-generic-find-next-decl):
Use with-syntax-table.
2005-11-14 Dave Love <fx@gnu.org>
* haskell-decl-scan.el: Docstring fixes.
(haskell-ds-keys): Delete.
(turn-on-haskell-decl-scan): Inline it here.
Use beginning-of-defun-function if available.
* haskell-font-lock.el (haskell-font-lock-keywords-create): Add pattern
for numbers and strings for arguments to toplevel declarations.
2005-11-14 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-error-regexp-alist): Fix GHCi
regexp, add support for warnings.
2005-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
* Makefile (dist): Remove profile file and avoid ztar.
* inf-haskell.el (inferior-haskell-command): Provide a default.
(with-selected-window): Define if necessary.
(inferior-haskell-load-file): Display the buffer.
* haskell-indent.el (haskell-indent-indentation-info): Typo.
* haskell-ghci.el (haskell-ghci-mode): Use define-derived-mode.
2005-11-07 Stefan Monnier <monnier@iro.umontreal.ca>
* Release version 2.1.
* haskell-indent.el (haskell-indent-inside-comment): Rename `start' arg
into `open' and add a new `start' arg.
(haskell-indent-after-keywords): Change defaults for `in'.
(haskell-indent-indentation-info): Fix confusion between pos and col.
(haskell-indent-mode): Autoload.
* haskell-indent.el (haskell-indent-find-matching-start):
Add `pred' and `start' arguments.
(haskell-indent-filter-let-no-in): New fun.
(haskell-indent-indentation-info): Use them to correctly match `let's
with `in's even when some of the `let's have no matching `in'.
2005-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el: Reduce the use of dyn-bound haskell-indent-info.
(haskell-indent-push-col): Don't duplicate info.
(haskell-indent-line-indentation): Handle let-in-do. Remove dead code.
(haskell-indent-inside-comment): Move rest of code from
haskell-indent-indentation-info.
* haskell-indent.el (haskell-literate): Declare.
(haskell-running-xemacs, event-basic-type, read-event): Remove.
(haskell-indent-get-beg-of-line, haskell-indent-get-end-of-line):
Remove. Use line-(beginning|end)-position instead.
(haskell-indent-mark-active): Move the xemacs test inside the defun.
(haskell-indent-info): Rename from indent-info. Update users.
(haskell-indent-bolp, haskell-indent-inside-comment):
Use line-beginning-position.
(haskell-indent-within-literate-code): Use `case'.
(haskell-indent-put-region-in-literate): Bind more comment-* vars.
(haskell-indent-virtual-indentation): Add the missing `start' arg.
(haskell-indent-mode): Move before first use.
(haskell-indent-stand-alone-mode): Use haskell-indent-mode.
Rename from haskell-stand-alone-indent-mode. Use define-derived-mode.
(hugs-mode-map, hugs-syntax-table):
Rename to haskell-stand-alone-indent-mode-(map|syntax-table).
* haskell-doc.el (haskell-doc-xemacs-p, haskell-doc-emacs-p)
(haskell-doc-message): Remove.
(haskell-doc-is-id-char-at): Remove.
(haskell-doc-get-current-word): Rewrite.
2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-indentation-info): Fix detection of
hanging let/if/case statements.
* haskell-mode.el (haskell-mode): Fix typo.
2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (inferior-haskell-mode): Hide compilation bindings.
* haskell-indent.el (haskell-indent-after-keywords): New var.
(haskell-indent-virtual-indentation): New fun.
(haskell-indent-indentation-info): Use them to indent after keywords.
* haskell-simple-indent.el (haskell-simple-indent): Minor simplif.
(turn-on-haskell-simple-indent): Don't bind \t and \n.
* haskell-mode.el (haskell-vars, haskell-mode-generic): Remove.
(haskell-mode-hook): Rename from haskell-mode-hooks.
(haskell-mode): Use define-derived-mode. Inline haskell-mode-generic
and haskell-vars.
(literate-haskell-mode): Use define-derived-mode.
* fontlock.hs: Add some entries for infix declarations.
2005-10-12 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-start-keywords-re): Use regexp-opt.
(haskell-indent-type-at-point): Accept ' in identifiers.
(haskell-indent-find-case): Tell match-data to not generate markers.
(haskell-indent-line-indentation): Ignore off-side keywords in comments
and strings.
(haskell-indent-find-matching-start): Generalize.
Rename from haskell-indent-find-let.
(haskell-indent-indentation-info): Use it for of, then, and else.
2005-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-in-comment): Don't fail at EOB.
* haskell-font-lock.el (haskell-font-lock-symbols-alist): Add "not".
(haskell-font-lock-compose-symbol): Handle alphanum identifiers.
Fix incorrect handling of . when used for qualified names.
2005-09-26 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-font-lock.el (haskell-font-lock-symbols-alist): Prefer the
unicode version of lambda. Add two symbols from the Omega language and
from Paterson's arrow syntax.
2005-08-24 Steve Chamberlain <sac@pobox.com> (tiny patch)
* haskell-doc.el (haskell-doc-message): Paren typo.
2005-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-doc.el (haskell-doc-show-type): Assume that the availability
of display-message won't change at runtime.
* haskell-font-lock.el (haskell-font-lock-keywords-create): Try and
work around a bug that seems to be in Emacs-21.3 rather than in
haskell-font-lock.el. Reported by Steve Chamberlain <sac@pobox.com>.
2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
* inf-haskell.el (haskell-program-name): Fix defcustom delcaration.
* haskell-doc.el (haskell-doc-message): Remove.
(haskell-doc-show-type): Inline it. Don't do anything for if there's
no doc to show.
2005-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-hugs.el (haskell-hugs-mode-map):
* haskell-ghci.el (haskell-ghci-mode-map): Remove.
2005-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-inside-comment): Don't assume that
column(pos+2) = column(pos)+2.
(haskell-indent-indentation-info): Fix indentation of , and ;.
Add arg `start'. Restrict choice of indentation for comments.
(haskell-indent-event-type): Remove.
(haskell-indent-last-info): New var.
(haskell-indent-cycle): Use it to store info from one invocation to
the next, so we can do cycling outside of the function.
Don't cycle directly any more. Instead, recognize repeated invocations
via last-command and friends.
Use indent-line-function rather than hardcoding indent-to-left-margin.
(haskell-indent-insert-where): Don't save excursion.
(haskell-indent-layout-indent-info): Minor simplifications.
(haskell-indent-line-indentation): Don't ignore code on a line
before a string.
* haskell-hugs.el (haskell-hugs-last-loaded-file): Remove.
(haskell-hugs-start-process): Fix misuse of make-variable-buffer-local.
(haskell-hugs-go): Quote file name. Simplify.
* haskell-ghci.el (haskell-ghci-last-loaded-file): Remove.
(haskell-ghci-start-process): Fix misuse of make-variable-buffer-local.
(haskell-ghci-go): Quote file name. Simplify.
* haskell-mode.el (haskell-version): Keep it up-to-date.
* inf-haskell.el (inferior-haskell-load-file): Quote file name.
2004-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-start-of-def): Only go backward.
(haskell-indent-in-string): Simplify.
(haskell-indent-in-comment): Simplify.
(haskell-indent-comment): Remove.
(haskell-indent-inside-comment): New fun.
(haskell-indent-indentation-info): Assume we're at the indentation.
Handle comments differently.
(haskell-indent-cycle): Go to indentation and then save excursion
around haskell-indent-indentation-info.
* haskell-doc.el (haskell-doc-minor-mode-string): Make it dynamic.
(haskell-doc-install-keymap): Remove conflicting C-c C-o binding.
(haskell-doc-mode): Make a nil arg turn the mode ON.
(turn-on-haskell-doc-mode): Make it an alias for haskell-doc-mode.
(haskell-doc-mode): Don't touch haskell-doc-minor-mode-string.
(haskell-doc-show-global-types): Don't touch
haskell-doc-minor-mode-string. Call haskell-doc-make-global-fct-index.
(haskell-doc-check-active): Fix message.
(define-key-after): Don't define.
(haskell-doc-install-keymap): Check existence of define-key-after.
* haskell-mode.el (haskell-literate-default): Fix custom type.
(haskell-vars): Ignore comments when doing C-M-f.
* indent.hs: More test cases.
* inf-haskell.el (haskell-program-name): Use ghci if hugs is absent.
(inferior-haskell-load-file): Reset compilation-parsing-end.
2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
* Release version 2.0.
* .emacs: Remove.
* haskell-decl-scan.el (haskell-ds-imenu-label-cmp): Undo last
idiotic change.
* haskell-doc.el (haskell-doc-sym-doc): Make even the last char bold.
* haskell-mode.el (haskell-mode-map): Typo.
* inf-haskell.el (inferior-haskell-mode): Typo.
(inferior-haskell-wait-for-output): Remove.
(inferior-haskell-send-command): New function.
(inferior-haskell-load-file): Use it.
* index.html:
* installation-guide.html: Partial fixup.
2004-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-mode.el (turn-on-haskell-hugs, turn-on-haskell-ghci):
Mark them as obsolete.
(haskell-mode-map): Add bindings for the inferior-haskell commands.
* inf-haskell.el: New file.
* haskell-doc.el (haskell-doc-install-keymap): Don't blindly assume
there's a Hugs menu.
2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (turn-on-haskell-indent, turn-off-haskell-indent):
Use C-c C-foo rather than C-c foo to follow coding conventions.
* haskell-font-lock.el (haskell-font-lock-symbols-alist): Add . = ○.
2004-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-indentation-info): Don't use layout
for paren-closing elements.
2004-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-indentation-info): Only use
the new `in' indentation rule if the `let' is on the left of the decl.
2004-10-19 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-indent.el (haskell-indent-find-let): New function.
(haskell-indent-indentation-info): Use it to indent `in'.
* haskell-font-lock.el (haskell-default-face): Add missing declaration.
* haskell-indent.el (haskell-indent-open-structure): Simplify.
(haskell-indent-contour-line): Work even when `start' is in the middle
of a line.
(haskell-indent-layout-indent-info): New fun extracted from
haskell-indent-indentation-info.
(haskell-indent-indentation-info): Use it as before. Use it also to
handle layout-within-open-structure.
2004-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-font-lock.el (haskell-font-lock-keywords-create):
Use explicit `symbol-value' to work around limitations in XEmacs's
implementation of font-lock.
(haskell-basic-syntactic-keywords): Fix up char-constants some more.
2004-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-doc.el (turn-off-haskell-doc-mode)
(haskell-doc-current-info): Don't autoload.
* haskell-decl-scan.el (haskell-ds-match-string):
Use match-string-no-properties if available.
(haskell-ds-syntax-table): Use haskell-mode-syntax-table.
(haskell-ds-imenu-label-cmp): Use car-less-than-car if available.
(haskell-ds-imenu): Remove obsolete incorrect code.
* haskell-mode.el: Set things up so that mode-hook functions are not
necessary, and generic functions can be used instead, like
global-font-lock-mode.
(haskell-enum-from-to): Remove.
(turn-on-haskell-font-lock): Make obsolete.
(haskell-running-xemacs): Remove.
(haskell-mode-syntax-table): Fiddle with non-ascii chars.
Fix up comment syntax in XEmacs.
(haskell-vars): Improve comment-start-skip.
Add comment-end-skip. Setup imenu, eldoc, and font-lock.
Tweak handling of tabs to be on the safe side.
(haskell-mode-hooks): Declare and mention some useful ideas.
(literate-haskell-mode): Simplify.
(haskell-comment-indent): Remove. The default works as well.
* haskell-font-lock.el: Remove level 1 fontification.
(haskell-font-lock-keywords-1, haskell-font-lock-keywords-2)
(bird-literate-haskell-font-lock-keywords-1)
(bird-literate-haskell-font-lock-keywords-2)
(latex-literate-haskell-font-lock-keywords-1)
(latex-literate-haskell-font-lock-keywords-2): Remove.
(bird-literate-haskell-font-lock-keywords)
(latex-literate-haskell-font-lock-keywords): Rename.
(haskell-font-lock-keywords-create): Remove `level' arg.
(haskell-fl-syntax): Remove. Assume the major modes sets it right.
(haskell-font-lock-choose-keywords)
(haskell-font-lock-choose-syntactic-keywords): New funs.
(haskell-font-lock-defaults-create): Use them.
(turn-off-haskell-font-lock, turn-on-haskell-font-lock): Simplify.
* haskell-hugs.el (haskell-hugs-mode): Use define-derived-mode.
(run-hugs): New alias.
(haskell-hugs-wait-for-output): Don't loop if the process is dead.
* haskell-font-lock.el (haskell-font-lock-compose-symbol): New fun.
(haskell-font-lock-symbols-keywords): Use it.
(haskell-string-char-face): Remove.
(haskell-font-lock-keywords-create): Hardcode font-lock-string-face.
(haskell-fl-syntax): Fix typos. Keep " as a string delimiter.
2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
* haskell-doc.el (haskell-doc): New group.
(haskell-doc-show-reserved, haskell-doc-show-prelude)
(haskell-doc-show-strategy, haskell-doc-show-user-defined)
(haskell-doc-chop-off-context, haskell-doc-chop-off-fctname):
Make them custom vars.
(haskell-doc-keymap): Declare and fill it right there.
(haskell-doc-mode): Simplify.
(haskell-doc-toggle-var): Make it into what it was supposed to be.
(haskell-doc-mode-print-current-symbol-info): Simplify.
(haskell-doc-current-info): New autoloaded function.
(haskell-doc-sym-doc): New fun extracted from haskell-doc-show-type.
(haskell-doc-show-type): Use it.
(haskell-doc-wrapped-type-p): Remove unused var `lim'.
(haskell-doc-forward-sexp-safe, haskell-doc-current-symbol):
Remove. Unused.
(haskell-doc-visit-home): Don't require ange-ftp, it's autoloaded.
(haskell-doc-install-keymap): Simplify.
* haskell-decl-scan.el (literate-haskell-ds-create-imenu-index)
(haskell-ds-generic-create-imenu-index): Remove.
(haskell-ds-bird-p): New function.
(haskell-ds-backward-decl, haskell-ds-forward-decl): Use it.
(haskell-ds-create-imenu-index): Use it to make it generic.
(haskell-ds-imenu): Remove now-unused arg.
(turn-on-haskell-decl-scan): Fix up call to haskell-ds-imenu.
(haskell-ds-running-xemacs): Remove.
(haskell-ds-func-menu-next): Make generic.
(literate-haskell-ds-func-menu-next): Delete.
(haskell-ds-func-menu): Remove unused arg.
(turn-on-haskell-decl-scan): Simplify.
* haskell-indent.el: Don't load CL at runtime.
(haskell-indent-start-of-def, haskell-indent-type-at-point):
Don't hardcode point-min == 1.
(indent-info): Declare it.
(haskell-indent-empty, haskell-indent-ident, haskell-indent-other)
(haskell-indent-line-indentation): Use `string'.
(haskell-indent-valdef-indentation): Fix `case' arms syntax.
(haskell-indent-indentation-info): Remove unused var `pt'.
(haskell-indent-align-def): Remove unused var `defpos'.
(turn-on-haskell-indent): Don't bind TAB.
(turn-off-haskell-indent): Don't unbind TAB and DEL.
(hugs-syntax-table): Use the `n' for nested comments.
(haskell-stand-alone-indent-mode): Fix `comment-end'.
;; Local Variables:
;; coding: utf-8
;; End:
# arch-tag: a2606dc4-fab7-4b2f-bbe9-0a51db643511