DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ l

⟦a4f655dca⟧

    Length: 4842 (0x12ea)
    Names: »ledit.l«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/gnu-31mar87/emacs/etc/ledit.l« 

Hex Dump

0x0000…0020 3b 3b 3b 20 2d 2a 2d 20 4d 6f 64 65 3a 20 6c 69 73 70 20 2d 2a 2d 0a 0a 3b 20 6c 6f 61 64 20 69   ┆;;; -*- Mode: lisp -*-  ; load i┆
0x0020…0040 6e 20 74 68 65 20 63 20 66 75 6e 63 74 69 6f 6e 73 0a 0a 28 72 65 6d 6f 76 65 61 64 64 72 65 73   ┆n the c functions  (removeaddres┆
0x0040…0060 73 20 27 5f 73 69 67 6e 61 6c 29 0a 28 72 65 6d 6f 76 65 61 64 64 72 65 73 73 20 27 5f 73 77 69   ┆s '_signal) (removeaddress '_swi┆
0x0060…0080 74 63 68 5f 74 6f 5f 70 72 6f 63 29 0a 28 72 65 6d 6f 76 65 61 64 64 72 65 73 73 20 27 5f 73 65   ┆tch_to_proc) (removeaddress '_se┆
0x0080…00a0 74 5f 70 72 6f 63 5f 73 74 72 29 0a 0a 28 63 66 61 73 6c 20 22 2f 73 72 63 2f 6d 64 63 2f 6c 65   ┆t_proc_str)  (cfasl "/src/mdc/le┆
0x00a0…00c0 64 69 74 2f 6c 65 64 69 74 63 66 6e 73 2e 6f 22 20 27 5f 73 77 69 74 63 68 5f 74 6f 5f 70 72 6f   ┆dit/leditcfns.o" '_switch_to_pro┆
0x00c0…00e0 63 20 27 65 6d 61 63 73 29 0a 0a 28 67 65 74 61 64 64 72 65 73 73 20 27 5f 73 65 74 5f 70 72 6f   ┆c 'emacs)  (getaddress '_set_pro┆
0x00e0…0100 63 5f 73 74 72 20 27 73 65 74 5f 70 72 6f 63 5f 73 74 72 29 0a 0a 28 64 65 63 6c 61 72 65 20 28   ┆c_str 'set_proc_str)  (declare (┆
0x0100…0120 73 70 65 63 69 61 6c 20 2a 6c 65 64 69 74 2d 69 6e 66 69 6c 65 2a 20 20 20 20 20 20 20 20 20 20   ┆special *ledit-infile*          ┆
0x0120…0140 20 20 20 20 20 3b 20 65 6d 61 63 73 2d 3e 6c 69 73 70 20 74 65 6d 70 66 69 6c 65 0a 09 09 20 20   ┆     ; emacs->lisp tempfile     ┆
0x0140…0160 2a 6c 65 64 69 74 2d 6f 75 74 66 69 6c 65 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 6c   ┆*ledit-outfile*              ; l┆
0x0160…0180 69 73 70 2d 3e 65 6d 61 63 73 20 74 65 6d 70 66 69 6c 65 0a 09 09 20 20 2a 6c 65 64 69 74 2d 70   ┆isp->emacs tempfile     *ledit-p┆
0x0180…01a0 70 66 69 6c 65 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 70 70 2d 3e 65 6d 61 63 73   ┆pfile*               ; pp->emacs┆
0x01a0…01c0 20 74 65 6d 70 66 69 6c 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 6c 65 64   ┆ tempfile                   *led┆
0x01c0…01e0 69 74 2d 6c 69 73 7a 74 66 69 6c 65 2a 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 63 6f 6d 70 69   ┆it-lisztfile*            ; compi┆
0x01e0…0200 6c 65 72 20 69 6e 70 75 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 6c 65 64   ┆ler input                   *led┆
0x0200…0220 69 74 2d 6f 62 6a 66 69 6c 65 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 63 6f 6d 70 69   ┆it-objfile*              ; compi┆
0x0220…0240 6c 65 72 20 6f 75 74 70 75 74 0a 09 09 20 20 2a 6c 65 64 69 74 2d 69 6e 69 74 69 61 6c 69 7a 65   ┆ler output     *ledit-initialize┆
0x0240…0260 64 2a 29 20 20 20 20 20 20 20 20 20 3b 20 66 6c 61 67 0a 09 20 29 0a 0a 28 73 65 74 71 20 2a 6c   ┆d*)         ; flag   )  (setq *l┆
0x0260…0280 65 64 69 74 2d 69 6e 69 74 69 61 6c 69 7a 65 64 2a 20 6e 69 6c 29 0a 0a 3b 3b 3b 20 49 4e 49 54   ┆edit-initialized* nil)  ;;; INIT┆
0x0280…02a0 2d 4c 45 44 49 54 0a 0a 28 64 65 66 75 6e 20 69 6e 69 74 2d 6c 65 64 69 74 20 28 29 0a 20 20 28   ┆-LEDIT  (defun init-ledit ()   (┆
0x02a0…02c0 6c 65 74 20 28 28 75 73 65 72 20 28 67 65 74 65 6e 76 20 27 7c 55 53 45 52 7c 29 29 29 09 09 3b   ┆let ((user (getenv '|USER|)))  ;┆
0x02c0…02e0 55 53 45 52 20 6d 75 73 74 20 62 65 20 75 70 70 65 72 63 61 73 65 0a 20 20 20 20 20 20 20 28 73   ┆USER must be uppercase        (s┆
0x02e0…0300 65 74 71 0a 09 20 2a 6c 65 64 69 74 2d 6f 75 74 66 69 6c 65 2a 20 28 63 6f 6e 63 61 74 20 22 2f   ┆etq   *ledit-outfile* (concat "/┆
0x0300…0320 74 6d 70 2f 22 20 75 73 65 72 20 22 2e 6c 32 22 29 20 3b 20 6c 69 73 70 20 2d 3e 20 65 6d 61 63   ┆tmp/" user ".l2") ; lisp -> emac┆
0x0320…0340 73 0a 09 20 2a 6c 65 64 69 74 2d 69 6e 66 69 6c 65 2a 20 20 28 63 6f 6e 63 61 74 20 22 2f 74 6d   ┆s   *ledit-infile*  (concat "/tm┆
0x0340…0360 70 2f 22 20 75 73 65 72 20 22 2e 6c 31 22 29 20 3b 20 65 6d 61 63 73 20 2d 3e 20 6c 69 73 70 0a   ┆p/" user ".l1") ; emacs -> lisp ┆
0x0360…0380 09 20 2a 6c 65 64 69 74 2d 70 70 66 69 6c 65 2a 20 20 28 63 6f 6e 63 61 74 20 22 2f 74 6d 70 2f   ┆  *ledit-ppfile*  (concat "/tmp/┆
0x0380…03a0 22 20 75 73 65 72 20 22 2e 6c 33 22 29 20 3b 20 70 70 20 6f 75 74 70 75 74 20 74 6f 20 65 6d 61   ┆" user ".l3") ; pp output to ema┆
0x03a0…03c0 63 73 2e 0a 09 20 2a 6c 65 64 69 74 2d 6c 69 73 7a 74 66 69 6c 65 2a 20 20 28 63 6f 6e 63 61 74   ┆cs.   *ledit-lisztfile*  (concat┆
0x03c0…03e0 20 22 2f 74 6d 70 2f 22 20 75 73 65 72 20 22 2e 6c 34 22 29 0a 09 20 2a 6c 65 64 69 74 2d 6f 62   ┆ "/tmp/" user ".l4")   *ledit-ob┆
0x03e0…0400 6a 66 69 6c 65 2a 20 20 28 63 6f 6e 63 61 74 20 22 2f 74 6d 70 2f 22 20 75 73 65 72 20 22 2e 6f   ┆jfile*  (concat "/tmp/" user ".o┆
0x0400…0420 22 29 0a 09 20 2a 6c 65 64 69 74 2d 69 6e 69 74 69 61 6c 69 7a 65 64 2a 20 74 29 29 29 0a 0a 3b   ┆")   *ledit-initialized* t)))  ;┆
0x0420…0440 3b 3b 20 4c 45 44 49 54 0a 3b 20 69 66 20 31 20 61 72 67 2c 20 61 72 67 20 69 73 20 74 61 6b 65   ┆;; LEDIT ; if 1 arg, arg is take┆
0x0440…0460 6e 20 61 73 20 61 20 74 61 67 20 6e 61 6d 65 20 74 6f 20 70 61 73 73 20 74 6f 20 65 6d 61 63 73   ┆n as a tag name to pass to emacs┆
0x0460…0480 2e 0a 3b 20 69 66 20 32 20 61 72 67 73 2c 20 73 65 63 6f 6e 64 20 61 72 67 20 69 73 20 61 20 6b   ┆. ; if 2 args, second arg is a k┆
0x0480…04a0 65 79 77 6f 72 64 2e 20 20 49 66 20 32 6e 64 20 61 72 67 20 69 73 20 70 70 2c 0a 3b 20 70 70 20   ┆eyword.  If 2nd arg is pp, ; pp ┆
0x04a0…04c0 69 73 20 61 70 70 6c 69 65 64 20 74 6f 20 66 69 72 73 74 20 61 72 67 2c 20 61 6e 64 20 72 65 73   ┆is applied to first arg, and res┆
0x04c0…04e0 75 6c 74 20 69 73 20 73 65 6e 74 20 74 6f 20 65 6d 61 63 73 0a 3b 20 74 6f 20 70 75 74 20 69 6e   ┆ult is sent to emacs ; to put in┆
0x04e0…0500 20 61 20 62 75 66 66 65 72 20 63 61 6c 6c 65 64 20 4c 45 44 49 54 20 28 77 68 69 63 68 20 69 73   ┆ a buffer called LEDIT (which is┆
0x0500…0520 20 66 69 72 73 74 20 65 72 61 73 65 64 2e 29 0a 0a 28 64 65 66 75 6e 20 6c 65 64 69 74 20 66 65   ┆ first erased.)  (defun ledit fe┆
0x0520…0540 78 70 72 20 28 61 72 67 73 29 0a 20 20 20 20 28 61 70 70 6c 79 20 23 27 6c 65 64 69 74 2a 20 61   ┆xpr (args)     (apply #'ledit* a┆
0x0540…0560 72 67 73 29 29 0a 0a 3b 3b 3b 20 4c 45 44 49 54 2a 0a 0a 28 64 65 66 75 6e 20 6c 65 64 69 74 2a   ┆rgs))  ;;; LEDIT*  (defun ledit*┆
0x0560…0580 20 6e 0a 20 20 20 20 28 69 66 20 28 6e 6f 74 20 2a 6c 65 64 69 74 2d 69 6e 69 74 69 61 6c 69 7a   ┆ n     (if (not *ledit-initializ┆
0x0580…05a0 65 64 2a 29 20 28 69 6e 69 74 2d 6c 65 64 69 74 29 29 0a 20 20 20 20 28 6c 65 64 69 74 2d 6f 75   ┆ed*) (init-ledit))     (ledit-ou┆
0x05a0…05c0 74 70 75 74 20 28 6c 69 73 74 69 66 79 20 6e 29 29 0a 20 20 20 20 28 73 79 73 63 61 6c 6c 20 31   ┆tput (listify n))     (syscall 1┆
0x05c0…05e0 30 2e 20 2a 6c 65 64 69 74 2d 69 6e 66 69 6c 65 2a 29 20 20 20 20 20 20 20 20 3b 20 73 79 73 63   ┆0. *ledit-infile*)        ; sysc┆
0x05e0…0600 61 6c 6c 20 31 30 20 69 73 20 22 64 65 6c 65 74 65 22 0a 20 20 20 20 28 73 79 73 63 61 6c 6c 20   ┆all 10 is "delete"     (syscall ┆
0x0600…0620 31 30 2e 20 2a 6c 65 64 69 74 2d 6c 69 73 7a 74 66 69 6c 65 2a 29 0a 20 20 20 20 28 65 6d 61 63   ┆10. *ledit-lisztfile*)     (emac┆
0x0620…0640 73 29 0a 20 20 20 20 28 6c 65 64 69 74 2d 69 6e 70 75 74 29 0a 20 20 20 20 28 73 79 73 63 61 6c   ┆s)     (ledit-input)     (syscal┆
0x0640…0660 6c 20 31 30 2e 20 2a 6c 65 64 69 74 2d 6f 75 74 66 69 6c 65 2a 29 0a 20 20 20 20 28 73 79 73 63   ┆l 10. *ledit-outfile*)     (sysc┆
0x0660…0680 61 6c 6c 20 31 30 2e 20 2a 6c 65 64 69 74 2d 70 70 66 69 6c 65 2a 29 0a 20 20 20 20 74 29 0a 0a   ┆all 10. *ledit-ppfile*)     t)  ┆
0x0680…06a0 3b 3b 3b 20 4c 45 44 49 54 2d 4f 55 54 50 55 54 0a 3b 3b 3b 20 45 67 61 64 2c 20 77 68 61 74 20   ┆;;; LEDIT-OUTPUT ;;; Egad, what ┆
0x06a0…06c0 61 20 6d 65 73 73 21 20 20 44 6f 65 73 6e 27 74 20 77 6f 72 6b 20 66 6f 72 20 58 45 4d 41 43 53   ┆a mess!  Doesn't work for XEMACS┆
0x06c0…06e0 20 79 65 74 2e 0a 3b 3b 3b 20 48 65 72 65 27 73 20 61 6e 20 65 78 61 6d 70 6c 65 20 66 72 6f 6d   ┆ yet. ;;; Here's an example from┆
0x06e0…0700 20 4d 6f 63 6c 69 73 70 3a 0a 3b 3b 3b 20 2d 3e 20 28 64 65 66 75 6e 20 62 61 72 20 28 6e 6f 74   ┆ Moclisp: ;;; -> (defun bar (not┆
0x0700…0720 68 69 6e 67 29 20 28 62 61 72 20 6e 6f 74 68 69 6e 67 29 29 0a 3b 3b 3b 20 62 61 72 0a 3b 3b 3b   ┆hing) (bar nothing)) ;;; bar ;;;┆
0x0720…0740 20 2d 3e 20 28 6c 65 64 69 74 20 62 61 72 29 0a 3b 3b 3b 20 73 68 6f 75 6c 64 20 70 72 6f 64 75   ┆ -> (ledit bar) ;;; should produ┆
0x0740…0760 63 65 2e 2e 2e 0a 3b 3b 3b 20 28 70 72 6f 67 6e 29 20 28 70 72 6f 67 6e 20 74 61 67 20 28 73 65   ┆ce... ;;; (progn) (progn tag (se┆
0x0760…0780 74 71 20 74 61 67 20 22 62 61 72 22 29 20 28 26 67 6f 74 6f 2d 74 61 67 29 29 0a 3b 3b 3b 20 61   ┆tq tag "bar") (&goto-tag)) ;;; a┆
0x0780…07a0 6e 64 0a 3b 3b 3b 20 2d 3e 20 28 6c 65 64 69 74 20 62 61 72 20 70 70 29 0a 3b 3b 3b 20 73 68 6f   ┆nd ;;; -> (ledit bar pp) ;;; sho┆
0x07a0…07c0 75 6c 64 20 73 74 75 66 66 20 74 68 69 73 20 74 6f 20 65 6d 61 63 73 2e 2e 2e 0a 3b 3b 3b 20 28   ┆uld stuff this to emacs... ;;; (┆
0x07c0…07e0 70 72 6f 67 6e 29 20 28 73 77 69 74 63 68 2d 74 6f 2d 62 75 66 66 65 72 20 22 4c 45 44 49 54 22   ┆progn) (switch-to-buffer "LEDIT"┆
0x07e0…0800 29 20 28 65 72 61 73 65 2d 62 75 66 66 65 72 29 0a 3b 3b 3b 20 28 69 6e 73 65 72 74 2d 66 69 6c   ┆) (erase-buffer) ;;; (insert-fil┆
0x0800…0820 65 20 22 2f 74 6d 70 2f 77 61 6c 74 65 72 2e 6c 33 22 29 20 28 6c 69 73 70 2d 6d 6f 64 65 29 0a   ┆e "/tmp/walter.l3") (lisp-mode) ┆
0x0820…0840 3b 3b 3b 20 61 6e 64 20 74 68 69 73 2e 2e 2e 0a 3b 3b 3b 20 28 64 65 66 20 62 61 72 0a 3b 3b 3b   ┆;;; and this... ;;; (def bar ;;;┆
0x0840…0860 20 20 20 28 6c 61 6d 62 64 61 20 28 78 29 0a 3b 3b 3b 20 20 20 20 28 62 61 72 20 6e 6f 74 68 69   ┆   (lambda (x) ;;;    (bar nothi┆
0x0860…0880 6e 67 29 29 29 0a 3b 3b 3b 20 69 6e 74 6f 20 2a 4c 45 44 49 54 2a 0a 0a 28 64 65 66 75 6e 20 6c   ┆ng))) ;;; into *LEDIT*  (defun l┆
0x0880…08a0 65 64 69 74 2d 6f 75 74 70 75 74 20 28 61 72 67 73 29 0a 20 20 28 69 66 20 61 72 67 73 0a 20 20   ┆edit-output (args)   (if args   ┆
0x08a0…08c0 20 20 20 20 28 6c 65 74 20 28 28 6f 66 69 6c 65 20 28 6f 75 74 66 69 6c 65 20 2a 6c 65 64 69 74   ┆    (let ((ofile (outfile *ledit┆
0x08c0…08e0 2d 6f 75 74 66 69 6c 65 2a 29 29 29 0a 09 20 20 20 28 66 6f 72 6d 61 74 20 6f 66 69 6c 65 20 22   ┆-outfile*)))     (format ofile "┆
0x08e0…0900 28 70 72 6f 67 6e 29 22 29 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 74 68 69 73 20 69 73 20   ┆(progn)")             ; this is ┆
0x0900…0920 6e 65 63 65 73 73 61 72 79 2e 0a 0a 09 20 20 20 28 63 6f 6e 64 20 28 28 6e 75 6c 6c 20 28 63 64   ┆necessary.      (cond ((null (cd┆
0x0920…0940 72 20 61 72 67 73 29 29 20 3b 20 6e 6f 20 6b 65 79 77 6f 72 64 20 2d 3e 20 61 72 67 20 69 73 20   ┆r args)) ; no keyword -> arg is ┆
0x0940…0960 61 20 74 61 67 2e 0a 09 09 20 20 28 66 6f 72 6d 61 74 20 6f 66 69 6c 65 20 22 28 70 72 6f 67 6e   ┆a tag.     (format ofile "(progn┆
0x0960…0980 20 74 61 67 20 28 73 65 74 71 20 74 61 67 20 5c 22 7e 41 5c 22 7e 0a 09 09 09 20 20 20 20 20 20   ┆ tag (setq tag \"~A\"~          ┆
0x0980…09a0 20 20 20 28 26 67 6f 74 6f 2d 74 61 67 29 29 22 0a 09 09 09 20 20 20 20 20 20 20 20 20 28 63 61   ┆   (&goto-tag))"             (ca┆
0x09a0…09c0 72 20 61 72 67 73 29 29 29 0a 09 09 20 28 28 65 71 20 28 63 61 64 72 20 61 72 67 73 29 20 27 70   ┆r args)))    ((eq (cadr args) 'p┆
0x09c0…09e0 70 29 20 20 20 20 20 20 20 3b 20 70 70 2d 3e 20 70 70 20 66 69 72 73 74 20 61 72 67 20 74 6f 20   ┆p)       ; pp-> pp first arg to ┆
0x09e0…0a00 65 6d 61 63 73 0a 09 09 20 20 20 20 20 20 28 61 70 70 6c 79 20 27 70 70 20 60 28 28 7c 46 7c 20   ┆emacs         (apply 'pp `((|F| ┆
0x0a00…0a20 2c 2a 6c 65 64 69 74 2d 70 70 66 69 6c 65 2a 29 20 2c 28 63 61 72 20 61 72 67 73 29 29 29 0a 09   ┆,*ledit-ppfile*) ,(car args)))  ┆
0x0a20…0a40 09 20 20 20 20 20 20 28 66 6f 72 6d 61 74 20 6f 66 69 6c 65 20 22 28 73 77 69 74 63 68 2d 74 6f   ┆       (format ofile "(switch-to┆
0x0a40…0a60 2d 62 75 66 66 65 72 20 5c 22 4c 45 44 49 54 5c 22 29 7e 0a 09 09 09 09 20 20 20 20 20 28 65 72   ┆-buffer \"LEDIT\")~          (er┆
0x0a60…0a80 61 73 65 2d 62 75 66 66 65 72 29 22 29 0a 09 09 20 20 20 20 20 20 28 66 6f 72 6d 61 74 20 6f 66   ┆ase-buffer)")         (format of┆
0x0a80…0aa0 69 6c 65 20 22 28 69 6e 73 65 72 74 2d 66 69 6c 65 20 5c 22 7e 41 5c 22 29 22 0a 09 09 09 20 20   ┆ile "(insert-file \"~A\")"      ┆
0x0aa0…0ac0 20 20 20 20 20 20 20 20 20 20 20 2a 6c 65 64 69 74 2d 70 70 66 69 6c 65 2a 29 0a 09 09 20 20 20   ┆           *ledit-ppfile*)      ┆
0x0ac0…0ae0 20 20 20 28 66 6f 72 6d 61 74 20 6f 66 69 6c 65 20 22 28 6c 69 73 70 2d 6d 6f 64 65 29 22 29 29   ┆   (format ofile "(lisp-mode)"))┆
0x0ae0…0b00 0a 09 20 20 20 0a 09 09 20 28 74 20 28 66 6f 72 6d 61 74 20 74 20 22 7e 26 7e 41 20 2d 2d 20 75   ┆         (t (format t "~&~A -- u┆
0x0b00…0b20 6e 6b 6e 6f 77 6e 20 6f 70 74 69 6f 6e 7e 25 22 20 28 63 64 72 20 61 72 67 73 29 29 29 29 0a 09   ┆nknown option~%" (cdr args))))  ┆
0x0b20…0b40 20 20 20 28 63 6c 6f 73 65 20 6f 66 69 6c 65 29 29 29 29 0a 0a 3b 3b 3b 20 4c 49 53 5a 54 2a 0a   ┆   (close ofile))))  ;;; LISZT* ┆
0x0b40…0b60 3b 3b 3b 20 4e 65 65 64 20 74 68 69 73 20 67 75 79 20 74 6f 20 64 6f 20 63 6f 6d 70 69 6c 65 2d   ┆;;; Need this guy to do compile-┆
0x0b60…0b80 69 6e 70 75 74 2e 0a 3b 3b 3b 20 4c 69 73 7a 74 20 72 65 74 75 72 6e 73 20 30 20 69 66 20 61 6c   ┆input. ;;; Liszt returns 0 if al┆
0x0b80…0ba0 6c 20 77 61 73 20 77 65 6c 6c 2e 0a 3b 3b 3b 20 4e 6f 74 65 20 74 68 61 74 20 69 6e 20 6f 72 64   ┆l was well. ;;; Note that in ord┆
0x0ba0…0bc0 69 6e 61 72 79 20 75 73 65 20 74 68 65 20 75 73 65 72 20 77 69 6c 6c 20 68 61 76 65 20 74 6f 20   ┆inary use the user will have to ┆
0x0bc0…0be0 67 65 74 20 75 73 65 64 20 74 6f 20 6c 6f 6f 6b 69 6e 67 0a 3b 3b 3b 20 61 74 20 22 25 57 61 72   ┆get used to looking ;;; at "%War┆
0x0be0…0c00 6e 69 6e 67 3a 20 2e 2e 2e 20 43 6f 6d 70 69 6c 65 72 20 64 65 63 6c 61 72 65 64 20 2a 66 6f 6f   ┆ning: ... Compiler declared *foo┆
0x0c00…0c20 2a 20 73 70 65 63 69 61 6c 22 20 6d 65 73 73 61 67 65 73 2c 20 73 69 6e 63 65 0a 3b 3b 3b 20 79   ┆* special" messages, since ;;; y┆
0x0c20…0c40 6f 75 20 64 6f 6e 27 74 20 75 73 75 61 6c 6c 79 20 77 61 6e 74 20 74 6f 20 68 75 6e 74 20 61 72   ┆ou don't usually want to hunt ar┆
0x0c40…0c60 6f 75 6e 64 20 69 6e 20 79 6f 75 72 20 66 69 6c 65 2c 20 7a 61 70 20 69 6e 20 74 68 65 20 74 68   ┆ound in your file, zap in the th┆
0x0c60…0c80 65 0a 3b 3b 3b 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 2c 20 74 68 65 6e 20 67 6f 20 62 61 63 6b   ┆e ;;; declarations, then go back┆
0x0c80…0ca0 20 74 6f 20 77 68 61 74 20 79 6f 75 20 77 65 72 65 20 64 6f 69 6e 67 2e 0a 3b 3b 3b 20 46 6f 72   ┆ to what you were doing. ;;; For┆
0x0ca0…0cc0 74 75 6e 61 74 65 6c 79 20 74 68 69 73 20 64 6f 65 73 6e 27 74 20 63 61 75 73 65 20 74 68 65 20   ┆tunately this doesn't cause the ┆
0x0cc0…0ce0 63 6f 6d 70 69 6c 65 72 20 74 6f 20 62 6f 6d 62 2e 0a 3b 3b 3b 20 53 6f 6d 65 20 73 6c 65 65 70   ┆compiler to bomb. ;;; Some sleep┆
0x0ce0…0d00 6c 65 73 73 20 6e 69 67 68 74 20 49 20 77 69 6c 6c 20 74 68 69 6e 6b 20 6f 66 20 61 20 77 61 79   ┆less night I will think of a way┆
0x0d00…0d20 20 74 6f 20 67 65 74 20 61 72 6f 75 6e 64 20 74 68 69 73 2e 0a 0a 28 64 65 66 75 6e 20 6c 69 73   ┆ to get around this.  (defun lis┆
0x0d20…0d40 7a 74 2a 20 28 26 72 65 73 74 20 61 72 67 73 29 0a 20 20 20 28 61 70 70 6c 79 20 23 27 6c 69 73   ┆zt* (&rest args)    (apply #'lis┆
0x0d40…0d60 7a 74 20 61 72 67 73 29 29 0a 0a 3b 3b 3b 20 4c 45 44 49 54 2d 49 4e 50 55 54 0a 3b 3b 3b 20 41   ┆zt args))  ;;; LEDIT-INPUT ;;; A┆
0x0d60…0d80 6c 74 68 6f 75 67 68 20 74 68 65 72 65 20 61 72 65 20 74 77 6f 20 63 61 73 65 73 20 68 65 72 65   ┆lthough there are two cases here┆
0x0d80…0da0 2c 20 69 6e 20 70 72 61 63 74 69 63 65 0a 3b 3b 3b 20 69 74 20 69 73 20 6e 65 76 65 72 20 74 68   ┆, in practice ;;; it is never th┆
0x0da0…0dc0 65 20 63 61 73 65 20 74 68 61 74 20 74 68 65 72 65 20 69 73 20 62 6f 74 68 20 69 6e 70 75 74 20   ┆e case that there is both input ┆
0x0dc0…0de0 74 6f 20 62 65 0a 3b 3b 3b 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 6e 64 20 69 6e 70 75 74 20   ┆to be ;;; interpreted and input ┆
0x0de0…0e00 74 6f 20 62 65 20 63 6f 6d 70 69 6c 65 64 2e 0a 0a 28 64 65 66 75 6e 20 6c 65 64 69 74 2d 69 6e   ┆to be compiled.  (defun ledit-in┆
0x0e00…0e20 70 75 74 20 28 29 0a 20 20 28 69 66 20 28 70 72 6f 62 65 66 20 2a 6c 65 64 69 74 2d 6c 69 73 7a   ┆put ()   (if (probef *ledit-lisz┆
0x0e20…0e40 74 66 69 6c 65 2a 29 0a 20 20 20 20 20 20 28 63 6f 6e 64 20 28 28 67 65 74 64 20 23 27 6c 69 73   ┆tfile*)       (cond ((getd #'lis┆
0x0e40…0e60 7a 74 29 0a 09 20 20 20 20 20 28 66 6f 72 6d 61 74 20 74 20 22 3b 43 6f 6d 70 69 6c 69 6e 67 20   ┆zt)       (format t ";Compiling ┆
0x0e60…0e80 4c 45 44 49 54 3a 22 29 0a 09 20 20 20 20 20 28 61 6e 64 20 28 7a 65 72 6f 70 20 28 6c 69 73 7a   ┆LEDIT:")       (and (zerop (lisz┆
0x0e80…0ea0 74 2a 20 2a 6c 65 64 69 74 2d 6c 69 73 7a 74 66 69 6c 65 2a 20 27 2d 6f 20 2a 6c 65 64 69 74 2d   ┆t* *ledit-lisztfile* '-o *ledit-┆
0x0ea0…0ec0 6f 62 6a 66 69 6c 65 2a 29 29 0a 09 09 20 20 28 6c 6f 61 64 20 2a 6c 65 64 69 74 2d 6f 62 6a 66   ┆objfile*))     (load *ledit-objf┆
0x0ec0…0ee0 69 6c 65 2a 29 29 29 0a 09 20 20 20 20 28 74 20 28 66 6f 72 6d 61 74 20 74 20 22 3b 43 61 6e 27   ┆ile*)))      (t (format t ";Can'┆
0x0ee0…0f00 74 20 63 6f 6d 70 69 6c 65 20 4c 45 44 49 54 3a 20 4e 6f 20 6c 69 73 7a 74 2e 7e 25 3b 52 65 61   ┆t compile LEDIT: No liszt.~%;Rea┆
0x0f00…0f20 64 69 6e 67 20 69 6e 73 74 65 61 64 3a 22 29 0a 09 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 69   ┆ding instead:")         (let ((i┆
0x0f20…0f40 66 69 6c 65 20 28 69 6e 66 69 6c 65 20 2a 6c 65 64 69 74 2d 6c 69 73 7a 74 66 69 6c 65 2a 29 29   ┆file (infile *ledit-lisztfile*))┆
0x0f40…0f60 29 0a 09 09 20 28 6c 65 64 69 74 2d 6c 6f 61 64 20 69 66 69 6c 65 29 0a 09 09 20 28 63 6c 6f 73   ┆)    (ledit-load ifile)    (clos┆
0x0f60…0f80 65 20 69 66 69 6c 65 29 29 29 29 29 0a 0a 20 20 28 69 66 20 28 70 72 6f 62 65 66 20 2a 6c 65 64   ┆e ifile)))))    (if (probef *led┆
0x0f80…0fa0 69 74 2d 69 6e 66 69 6c 65 2a 29 0a 20 20 20 20 20 20 28 6c 65 74 20 28 28 69 66 69 6c 65 20 28   ┆it-infile*)       (let ((ifile (┆
0x0fa0…0fc0 69 6e 66 69 6c 65 20 2a 6c 65 64 69 74 2d 69 6e 66 69 6c 65 2a 29 29 29 0a 09 28 66 6f 72 6d 61   ┆infile *ledit-infile*)))  (forma┆
0x0fc0…0fe0 74 20 74 20 22 3b 52 65 61 64 69 6e 67 20 66 72 6f 6d 20 4c 45 44 49 54 3a 7e 25 22 29 0a 09 28   ┆t t ";Reading from LEDIT:~%")  (┆
0x0fe0…1000 6c 65 64 69 74 2d 6c 6f 61 64 20 69 66 69 6c 65 29 0a 09 28 63 6c 6f 73 65 20 69 66 69 6c 65 29   ┆ledit-load ifile)  (close ifile)┆
0x1000…1020 29 29 29 0a 0a 3b 3b 3b 20 4c 45 44 49 54 2d 4c 4f 41 44 0a 3b 3b 3b 20 41 20 67 65 6e 65 72 61   ┆)))  ;;; LEDIT-LOAD ;;; A genera┆
0x1020…1040 6c 6c 79 20 75 73 65 66 75 6c 20 66 6f 72 6d 20 6f 66 20 6c 6f 61 64 0a 0a 28 64 65 66 75 6e 20   ┆lly useful form of load  (defun ┆
0x1040…1060 6c 65 64 69 74 2d 6c 6f 61 64 20 28 69 66 69 6c 65 29 0a 20 20 28 6c 65 74 20 28 28 65 6f 66 2d   ┆ledit-load (ifile)   (let ((eof-┆
0x1060…1080 66 6f 72 6d 20 28 6c 69 73 74 20 27 65 6f 66 2d 66 6f 72 6d 29 29 29 0a 20 20 20 20 28 64 6f 20   ┆form (list 'eof-form)))     (do ┆
0x1080…10a0 28 28 66 6f 72 6d 20 28 72 65 61 64 20 69 66 69 6c 65 20 65 6f 66 2d 66 6f 72 6d 29 20 28 72 65   ┆((form (read ifile eof-form) (re┆
0x10a0…10c0 61 64 20 69 66 69 6c 65 20 65 6f 66 2d 66 6f 72 6d 29 29 29 0a 20 20 20 20 20 20 28 28 65 71 20   ┆ad ifile eof-form)))       ((eq ┆
0x10c0…10e0 66 6f 72 6d 20 65 6f 66 2d 66 6f 72 6d 29 29 0a 20 20 20 20 20 20 28 66 6f 72 6d 61 74 20 74 20   ┆form eof-form))       (format t ┆
0x10e0…1100 22 3b 20 20 7e 41 7e 25 22 20 28 65 76 61 6c 20 66 6f 72 6d 29 29 29 29 29 0a 0a 28 73 65 74 73   ┆";  ~A~%" (eval form)))))  (sets┆
0x1100…1120 79 6e 74 61 78 20 23 2f 05 20 27 6d 61 63 72 6f 20 27 6c 65 64 69 74 29 20 20 20 20 20 20 20 20   ┆yntax #/  'macro 'ledit)        ┆
0x1120…1140 20 20 20 20 20 20 20 20 20 20 3b 20 6d 61 6b 65 20 5e 45 20 3d 20 28 6c 65 64 69 74 29 3c 72 65   ┆          ; make ^E = (ledit)<re┆
0x1140…1160 74 75 72 6e 3e 0a 0a 3b 3b 20 6d 6f 72 65 20 72 6f 62 75 73 74 20 76 65 72 73 69 6f 6e 20 6f 66   ┆turn>  ;; more robust version of┆
0x1160…1180 20 74 68 65 20 63 20 66 75 6e 63 74 69 6f 6e 20 73 65 74 5f 70 72 6f 63 5f 73 74 72 2e 20 44 6f   ┆ the c function set_proc_str. Do┆
0x1180…11a0 65 73 20 61 72 67 75 6d 65 6e 74 20 63 68 65 63 6b 69 6e 67 2e 0a 3b 3b 20 73 65 74 5f 70 72 6f   ┆es argument checking. ;; set_pro┆
0x11a0…11c0 63 5f 73 74 72 20 73 65 74 73 20 74 68 65 20 73 74 72 69 6e 67 20 74 68 61 74 20 69 73 20 73 74   ┆c_str sets the string that is st┆
0x11c0…11e0 75 66 66 65 64 20 74 6f 20 74 68 65 20 74 74 79 20 61 66 74 65 72 20 66 72 61 6e 7a 20 70 61 75   ┆uffed to the tty after franz pau┆
0x11e0…1200 73 65 73 0a 3b 3b 20 61 6e 64 20 74 68 65 20 63 73 68 20 77 61 6b 65 73 20 75 70 2e 20 49 74 20   ┆ses ;; and the csh wakes up. It ┆
0x1200…1220 69 73 20 75 73 75 61 6c 6c 79 20 22 25 65 6d 61 63 73 22 20 6f 72 20 22 25 76 65 6d 61 63 73 22   ┆is usually "%emacs" or "%vemacs"┆
0x1220…1240 20 6f 72 20 22 25 3f 65 6d 61 63 73 22 0a 28 64 65 66 75 6e 20 73 65 74 2d 70 72 6f 63 2d 73 74   ┆ or "%?emacs" (defun set-proc-st┆
0x1240…1260 72 20 28 61 72 67 29 0a 20 20 28 69 66 20 28 73 74 72 69 6e 67 70 20 61 72 67 29 0a 20 20 20 20   ┆r (arg)   (if (stringp arg)     ┆
0x1260…1280 28 73 65 74 5f 70 72 6f 63 5f 73 74 72 20 61 72 67 29 0a 20 20 20 20 28 69 66 20 28 73 79 6d 62   ┆(set_proc_str arg)     (if (symb┆
0x1280…12a0 6f 6c 70 20 61 72 67 29 0a 20 20 20 20 20 20 28 73 65 74 5f 70 72 6f 63 5f 73 74 72 20 28 67 65   ┆olp arg)       (set_proc_str (ge┆
0x12a0…12c0 74 2d 70 6e 61 6d 65 20 61 72 67 29 29 0a 20 20 20 20 20 20 28 65 72 72 6f 72 20 61 72 67 20 22   ┆t-pname arg))       (error arg "┆
0x12c0…12e0 20 69 73 20 69 6c 6c 65 67 61 6c 20 61 72 67 75 6d 65 6e 74 20 74 6f 20 73 65 74 2d 70 72 6f 63   ┆ is illegal argument to set-proc┆
0x12e0…12ea 2d 73 74 72 22 29 29 29 29 0a   ┆-str")))) ┆