-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
1409 lines (1043 loc) · 46.8 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
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2007-02-20 Shawn Betts <[email protected]>
* nethack-compat.el (nh-overwrite-insert): rewrite
* nethack-api.el (nhapi-doprev-message): call nh-message
(nhapi-create-message-window): add newline
(nhapi-display-menu): make sure there's a nh-message-buffer
(nhapi-select-menu): likewise
2006-08-26 Shawn Betts <[email protected]>
* nethack-compat.el (nh-read-key-sequence-vector): return the
result of read-key-sequence-vector
* nethack.el (nethack-status-style): new customizable variable
(nethack-message-style): likewise
(nethack-prompt-style): likewise
(nh-filter): add "dummy" as a valid prompt indicator.
* nethack-compat.el (nh-map-read-mode-map): new global variable
(nh-map-read-self-insert): new function
(nh-map-read-submit): likewise
(nh-map-read-mode): new minor mode
(nh-read-from-map): new function
(nh-read-line): likewise
(nh-last-message): new global variable
(nh-display-message-in-map): new function
(nh-message): likewise
(nh-clear-map-message): likewise
(nh-clear-message): likewise
(nh-read-key-sequence-vector): likewise
(nh-read-char-in-map): likewise
(nh-read-char): display the prompt in the map buffer when
nethack-prompt-style is :map
(nh-pause): new function
(nh-overwrite-insert): likewise
(nh-with-point): new macro
* nethack-api.el (nh-print-status): print status in different
places depending on nethack-status-style
(nhapi-message): call nh-message
(nhapi-yn-function): call nh-read-char
(nhapi-ask-direction): call nh-read-key-sequence-vector
(nhapi-getlin): call nh-read-line
(nhapi-doprev-message): show the last message depending on
nethack-message-style
(nhapi-create-message-window): create the nethack-map buffer and
add a blank line to it when nethack-message-style is :map.
(nhapi-clear-message): call nh-clear-message
(nhapi-block): show a block message in different places depending
on nethack-prompt-style
(nhapi-restore-window-configuration): only restore nethack windows
that are being used based on nethack-message-style and
nethack-status-style.
2006-06-11 Shawn Betts <[email protected]>
* nethack.el (nh-at-prompt-hook): new var
(nh-filter): run nh-at-prompt-hook hooks
* nethack-tiles.el: provide nethack-tiles
* nethack-api.el (nhapi-print-glyph): use set-text-properties
(nhapi-clear-map): require nethack-tiles
* gen-tiles.lisp: export slash'em tiles
* Makefile: build slash'em tarballs
2006-01-07 Michael Olson <[email protected]>
* nethack.el (nh-filter): Don't use eval-region, since Emacs22
chokes on it. Use eval-buffer on a narrowed region instead.
2005-02-27 <[email protected]>
* mkpatch: get $src $ref and $work as arguments.
* Makefile: add rules for building slashem patches
2004-11-22 Shawn Betts <[email protected]>
* nethack-nhlaunch.el (nethack-network-server): new defvar
(nethack-network-port): likewise
(nethack-network-user): likewise
(nethack-network-password): likewise
(nethack-network-game): likewise
(nh-network-server): remove
(nh-network-port): likewise
(nh-network-user): likewise
(nh-network-filter): use the new nethack-network-* variables.
(nethack-connect-to-server): ask for the password. Ask for the
game when universal arg is given.
* nhlaunch.c (games): make nethack the first entry.
* nethack-nhlaunch.el (nh-network-game): new defvar
(nh-network-filter): send the game to play
(nethack-connect-to-server): take another arg, game.
* nhlaunch.c (read_cmd): new command, list
(struct game_t): new struct
(games): new global
(NETHACK_PROGRAM): remove
(find_program): new function
(list_programs): likewise
(read_cmd): play takes an argument and uses find_program to
determine which program to execlp.
(read_cmd): remove debugging output
2004-11-19 Shawn Betts <[email protected]>
* nethack-nhlaunch.el (nethack-connect-to-server): make autoload
require nethack.
* nethack.el (nethack): make autoload
2004-11-19 Shawn Betts <[email protected]>
* nethack.el (nethack-add-menu-hook): new hook
* nethack-example.el (nethack-x-highlights): new defvar
(nethack-x-highlight-option): new function
* nethack-cmd.el (technique): new nethack command
* nethack-api.el (nhapi-add-menu): run the nethack-add-menu-hook.
2004-11-16 Shawn Betts <[email protected]>
* mkpatch: src, ref, and work are pulled from args 1, 2, and 3.
* Makefile: Add rules for building slashem patches
* nethack.el (nethack): call nethack-start with the process as an
arg.
(nethack-connect-to-server): remove
(nethack-is-running): new function
(nethack-start): new function
(nethack-create-process): remove function
* nethack-keys.el (nh-map-mode-map): add keybinding for travel command
* nethack-cmd.el (travel): new nethack command
2004-11-14 Shawn Betts <[email protected]>
* nethack.el (nethack): call nethack-create-process
(nethack-connect-to-server): new function
(nethack-create-process): new function
(nh-send-and-wait): check if nh-proc's status is 'open or 'run
* nethack-cmd.el (options): new command
* nethack-api.el (nh-options-cbreak): new defvar
(nh-options-dec-graphics): likewise
(nh-options-echo): likewise
(nh-options-ibm-graphics): likewise
(nh-options-msg-history): likewise
(nh-options-num-pad): likewise
(nh-options-news): likewise
(nh-options-window-inited): likewise
(nh-options-vision-inited): likewise
(nh-options-menu-tab-sep): likewise
(nh-options-menu-requested): likewise
(nh-options-num-pad-mode): likewise
(nh-options-purge-monsters): likewise
(nh-options-bouldersym): likewise
(nh-options-travelcc): likewise
(nh-options-sanity-check): likewise
(nh-options-mon-polycontrol): likewise
(nhapi-options): new function
2004-11-14 Shawn Betts <[email protected]>
* Makefile (DISTFILES): change nethack-glyphs.el to nethack-tiles.el
(all): likewise
2004-11-12 Shawn Betts <[email protected]>
* nethack-api.el (nh-menu-toggle-all-items): fix which regexp
match gets replaced with '-' or '+'
2004-11-11 Shawn Betts <[email protected]>
* nethack-keys.el (nh-accelerator-chars): add ?# to the vector
(nh-accelerator-chars-regexp): new defvar
(nh-menu-item-regexp): likewise
* nethack-api.el (nhapi-yn-function): Add ESC and C-g as abort keys.
(nh-menu-toggle-all-items): use nh-menu-item-regexp
(nh-menu-goto-next): likewise
(nh-menu-goto-prev): likewise
(nh-menu-submit): likewise
(nh-menu-cancel): likewise
2004-07-24 Shawn Betts <[email protected]>
* Makefile (NETHACK_EL_VER): version bump to 0.9.3
(NH_VER): version bump to 3.4.3
2003-09-18 Shawn Betts <[email protected]>
* nethack.el (nethack-purge-buffers): new global
(nh-proc-kill-buffer-on-quit): set to `t' by default
(nh-sentinel): call nethack-kill-buffers.
2003-09-15 Shawn Betts <[email protected]>
* nethack.el (nethack-end-hook): new hook
(nh-proc-kill-buffer-on-quit): new defvar
(nh-log-buffer): likewise
(nh-sentinel): kill the process buffer if
nh-proc-kill-buffer-on-quit is t.
(nh-log): use nh-log-buffer
(nethack-kill-buffers): new function
* nethack-api.el (nhapi-end): run the hook, nethack-end-hook.
2003-09-14 Shawn Betts <[email protected]>
* Makefile (DISTFILES): added nethack-compat.el and ese-007e3.patch
2003-09-13 Shawn Betts <[email protected]>
* Makefile (NH_VER): bumped to 3.4.2
2003-08-29 Shawn Betts <[email protected]>
* nethack-api.el (nhapi-ask-direction): use
read-key-sequence-vector instead of nh-read-char.
2003-06-03 Shawn Betts <[email protected]>
* nethack.el (nethack-el-version): bump version to 0.9.0
* Makefile (NETHACK_EL_VER): new variable
(DISTDIR): use NETHACK_EL_VER in directory
(DISTFILES): add ese-007e0.patch
* nethack.el (nethack-pet-face): new face.
* nethack-api.el (nhapi-print-glyph): new optional argument,
special. When special is 'pet, use the pet face.
2003-04-09 Ryan Yeske <[email protected]>
* nethack-api.el (nhapi-clear-map): Make sure gamegrid doesn't try
to use glyphs. Make sure the cursor is visible in the map window.
From Istvan Marko.
2003-04-09 Shawn Betts <[email protected]>
* nethack.el (nethack-el-version): version update
2003-04-03 Ryan Yeske <[email protected]>
* nethack-keys.el (nh-map-mode-map): Don't map M-[.
2003-03-28 Ryan Yeske <[email protected]>
* INSTALL: Update nethack version references (to 3.4.1).
* nethack-api.el: No longer require overlay. Require
nethack-compat.
* nethack-compat.el: Add file. Localize version specific hacks
here.
* nethack.el (nh-propertize):
(nh-assq-delete-all):
(nh-window-buffer-height):
(nh-char-to-int):
(nh-read-char): Move these functions to nethack-compat.el.
* Makefile (clean): Clean *.elc not *elc.
2003-03-10 Ryan Yeske <[email protected]>
* enh-341.patch: Update file (was added without ChangeLog entry).
* Makefile (NH_VER): Add variable to specify nethack source
version to create patch from.
* mkpatch: Update to use NH_VER.
2003-03-08 Shawn Betts <[email protected]>
* nethack-api.el (nh-menu-submit): Don't print the list of
selected menu items to the minibuffer.
2002-09-26 Ryan Yeske <[email protected]>
* nethack.el (nh-sentinel): Don't pop to process buffer on signal.
* nethack-api.el (nhapi-create-message-window): Erase the buffer.
(nhapi-block): Clear the message highlight after input.
(nhapi-raw-print): Pop to the raw-print-buffer.
2002-09-20 Ryan Yeske <[email protected]>
* nethack.el (nethack-el-version): Add function.
(nethack-el-version): Add variable.
* nethack-cmd.el (version): Show nethack-el version.
* nethack-example.el (nethack-x-timestamp-message): Rename from
`nethack-timestamp-message'.
(nethack-x-gdb): Rename from `nh-gdb'.
(nethack-x-warn-low-hp): Add function.
* nethack-api.el (nh-status-string): Add function.
(nh-status-n, nh-status-w, nh-status-s, nh-status-d, nh-status-c)
(nh-status-i, nh-status-W, nh-status-C, nh-status-A, nh-status-L)
(nh-status-l, nh-status-g, nh-status-h, nh-status-p, nh-status-a)
(nh-status-e, nh-status-t, nh-status-f): Add functions.
* nethack.el (nethack-status-attribute-change-functions): Rename
from `nethack-status-attribute-change-hook'.
* nethack-api.el (nh-print-status): Rewrite.
* nethack.el (nethack-status-format): Remove variable.
(nethack-status-in-modeline): Remove variable.
(nethack-status-buffer-format): Add variable.
(nethack-status-mode-line-format): Add variable.
(nethack-status-header-line-format): Add variable.
* nethack-keys.el: Remove require.
* nethack-glyphs.el (nh-empty-tile): Rename from
nethack-empty-tile.
(nh-tile-vector): Rename from nethack-glyph-vector.
* nethack-cmd.el: Add provide line.
* nethack-api.el: Move all customizable variables and face
definitions to nethack.el.
* nethack.el: Reorder functions and variables. Cosmetic change.
Update comments.
2002-09-19 Ryan Yeske <[email protected]>
* nethack.el: Rename all "non-user" functions and variables from
nethack-* to nh-*. Rename all nethack-api-* functions and
variables to nhapi-*. Rename all references of "glyphs" to
"tiles" (except for the filename nethack-glyphs.el).
* nethack-keys.el: Likewise.
* nethack-glyphs.el: Likewise.
* nethack-example.el: Likewise.
* nethack-cmd.el: Likewise.
* nethack-api.el: Likewise.
* nethack-api.el (overlay): Add require for XEmacs.
2002-09-16 Ryan Yeske <[email protected]>
* Makefile (test-patch): Add rule.
(dist): Depend on a tested patch.
* mkpatch: Add win/tty/termcap.c to list of files to include in
patch. Create patch from clean tarball.
* nethack-example.el (nethack-timestamp-message): Put loose code
from this file into this function.
(nh-gdb): New function.
2002-09-15 Ryan Yeske <[email protected]>
* nethack-keys.el (nethack-map-mode-map, nethack-menu-mode-map):
Add supress-keymap. From Istvan Marko <[email protected]>.
2002-09-12 Ryan Yeske <[email protected]>
* nethack-api.el: Removed the remains of the window.doc comments.
They were misleadingly out of date.
(nethack-api-end): Add function.
* mkpatch: Don't include win/lisp/TODO file in patch.
* nethack-api.el (nethack-api-menu-putstr): Rename from
`nethack-api-putstr'.
2002-09-12 Ryan Yeske <[email protected]>
* Makefile (dist): Build the distribution tarball in the current
directory.
(DISTFILES): Update patch filename.
* nethack-api.el (nethack-reset-status-variables): Rename from
`nethack-reset-status'.
(nethack-api-curs): Don't take a winid argument. Always operate
on `nethack-map-buffer'.
(nethack-api-message): Split out from nethack-api-putstr. Always
operates on `nethack-message-buffer'.
(nethack-api-print-glyph): Always operate on `nethack-map-buffer'.
(nethack-inventory-need-update): Add variable.
(nethack-api-update-inventory): Set
`nethack-inventory-need-update' to t.
(nethack-api-create-message-window): No longer takes a winid.
(nethack-api-create-status-window): Likewise.
(nethack-api-create-map-window): Likewise.
(nethack-api-create-inventory-window): Rename winid arg to menuid.
(nethack-api-start-menu): Likewise.
(nethack-api-add-menu): Likewise.
(nethack-api-select-menu): Likewise.
(nethack-api-clear-nhwindow): Remove.
(nethack-api-clear-message): New function.
(nethack-api-clear-map): New function.
(nethack-api-display-nhwindow): Remove.
(nethack-api-display-menu): Add function.
(nethack-api-block): New function.
(nethack-api-restore-window-configuration): Rename from
`nethack-restore-window-configuration' as its now also called from
Nethack. Change the placement of windows.
(nethack-menu-submit): Don't set window-configuration unless
`nethack-window-configuration' contains a valid value.
* nethack-cmd.el (redraw-screen): Update to call
`nethack-api-restore-window-configuration'.
* nethack.el (nethack): Update to call
`nethack-restore-window-configuration' and
`nethack-reset-status-variables'.
(nethack-map-mode): Ensure that `scroll-other-window' operates on
`nethack-message-buffer'.
2002-07-16 Ryan C Yeske <[email protected]>
* enh-340.patch: Add file.
* Makefile: Generate patch for nethack-3.4.0
* mkpatch: Likewise.
2002-05-11 Shawn Betts <[email protected]>
* nethack-glyphs.el (nethack-glyph-vector): update with new glyphs.
(nethack-empty-glyph): remove :mode heuristic.
2002-04-23 Shawn <[email protected]>
* nethack.el (nethack): reset status variables
* nethack-api.el (nethack-reset-status): new function
(nethack-status-attribute-Score): new variable
(nethack-api-print-glyph): change arguments to reflect C source.
2002-04-10 Ryan Yeske <[email protected]>
* Makefile (dist): Add rule.
* mkpatch: Add file.
* Makefile (patch): Call external mkpatch sh-script to generate
the patch.
2002-02-14 Shawn Betts <[email protected]>
* nethack-glyphs.el (nethack-glyph-vector): Add warning glyphs.
2002-02-01 Ryan C Yeske <[email protected]>
* COPYING: Add file.
* nethack.el: Update copyright.
* nethack-keys.el: Update copyright.
* nethack-keys-dvorak.el: Update copyright.
* nethack-glyphs.el: Update copyright.
* nethack-api.el: Update copyright.
2002-02-01 Shawn Betts <[email protected]>
* nethack.el (nethack-message-pre-print-hook): new hook.
* nethack-api.el (nethack-api-putstr): run the
nethack-message-pre-print-hook hook.
2002-02-01 Ryan C Yeske <[email protected]>
* nethack.el (nethack-black-face, nethack-green-face)
(nethack-brown-face, nethack-blue-face, nethack-magenta-face)
(nethack-cyan-face, nethack-bright-green-face)
(nethack-bright-blue-face): Fix colors.
* nethack-api.el (nethack-status-good-face)
(nethack-status-bad-face)
(nethack-status-neutral-face): Fix colors.
2002-01-30 Ryan C Yeske <[email protected]>
* enh-331.patch: Add file.
* Makefile: Likewise.
* INSTALL: Likewise.
* BUGS: Likewise.
* AUTHORS: Likewise.
2002-01-29 Ryan C Yeske <[email protected]>
* nethack-cmd.el (defun-nethack-command): Reformat.
* nethack-api.el (nethack-api-update-status): Rewrite using a
separate variable for each attribute. Don't print the attributes
here. Run hooks when an attribute has changed.
(nethack-print-status): New function.
(nethack-status-attribute-name, nethack-status-attribute-monster)
(nethack-status-attribute-rank, nethack-status-attribute-St)
(nethack-status-attribute-Dx, nethack-status-attribute-Co)
(nethack-status-attribute-In, nethack-status-attribute-Wi)
(nethack-status-attribute-Ch, nethack-status-attribute-Align)
(nethack-status-attribute-Dungeon, nethack-status-attribute-Dlvl)
(nethack-status-attribute-$, nethack-status-attribute-HP)
(nethack-status-attribute-HPmax, nethack-status-attribute-PW)
(nethack-status-attribute-PWmax, nethack-status-attribute-AC)
(nethack-status-attribute-Level, nethack-status-attribute-XP)
(nethack-status-attribute-HD, nethack-status-attribute-T)
(nethack-status-attribute-confusion)
(nethack-status-attribute-hunger, nethack-status-attribute-sick)
(nethack-status-attribute-blind)
(nethack-status-attribute-stunned)
(nethack-status-attribute-hallucination)
(nethack-status-attribute-slimed)
(nethack-status-attribute-encumbrance): Add variables.
(nethack-status-good-face, nethack-status-bad-face)
(nethack-status-neutral-face): Add faces.
(nethack-active-menu-buffer): Add variable.
(nethack-api-select-menu): Set nethack-active-menu-buffer.
(nethack-menu-submit): Clear nethack-active-menu-buffer.
(nethack-menu-toggle-item): Fix count bug, so C-u 1 works.
(nethack-restore-window-configuration): Make sure the menu is
displayed if it is active.
2002-01-27 Ryan C Yeske <[email protected]>
* nethack.el (nh-filter): Remove nh-log-process-text test.
(nh-log): Test nh-log-process-text here.
(nh-prompt-regexp): Make constant.
(nh-log-process-text): Rename from nh-log-process.
2002-01-23 Ryan C Yeske <[email protected]>
* nethack.el (nh-proc-buffer-name): Add variable.
(nh-log-process): Likewise.
(nh-sentinel): Don't erase the process buffer here.
(nh-log): Add function.
(nh-filter): Log evaluated text.
(nh-send): Log commands and erase text from process buffer.
(nethack-window-buffer-height, nethack-char-to-int)
(nethack-read-char): Add functions.
* nethack-api.el (nethack-api-raw-print-bold): Fix typo.
(nethack-api-putstr): Reformat.
(nethack-api-yn-function): Use nethack-read-char.
(nethack-api-display-nhwindow): Likewise.
(nethack-message-highlight-face): Change definition.
(nethack-api-clear-nhwindow): Move (require 'nethack-glyphs) to
here.
(nethack-menu-toggle-item): Remove replace-match code.
(nethack-menu-submit): Call nethack-char-to-int on accelerator.
(nethack-api-add-menu): Propertize strings going into menu.
(nethack-api-select-menu): Use nethack-window-buffer-height.
2002-01-22 Ryan C Yeske <[email protected]>
* nethack-api.el (nethack-api-clear-nhwindow): Move the
nethack-glyphs require from nethack.el to here.
2002-01-22 shawn <[email protected]>
* nethack-api.el (nethack-menu-submit): return list pairs
containing the accelerator and the value.
(nethack-api-add-menu): remove identifier parameter.
2002-01-22 Ryan C Yeske <[email protected]>
* nethack-cmd.el (southwest-until-ontop, southwest-until-near):
Fill in definitions.
* nethack.el (nethack-assq-delete-all): New function.
(nethack-propertize): New function.
(nh-proc): Rename from nh-comint-proc.
(nethack): Use start-process not make-comint.
(nh-comint-mode): Remove.
(nh-filter): Rewrite without comint.
(nh-send): Rewrite without comint.
* nethack-api.el (nethack-api-raw-print-bold): Use
nethack-propertize.
(nethack-api-update-status, nethack-api-putstr): Likewise.
(nethack-api-add-menu): Add nethack attributes.
(nethack-api-destroy-nhwindow): Use nethack-assq-delete-all.
2002-01-22 shawn <[email protected]>
* nethack-keys.el (nethack-accelerator-chars): add ?* to the
vector.
* nethack-api.el (nethack-api-choose-role): remove function
(nethack-api-choose-race): likewise
(nethack-api-choose-gender): likewise
(nethack-api-choose-alignment): likewise
(nethack-menu-toggle-item): adjust item regexp to include ?*
(nethack-menu-toggle-all-items): likewise
(nethack-menu-goto-next): likewise
(nethack-menu-goto-prev): likewise
(nethack-menu-submit): likewise
(nethack-menu-cancel): likewise
2002-01-21 Ryan C Yeske <[email protected]>
* nethack-api.el (nethack-menu): Remove variable.
(nethack-menu-toggle-item, nethack-menu-toggle-all-items)
(nethack-menu-goto-next, nethack-menu-goto-prev)
(nethack-menu-submit, nethack-menu-cancel)
(nethack-api-start-menu, nethack-api-add-menu)
(nethack-api-end-menu): Rewrite to remove ewoc dependancy.
(nethack-api-add-menu): Add tile argument.
* nethack.el (nethack): Don't setq nethack-menu.
* nethack-api.el (ewoc): Remove require.
(nethack-menu-item-print): Remove function.
2002-01-20 Ryan C Yeske <[email protected]>
* nethack-keys.el: Add bindings for remaining functions.
* nethack-cmd.el: Define remaining functions.
2002-01-18 Ryan C Yeske <[email protected]>
* nethack-api.el (nethack-api-ask-direction): Correct se and sw
correspondances.
2002-01-17 Ryan C Yeske <[email protected]>
* nethack-api.el (nethack-api-getlin): Handle Quit.
* nethack.el (nethack-map-mode-syntax-table): Add '{' and '}'.
2002-01-16 Ryan C Yeske <[email protected]>
* nethack-keys-dvorak.el (nethack-map-mode-hook): Add binding for
nethack-command-offer.
* nethack-api.el (nethack-api-print-status-numeric): Remove
function.
(nethack-api-print-status-string): Remove function.
(nethack-print-status-string): Add function.
(nethack-api-update-status): Use nethack-print-status.
(nethack-api-raw-print): Print to nethack-message-buffer.
(nethack-api-exit-nhwindows): Don't clean up buffers.
(nethack-api-display-nhwindow): Try to print text to
nethack-message-buffer.
(nethack-restore-window-configuration): Remove buffer dedication
of status window.
(nethack-api-end-menu): Don't move the point.
(nethack-api-select-menu): Use the window displaying the message
buffer for the menu, and enlarge it only if necessary.
* nethack.el (nethack-map-glyph-face): Fix typo.
(nethack-map-mode-syntax-table): Add `[' and `]'.
2002-01-15 Ryan C Yeske <[email protected]>
* nethack.el (nethack-map-mode-syntax-table): New variable.
(nethack-map-mode): Use nethack-map-mode-syntax-table.
(nethack-map-glyph-face): Don't set face on tty displays.
2002-01-14 Ryan C Yeske <[email protected]>
* nethack.el (nh-send-and-wait): Stop waiting for process output
if the process dies.
* nethack-api.el (nethack-api-putstr): Use overlay for highlight.
Insert newline after text, not before.
(nethack-api-create-nhwindow): Move code from cond into appropriate
nethack-api-create-*-window functions.
(nethack-api-create-menu-window): Make buffer read-only.
(nethack-api-start-menu): Inhibit read-only.
(nethack-api-create-message-window): Create highlight overlay.
(nethack-api-clear-nhwindow): Don't create gamegrid if using glyphs.
(nethack-api-putstr): Inhibit readonly.
* nethack.el (nethack): Check for buffer before killing it.
2002-01-13 shawn <[email protected]>
* nethack-glyphs.el (nethack-glyph-vector): fix the giant ant image.
2002-01-13 Ryan C Yeske <[email protected]>
* nethack.el (nh-prompt-regexp): New variable.
(nh-comint-mode): Use above variable.
2002-01-10 Ryan C Yeske <[email protected]>
* nethack.el (nethack-map-glyph-face): Put in nethack-faces group.
(nethack-use-glyphs): Default to nil.
(nethack-toggle-glyphs): New function.
* nethack-api.el (nethack-api-display-nhwindow): Don't wait for a
key on echo area messages.
(nethack-menu-item-print, nethack-menu-toggle-item)
(nethack-menu-toggle-item, nethack-menu-toggle-all-items)
(nethack-menu-submit, nethack-api-add-menu): Handle prefix arg on
menu selection. From sabetts.
* nethack-cmd.el (redraw-screen): Restore window configuration
always, only redraw glyphs with a prefix arg.
(defun-nethack-command): Expand cmdstr in test.
* nethack-api.el (nethack-restore-window-configuration): Make the
status window dedicated.
2002-01-01 shawn <[email protected]>
* nethack.el (nethack): set nethack-status-alist to nil when
starting a new nethack game.
2002-01-01 <[email protected]>
* nethack-api.el (nethack-menu-toggle-all-items): only toggle
items that have identifiers.
(nethack-api-update-status): remove CL dependancy for flag
processing.
(nethack-api-update-status): properly re-create the "Flags" status
alist.
2001-12-20 shawn <[email protected]>
* nethack.el (nethack-map-glyph-face): new face.
* nethack-api.el (nethack-api-update-status): take 1 argument
which is an alist of status properties. Print each status
property.
(nethack-api-print-status-numeric): new function
(nethack-api-print-status-string): new function
(nethack-api-update-status): highlight status attributes that
change.
(nethack-api-update-status): Insert a space between each
attribute.
(nethack-api-clear-nhwindow): insert newlines using the
nethack-map-glyph-face when using glyphs.
* nethack.el (nh-sentinel): evaluate any remaining lisp code when
the lisp process gets a sentinel event.
2001-12-19 shawn <[email protected]>
* nethack.el: require nethack-glyphs
(nethack-use-glyphs): new variable
* nethack-api.el (nethack-api-print-glyph): add argument `tile'
(nethack-api-print-glyph): draw graphical tiles, when graphics are
enabled.
(nethack-api-clear-nhwindow): fill the map with empty graphical
tiles, when graphics are enabled.
2001-12-04 Ryan Yeske <[email protected]>
* nethack-api.el (nethack-cook-status): Rename from
nh-cooked-status.
2001-12-02 Ryan Yeske <[email protected]>
* nethack-api.el (nethack-return): Remove.
(nh-use-cooked-status): New variable.
(nethack-api-update-status): New function.
(nethack-api-get-command): Comment out, it is obsolete with new
comint process handling.
(nethack-restore-window-configuration): Rename from
nethack-setup-window-configuration.
(nethack-api-create-message-window)
(nethack-api-create-status-window, nethack-api-create-map-window)
(nethack-api-create-inventory-window)
(nethack-api-create-menu-window, nethack-api-create-text-window):
New function.
* nethack-cmd.el (defun-nethack-command): Update to handle new
process handling code nh-send-and-wait.
* nethack.el (nethack): Use comint to communicate with process.
(nh-comint-mode): New function.
(nethack-process-buffer-name): Remove.
(nethack-process-name): Remove.
(nethack-start-program): Remove.
(nethack-process-send-string): Remove.
(nh-send): New function.
(nh-send-and-wait): New function.
(nethack-status-line-number, nethack-status-line):
Remove.
(nh-sentinel): New function.
(nh-filter): New function.
2001-10-23 shawn <[email protected]>
* nethack.el (nethack-parse-status-lines): flags are highlighted
as red always (always bad).
2001-10-23 Ryan Yeske <[email protected]>
* nethack-cmd.el (defun-nethack-command): Allow arbitrary code to
go into function definitions.
(shell): Run a shell.
* nethack-keys.el (nethack-menu-mode-map): Add
(nethack-menu-mode-map): Add bindings for
`nethack-menu-toggle-all-items'.
(nethack-menu-mode-map): Bind keys to the extended commands.
* nethack-api.el (nethack-api-end-menu): Comment out broken
initial positioning code.
(nethack-menu-toggle-all-items): New function.
2001-10-23 shawn <[email protected]>
* nethack-api.el (nethack-api-getlin): send the string read from
the minibuffer, not the object which is a a string.
* nethack.el (nethack-parse-status-lines): the highlight delay is
negative if the change in status is bad and positive when good.
(nethack-parse-status-lines, nethack-format-status): if the status
change is negative change the value to a red face, green if
positive.
(nethack-parse-status-lines): handles the case when
nethack-status-alist is nil.
2001-10-22 Ryan Yeske <[email protected]>
* nethack.el (nethack-process-filter): Do not send the return
value to the running process.
* nethack-keys.el (nethack-map-mode-map): C-c C-c is bound to
nethack-command-quit.
* nethack-api.el (nethack-return): Send the return value directly
from here.
(nethack-retval): Remove function.
(nethack-api-ask-direction): Add prompt argument. Add down, up,
and self directions.
(nethack-api-display-nhwindow): Do not protect windows. Clear the
value of nethack-menu when displaying a menu window.
(nethack-menu-goto-next): Make sure nethack-menu is non-nil.
(nethack-menu-goto-prev): Likewise.
(nethack-protect-windows): Remove macro.
(nethack-api-select-menu): Do not protect windows.
* nethack-apix.el: Removed from repository.
* nethack.el (nethack-colors): New vector.
(nethack-colors-alist): Remove.
* nethack-api.el (nethack-api-print-glyph): Use nethack-colors
vector.
* nethack.el (nethack-format-status): Use nethack-red-face for
changed attributes.
* nethack-api.el (nethack-return): New function.
(nethack-retval): New function.
(nethack-api-raw-print, nethack-api-raw-print, nethack-api-curs)
(nethack-api-putstr, nethack-api-get-command)
(nethack-api-print-glyph, nethack-api-player-selection)
(nethack-api-display-file, nethack-api-doprev-message)
(nethack-api-init-nhwindows, nethack-api-exit-nhwindows)
(nethack-api-clear-nhwindow, nethack-api-display-nhwindow)
(nethack-api-destroy-nhwindow, nethack-api-start-menu)
(nethack-api-add-menu, nethack-api-end-menu)
(nethack-api-select-menu, nethack-api-outrip): Remove 'void.
(nethack-api-yn-function, nethack-api-ask-direction)
(nethack-api-getlin, nethack-api-choose-role)
(nethack-api-choose-race, nethack-api-choose-gender)
(nethack-api-choose-alignment, nethack-api-create-nhwindow)
(nethack-api-delay-output): Use nethack-return to create a return
value.
* nethack.el (nethack-process-filter): Use nethack-retval to
unpack return values. Don't check for unimplemented.
2001-10-22 Ryan <[email protected]>
* nethack-keys.el (nethack-accelerator-chars): Moved from
nethack-api.el.
(nethack-menu-mode-map): New variable. Setup the entire static
keymap.
* nethack-api.el (nethack-api-display-nhwindow): Call
nethack-menu-mode to set up the buffer.
(nethack-api-select-menu): Likewise.
(nethack-menu-item-print): Use aref, not elt.
(nethack-menu-mode): New function.
(nethack-menu-toggle-item): Don't toggle pick-none menus.
(nethack-menu-goto-next): New function.
(nethack-menu-goto-prev): New function.
(nethack-api-end-menu): Position the point on the first selectable
menu item.
* nethack.el (nethack-menu-mode-hook): New hook.
2001-10-19 Ryan Yeske <[email protected]>
* nethack-cmd.el (nethack-command-previous-message): New function.
(nethack-command-redraw-screen): Likewise.
* nethack-api.el (nethack-api-raw-print): Display the raw print
buffer as the only window.
(nethack-api-raw-print-bold): Use nethack-atr-bold-face.
(nethack-atr-none-face, nethack-atr-uline-face)
(nethack-atr-bold-face, nethack-atr-blink-face)
(nethack-atr-inverse-face): New faces.
(nethack-api-putstr): Use whatever attribute is specified.
(nethack-attr-face): New function.
(nethack-api-clear-nhwindow): Remove debugging `.'.
(nethack-api-display-nhwindow): Handle blocking map displays.
(nethack-api-add-menu): Use whatever attribute is specified.
(nethack-api-outrip): Output a trailing newline.
2001-10-19 shawn <[email protected]>
* nethack.el (nethack-parse-status-lines): regexp truncated.
(nethack-parse-status-lines): alter regexp to handle strengths > 18
(nethack-status-highlight-delay): new variable
(nethack-parse-status-lines): the data changed field in the status
alist is now a number that counts down from
nethack-status-highlight-delay.
(nethack-format-status): Only highlight the data if the 3rd
element in the data list is > 0.
* nethack-api.el (nethack-api-putstr): only print the status when
both status lines have been received.
* nethack.el (nethack-status-alist): new defvar
(nethack-status-string): likewise
(nethack-parse-status-lines): new function
(nethack-format-status): likewise
* nethack-api.el (nethack-api-putstr): parse the status lines and
print the status according to the format string
nethack-status-string.
2001-10-19 Ryan Yeske <[email protected]>
* nethack.el (nethack-red-face): Add -face, and to all other color
faces.
* nethack-api.el (nethack-api-toplines, nethack-api-win-message)
(nethack-api-win-message, nethack-api-win-map)
(nethack-api-win-status, nethack-api-ae, nethack-api-ae)
(nethack-api-li, nethack-api-li, nethack-api-ospeed): Comment out.
* nethack.el (nethack): If the process is already running,
display all of the game windows.
* nethack-api.el (nethack-api-exit-nhwindows): Clean up buffers.
(nethack-map-buffer): New variable.
(nethack-status-buffer): Likewise.
(nethack-message-buffer): Likewise.
(nethack-api-create-nhwindow): Record the "standard" buffers into
the above variables.
(nethack-api-display-nhwindow): Setup the windows for first time
use.
(nethack-status-window-height): New variable.
(nethack-message-window-height): Likewise.
(nethack-setup-window-configuration): New function.
2001-10-18 Ryan Yeske <[email protected]>
* nethack-apix.el: Remove file, move functions into
nethack-api.el.
* nethack-keys.el (nethack-mode-map): Add nethack-command-loot
binding.
* nethack.el (gamegrid,nethack-apix): Don't require.
(nethack-process-filter): Remove save-excursion wrapper.
(nethack-setup-map-buffer): Remove.
(nethack-map-mode): Turn off show-paren mode.
* nethack-api.el (gamegrid): Require.
(nethack-api-curs): Wrap in save-excursion. Subtract 1 from x
value.
(nethack-api-putstr): Wrap in save-excursion. Propertize strings
going into menu and text windows.
(nethack-api-print-glyph): Wrap in save-excursion. Subtract 1