home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-29 | 5.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 33 3a 35 35 3a 34 | 35 20 31 39 39 35 0a 3b | 13:55:4|5 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 64 69 | 72 65 64 2f 64 69 72 65 |/lisp/di|red/dire|
|00000090| 64 2d 74 72 6e 73 2e 65 | 6c 0a 3b 3b 3b 20 65 6d |d-trns.e|l.;;; em|
|000000a0| 61 63 73 20 76 65 72 73 | 69 6f 6e 20 31 39 2e 31 |acs vers|ion 19.1|
|000000b0| 33 20 58 45 6d 61 63 73 | 20 4c 75 63 69 64 2e 0a |3 XEmacs| Lucid..|
|000000c0| 3b 3b 3b 20 62 79 74 65 | 63 6f 6d 70 20 76 65 72 |;;; byte|comp ver|
|000000d0| 73 69 6f 6e 20 32 2e 32 | 35 3b 20 31 2d 53 65 70 |sion 2.2|5; 1-Sep|
|000000e0| 2d 39 34 2e 0a 3b 3b 3b | 20 6f 70 74 69 6d 69 7a |-94..;;;| optimiz|
|000000f0| 61 74 69 6f 6e 20 69 73 | 20 6f 6e 2e 0a 3b 3b 3b |ation is| on..;;;|
|00000100| 20 74 68 69 73 20 66 69 | 6c 65 20 75 73 65 73 20 | this fi|le uses |
|00000110| 6f 70 63 6f 64 65 73 20 | 77 68 69 63 68 20 64 6f |opcodes |which do|
|00000120| 20 6e 6f 74 20 65 78 69 | 73 74 20 69 6e 20 45 6d | not exi|st in Em|
|00000130| 61 63 73 20 31 38 2e 0a | 0a 28 69 66 20 28 61 6e |acs 18..|.(if (an|
|00000140| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 6d 61 63 73 |d (bound|p 'emacs|
|00000150| 2d 76 65 72 73 69 6f 6e | 29 0a 09 20 28 6f 72 20 |-version|).. (or |
|00000160| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 70 |(and (bo|undp 'ep|
|00000170| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 20 65 70 |och::ver|sion) ep|
|00000180| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 0a 09 20 |och::ver|sion).. |
|00000190| 20 20 20 20 28 73 74 72 | 69 6e 67 2d 6c 65 73 73 | (str|ing-less|
|000001a0| 70 20 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 20 |p emacs-|version |
|000001b0| 22 31 39 22 29 29 29 0a | 20 20 20 20 28 65 72 72 |"19"))).| (err|
|000001c0| 6f 72 20 22 54 68 69 73 | 20 66 69 6c 65 20 77 61 |or "This| file wa|
|000001d0| 73 20 63 6f 6d 70 69 6c | 65 64 20 66 6f 72 20 45 |s compil|ed for E|
|000001e0| 6d 61 63 73 20 31 39 2e | 22 29 29 0a 0a 28 64 65 |macs 19.|"))..(de|
|000001f0| 66 76 61 72 20 64 69 72 | 65 64 2d 74 72 61 6e 73 |fvar dir|ed-trans|
|00000200| 2d 6d 61 70 20 28 6d 61 | 6b 65 2d 6b 65 79 6d 61 |-map (ma|ke-keyma|
|00000210| 70 29 20 22 5c 0a 41 72 | 72 61 79 20 74 68 61 74 |p) "\.Ar|ray that|
|00000220| 20 61 73 73 6f 63 69 61 | 74 65 73 20 6b 65 79 73 | associa|tes keys|
|00000230| 20 77 69 74 68 20 66 69 | 6c 65 20 74 72 61 6e 73 | with fi|le trans|
|00000240| 66 6f 72 6d 65 72 20 66 | 75 6e 63 74 69 6f 6e 73 |former f|unctions|
|00000250| 22 29 0a 28 66 73 65 74 | 20 27 64 69 72 65 64 2d |").(fset| 'dired-|
|00000260| 74 72 61 6e 73 2d 64 65 | 66 69 6e 65 20 27 28 6d |trans-de|fine '(m|
|00000270| 61 63 72 6f 20 2e 20 23 | 5b 28 63 68 61 72 20 26 |acro . #|[(char &|
|00000280| 72 65 73 74 20 62 6f 64 | 79 29 20 22 08 3b ac 84 |rest bod|y) ".;..|
|00000290| c1 08 21 10 c2 c3 08 c4 | c5 c6 0e 07 5c 22 44 46 |..!.....|....\"DF|
|000002a0| 87 22 20 5b 63 68 61 72 | 20 63 68 61 72 2d 74 6f |." [char| char-to|
|000002b0| 2d 73 74 72 69 6e 67 20 | 64 65 66 69 6e 65 2d 6b |-string |define-k|
|000002c0| 65 79 20 64 69 72 65 64 | 2d 74 72 61 6e 73 2d 6d |ey dired|-trans-m|
|000002d0| 61 70 20 66 75 6e 63 74 | 69 6f 6e 20 61 70 70 65 |ap funct|ion appe|
|000002e0| 6e 64 20 28 6c 61 6d 62 | 64 61 20 28 66 69 6c 65 |nd (lamb|da (file|
|000002f0| 29 29 20 62 6f 64 79 5d | 20 37 20 22 5c 0a 4d 61 |)) body]| 7 "\.Ma|
|00000300| 63 72 6f 20 74 68 61 74 | 20 61 73 73 69 67 6e 73 |cro that| assigns|
|00000310| 20 74 68 65 20 74 72 61 | 6e 73 66 6f 72 6d 65 72 | the tra|nsformer|
|00000320| 20 66 75 6e 63 74 69 6f | 6e 20 28 6c 61 6d 62 64 | functio|n (lambd|
|00000330| 61 20 28 66 69 6c 65 29 | 20 42 4f 44 59 29 20 74 |a (file)| BODY) t|
|00000340| 6f 20 0a 43 48 41 52 20 | 28 61 20 63 68 61 72 61 |o .CHAR |(a chara|
|00000350| 63 74 65 72 20 6f 72 20 | 73 74 72 69 6e 67 29 2e |cter or |string).|
|00000360| 20 42 4f 44 59 20 6d 75 | 73 74 20 72 65 74 75 72 | BODY mu|st retur|
|00000370| 6e 20 61 20 73 74 72 69 | 6e 67 20 28 74 68 65 20 |n a stri|ng (the |
|00000380| 74 72 61 6e 73 66 6f 72 | 6d 65 64 0a 66 69 6c 65 |transfor|med.file|
|00000390| 20 6f 72 20 77 68 61 74 | 65 76 65 72 2e 20 54 68 | or what|ever. Th|
|000003a0| 69 73 20 6d 61 63 72 6f | 20 61 6c 6c 6f 77 73 20 |is macro| allows |
|000003b0| 65 61 73 79 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |easy def|inition |
|000003c0| 6f 66 20 75 73 65 72 20 | 73 70 65 63 69 66 69 63 |of user |specific|
|000003d0| 0a 74 72 61 6e 73 66 6f | 72 6d 61 74 69 6f 6e 20 |.transfo|rmation |
|000003e0| 66 75 6e 63 74 69 6f 6e | 73 2e 22 5d 29 29 0a 28 |function|s."])).(|
|000003f0| 66 73 65 74 20 27 64 69 | 72 65 64 2d 74 72 61 6e |fset 'di|red-tran|
|00000400| 73 2d 72 75 6e 20 23 5b | 28 74 72 61 6e 73 66 6f |s-run #[|(transfo|
|00000410| 72 6d 65 72 73 20 66 69 | 6c 65 29 20 22 c0 c1 5c |rmers fi|le) "..\|
|00000420| 6e c3 23 87 22 20 5b 6d | 61 70 63 6f 6e 63 61 74 |n.#." [m|apconcat|
|00000430| 20 23 5b 28 74 72 61 6e | 73 66 6f 72 6d 65 72 29 | #[(tran|sformer)|
|00000440| 20 22 c0 09 21 11 c2 0b | 09 5c 22 ae 84 c4 c5 09 | "..!...|.\".....|
|00000450| 5c 22 0e 06 21 87 22 20 | 5b 63 68 61 72 2d 74 6f |\"..!." |[char-to|
|00000460| 2d 73 74 72 69 6e 67 20 | 74 72 61 6e 73 66 6f 72 |-string |transfor|
|00000470| 6d 65 72 20 6c 6f 6f 6b | 75 70 2d 6b 65 79 20 64 |mer look|up-key d|
|00000480| 69 72 65 64 2d 74 72 61 | 6e 73 2d 6d 61 70 20 65 |ired-tra|ns-map e|
|00000490| 72 72 6f 72 20 22 55 6e | 64 65 66 69 6e 65 64 20 |rror "Un|defined |
|000004a0| 74 72 61 6e 73 66 6f 6d | 65 72 3a 20 25 73 22 20 |transfom|er: %s" |
|000004b0| 66 69 6c 65 5d 20 33 5d | 20 74 72 61 6e 73 66 6f |file] 3]| transfo|
|000004c0| 72 6d 65 72 73 20 6e 69 | 6c 5d 20 34 20 22 5c 0a |rmers ni|l] 4 "\.|
|000004d0| 41 70 70 6c 69 65 73 20 | 65 61 63 68 20 74 72 61 |Applies |each tra|
|000004e0| 6e 73 66 6f 72 6d 65 72 | 20 73 75 70 70 6c 69 65 |nsformer| supplie|
|000004f0| 64 20 69 6e 20 74 68 65 | 20 73 74 72 69 6e 67 20 |d in the| string |
|00000500| 54 52 41 4e 53 46 4f 52 | 4d 45 52 53 20 69 6e 20 |TRANSFOR|MERS in |
|00000510| 73 65 71 75 65 6e 63 65 | 0a 74 6f 20 46 49 4c 45 |sequence|.to FILE|
|00000520| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 74 68 65 | and ret|urns the|
|00000530| 20 63 6f 6e 63 61 74 65 | 6e 61 74 69 6f 6e 20 6f | concate|nation o|
|00000540| 66 20 74 68 65 20 72 65 | 73 75 6c 74 73 2e 22 5d |f the re|sults."]|
|00000550| 29 0a 28 64 65 66 76 61 | 72 20 64 69 72 65 64 2d |).(defva|r dired-|
|00000560| 74 72 61 6e 73 2d 72 65 | 2d 65 78 74 20 22 5c 5c |trans-re|-ext "\\|
|00000570| 2e 5b 5e 2e 5d 2a 5c 5c | 28 5c 5c 2e 5c 5c 28 5c |.[^.]*\\|(\\.\\(\|
|00000580| 5c 28 67 3f 7a 5c 5c 29 | 5c 5c 7c 5a 5c 5c 29 5c |\(g?z\\)|\\|Z\\)\|
|00000590| 5c 29 3f 24 22 20 22 5c | 0a 54 68 65 20 70 61 72 |\)?$" "\|.The par|
|000005a0| 74 20 6f 66 20 61 20 66 | 69 6c 65 6e 61 6d 65 20 |t of a f|ilename |
|000005b0| 6d 61 74 63 68 69 6e 67 | 20 74 68 69 73 20 72 65 |matching| this re|
|000005c0| 67 65 78 70 20 77 69 6c | 6c 20 62 65 20 76 69 65 |gexp wil|l be vie|
|000005d0| 77 65 64 20 61 73 20 65 | 78 74 65 6e 73 69 6f 6e |wed as e|xtension|
|000005e0| 22 29 0a 28 66 73 65 74 | 20 27 64 69 72 65 64 2d |").(fset| 'dired-|
|000005f0| 74 72 61 6e 73 2d 69 6e | 69 74 20 23 5b 6e 69 6c |trans-in|it #[nil|
|00000600| 20 22 c0 09 c2 c3 23 88 | c0 09 c4 c5 23 88 c0 09 | "....#.|....#...|
|00000610| c6 c7 23 88 c0 09 c8 c9 | 23 88 c0 09 ca cb 23 88 |..#.....|#.....#.|
|00000620| c0 09 cc cd 23 88 c0 09 | ce cf 23 87 22 20 5b 64 |....#...|..#." [d|
|00000630| 65 66 69 6e 65 2d 6b 65 | 79 20 64 69 72 65 64 2d |efine-ke|y dired-|
|00000640| 74 72 61 6e 73 2d 6d 61 | 70 20 22 2a 22 20 28 6c |trans-ma|p "*" (l|
|00000650| 61 6d 62 64 61 20 28 66 | 69 6c 65 29 20 66 69 6c |ambda (f|ile) fil|
|00000660| 65 29 20 22 6e 22 20 23 | 5b 28 66 69 6c 65 29 20 |e) "n" #|[(file) |
|00000670| 22 c0 09 21 ae 81 c2 87 | 22 20 5b 66 69 6c 65 2d |"..!....|" [file-|
|00000680| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|00000690| 79 20 66 69 6c 65 20 22 | 22 5d 20 32 5d 20 22 64 |y file "|"] 2] "d|
|000006a0| 22 20 23 5b 28 66 69 6c | 65 29 20 22 c0 09 21 ae |" #[(fil|e) "..!.|
|000006b0| 81 c2 87 22 20 5b 66 69 | 6c 65 2d 6e 61 6d 65 2d |..." [fi|le-name-|
|000006c0| 64 69 72 65 63 74 6f 72 | 79 20 66 69 6c 65 20 22 |director|y file "|
|000006d0| 22 5d 20 32 5d 20 22 62 | 22 20 23 5b 28 66 69 6c |"] 2] "b|" #[(fil|
|000006e0| 65 29 20 22 c0 c1 5c 6e | 5c 22 89 12 c3 c4 0d 5c |e) "..\n|\".....\|
|000006f0| 6e 5c 22 4f 87 22 20 5b | 64 69 72 65 64 2d 74 72 |n\"O." [|dired-tr|
|00000700| 61 6e 73 2d 72 75 6e 20 | 22 6e 22 20 66 69 6c 65 |ans-run |"n" file|
|00000710| 20 30 20 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 | 0 strin|g-match |
|00000720| 64 69 72 65 64 2d 74 72 | 61 6e 73 2d 72 65 2d 65 |dired-tr|ans-re-e|
|00000730| 78 74 5d 20 36 5d 20 22 | 65 22 20 23 5b 28 66 69 |xt] 6] "|e" #[(fi|
|00000740| 6c 65 29 20 22 c0 09 5c | 6e 5c 22 89 1b ab 86 5c |le) "..\|n\"....\|
|00000750| 6e 0b c4 4f aa 81 c5 29 | 87 22 20 5b 73 74 72 69 |n..O...)|." [stri|
|00000760| 6e 67 2d 6d 61 74 63 68 | 20 64 69 72 65 64 2d 74 |ng-match| dired-t|
|00000770| 72 61 6e 73 2d 72 65 2d | 65 78 74 20 66 69 6c 65 |rans-re-|ext file|
|00000780| 20 65 20 6e 69 6c 20 22 | 22 5d 20 34 5d 20 22 76 | e nil "|"] 4] "v|
|00000790| 22 20 23 5b 28 66 69 6c | 65 29 20 22 c0 c1 5c 6e |" #[(fil|e) "..\n|
|000007a0| 5c 22 89 12 c3 c4 c5 5c | 6e 5c 22 4f 87 22 20 5b |\".....\|n\"O." [|
|000007b0| 64 69 72 65 64 2d 74 72 | 61 6e 73 2d 72 75 6e 20 |dired-tr|ans-run |
|000007c0| 22 6e 22 20 66 69 6c 65 | 20 30 20 73 74 72 69 6e |"n" file| 0 strin|
|000007d0| 67 2d 6d 61 74 63 68 20 | 22 2c 76 24 22 5d 20 36 |g-match |",v$"] 6|
|000007e0| 5d 20 22 7a 22 20 23 5b | 28 66 69 6c 65 29 20 22 |] "z" #[|(file) "|
|000007f0| c0 c1 5c 6e 5c 22 89 12 | c3 c4 c5 5c 6e 5c 22 4f |..\n\"..|...\n\"O|
|00000800| 87 22 20 5b 64 69 72 65 | 64 2d 74 72 61 6e 73 2d |." [dire|d-trans-|
|00000810| 72 75 6e 20 22 6e 22 20 | 66 69 6c 65 20 30 20 73 |run "n" |file 0 s|
|00000820| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 5c 5c 2e |tring-ma|tch "\\.|
|00000830| 5c 5c 28 5c 5c 28 67 3f | 7a 5c 5c 29 5c 5c 7c 5a |\\(\\(g?|z\\)\\|Z|
|00000840| 5c 5c 29 24 22 5d 20 36 | 5d 5d 20 34 20 22 5c 0a |\\)$"] 6|]] 4 "\.|
|00000850| 44 65 66 69 6e 65 73 20 | 61 20 62 61 73 69 63 20 |Defines |a basic |
|00000860| 73 65 74 20 6f 66 20 75 | 73 65 66 75 6c 20 74 72 |set of u|seful tr|
|00000870| 61 6e 73 66 6f 72 6d 65 | 72 73 2e 0a 0a 2a 20 20 |ansforme|rs...* |
|00000880| 69 73 20 61 20 6e 6f 6f | 70 20 74 68 61 74 20 72 |is a noo|p that r|
|00000890| 65 74 75 72 6e 73 20 74 | 68 65 20 75 6e 6d 6f 64 |eturns t|he unmod|
|000008a0| 69 66 69 65 64 20 66 69 | 6c 65 6e 61 6d 65 20 28 |ified fi|lename (|
|000008b0| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 20 5b 64 |equivale|nt to [d|
|000008c0| 62 65 5d 29 2e 0a 6e 20 | 20 72 65 74 75 72 6e 73 |be])..n | returns|
|000008d0| 20 74 68 65 20 4e 61 6d | 65 20 63 6f 6d 70 6f 6e | the Nam|e compon|
|000008e0| 65 6e 74 20 6f 66 20 61 | 20 66 69 6c 65 6e 61 6d |ent of a| filenam|
|000008f0| 65 20 77 69 74 68 6f 75 | 74 20 64 69 72 65 63 74 |e withou|t direct|
|00000900| 6f 72 79 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 0a |ory info|rmation.|
|00000910| 64 20 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 44 |d retur|ns the D|
|00000920| 69 72 65 63 74 6f 72 79 | 20 63 6f 6d 70 6f 6e 65 |irectory| compone|
|00000930| 6e 74 20 6f 66 20 61 20 | 66 69 6c 65 6e 61 6d 65 |nt of a |filename|
|00000940| 0a 62 20 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |.b retu|rns the |
|00000950| 42 61 73 65 6e 61 6d 65 | 20 6f 66 20 61 20 66 69 |Basename| of a fi|
|00000960| 6c 65 6e 61 6d 65 2c 20 | 69 2e 65 2e 2c 20 74 68 |lename, |i.e., th|
|00000970| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 66 69 |e name o|f the fi|
|00000980| 6c 65 20 77 69 74 68 6f | 75 74 0a 20 20 20 64 69 |le witho|ut. di|
|00000990| 72 65 63 74 6f 72 79 20 | 61 6e 64 20 65 78 74 65 |rectory |and exte|
|000009a0| 6e 73 69 6f 6e 20 28 73 | 65 65 20 64 69 72 65 64 |nsion (s|ee dired|
|000009b0| 2d 74 72 61 6e 73 2d 72 | 65 2d 65 78 74 29 0a 20 |-trans-r|e-ext). |
|000009c0| 20 20 41 20 62 61 73 65 | 6e 61 6d 65 20 77 69 74 | A base|name wit|
|000009d0| 68 20 64 69 72 65 63 74 | 6f 72 79 20 63 6f 6d 70 |h direct|ory comp|
|000009e0| 6f 6e 65 6e 74 20 63 61 | 6e 20 62 65 20 6f 62 74 |onent ca|n be obt|
|000009f0| 61 69 6e 65 64 20 62 79 | 20 5b 64 62 5d 2e 0a 65 |ained by| [db]..e|
|00000a00| 20 20 72 65 74 75 72 6e | 73 20 74 68 65 20 45 78 | return|s the Ex|
|00000a10| 74 65 6e 73 69 6f 6e 20 | 6f 66 20 61 20 66 69 6c |tension |of a fil|
|00000a20| 65 6e 61 6d 65 20 28 69 | 2e 65 2e 2c 20 77 68 61 |ename (i|.e., wha|
|00000a30| 74 65 76 65 72 0a 20 20 | 20 64 69 72 65 64 2d 74 |tever. | dired-t|
|00000a40| 72 61 6e 73 2d 72 65 2d | 65 78 74 20 73 70 6c 69 |rans-re-|ext spli|
|00000a50| 74 73 20 6f 66 66 29 0a | 76 20 20 72 65 74 75 72 |ts off).|v retur|
|00000a60| 6e 73 20 61 20 66 69 6c | 65 20 77 69 74 68 6f 75 |ns a fil|e withou|
|00000a70| 74 20 64 69 72 65 63 74 | 6f 72 79 20 61 6e 64 20 |t direct|ory and |
|00000a80| 77 69 74 68 6f 75 74 20 | 2c 76 20 73 75 66 66 69 |without |,v suffi|
|00000a90| 78 65 73 20 69 66 20 61 | 6e 79 2e 0a 7a 20 20 72 |xes if a|ny..z r|
|00000aa0| 65 74 75 72 6e 73 20 61 | 20 66 69 6c 65 20 77 69 |eturns a| file wi|
|00000ab0| 74 68 6f 75 74 20 64 69 | 72 65 63 74 6f 72 79 20 |thout di|rectory |
|00000ac0| 61 6e 64 20 77 69 74 68 | 6f 75 74 20 2e 5a 20 2e |and with|out .Z .|
|00000ad0| 7a 20 2e 67 7a 20 73 75 | 66 66 69 78 65 73 20 69 |z .gz su|ffixes i|
|00000ae0| 66 20 61 6e 79 2e 22 5d | 29 0a 28 64 69 72 65 64 |f any."]|).(dired|
|00000af0| 2d 74 72 61 6e 73 2d 69 | 6e 69 74 29 0a 28 66 73 |-trans-i|nit).(fs|
|00000b00| 65 74 20 27 64 69 72 65 | 64 2d 74 72 61 6e 73 2d |et 'dire|d-trans-|
|00000b10| 6d 6b 6c 69 73 74 20 23 | 5b 28 66 69 6c 65 73 20 |mklist #|[(files |
|00000b20| 26 6f 70 74 69 6f 6e 61 | 6c 20 74 72 61 6e 73 66 |&optiona|l transf|
|00000b30| 6f 72 6d 65 72 73 29 20 | 22 08 3a ac 83 08 43 10 |ormers) |".:...C.|
|00000b40| 09 ac 82 c2 11 c3 c4 08 | 0d 23 1e 06 08 47 c7 56 |........|.#...G.V|
|00000b50| ab 89 0e 08 0e 06 0e 09 | 51 aa 82 0e 06 29 87 22 |........|Q....)."|
|00000b60| 20 5b 66 69 6c 65 73 20 | 74 72 61 6e 73 66 6f 72 | [files |transfor|
|00000b70| 6d 65 72 73 20 22 2a 22 | 20 6d 61 70 63 6f 6e 63 |mers "*"| mapconc|
|00000b80| 61 74 20 23 5b 28 66 69 | 6c 65 29 20 22 c0 c1 5c |at #[(fi|le) "..\|
|00000b90| 6e 0b 5c 22 21 87 22 20 | 5b 73 68 65 6c 6c 2d 71 |n.\"!." |[shell-q|
|00000ba0| 75 6f 74 65 20 64 69 72 | 65 64 2d 74 72 61 6e 73 |uote dir|ed-trans|
|00000bb0| 2d 72 75 6e 20 74 72 61 | 6e 73 66 6f 72 6d 65 72 |-run tra|nsformer|
|00000bc0| 73 20 66 69 6c 65 5d 20 | 34 5d 20 64 69 72 65 64 |s file] |4] dired|
|00000bd0| 2d 6d 61 72 6b 2d 73 65 | 70 61 72 61 74 6f 72 20 |-mark-se|parator |
|00000be0| 66 69 6c 65 2d 6c 69 73 | 74 20 31 20 64 69 72 65 |file-lis|t 1 dire|
|00000bf0| 64 2d 6d 61 72 6b 2d 70 | 72 65 66 69 78 20 64 69 |d-mark-p|refix di|
|00000c00| 72 65 64 2d 6d 61 72 6b | 2d 70 6f 73 74 66 69 78 |red-mark|-postfix|
|00000c10| 5d 20 34 20 22 5c 0a 54 | 61 6b 65 73 20 61 20 6c |] 4 "\.T|akes a l|
|00000c20| 69 73 74 20 6f 66 20 46 | 49 4c 45 53 20 61 6e 64 |ist of F|ILES and|
|00000c30| 20 61 70 70 6c 69 65 73 | 20 74 68 65 20 73 65 71 | applies| the seq|
|00000c40| 75 65 6e 63 65 20 6f 66 | 20 54 52 41 4e 53 46 4f |uence of| TRANSFO|
|00000c50| 52 4d 45 52 53 20 74 6f | 20 65 61 63 68 0a 6f 66 |RMERS to| each.of|
|00000c60| 20 74 68 65 6d 2e 20 54 | 68 65 20 74 72 61 6e 73 | them. T|he trans|
|00000c70| 66 6f 72 6d 65 64 20 72 | 65 73 75 6c 74 73 20 61 |formed r|esults a|
|00000c80| 72 65 20 63 6f 6e 63 61 | 74 65 6e 61 74 65 64 2c |re conca|tenated,|
|00000c90| 20 73 65 70 61 72 61 74 | 65 64 20 62 79 20 0a 64 | separat|ed by .d|
|00000ca0| 69 72 65 64 2d 6d 61 72 | 6b 2d 73 65 70 61 72 61 |ired-mar|k-separa|
|00000cb0| 74 6f 72 2c 20 70 72 65 | 66 69 78 65 64 20 62 79 |tor, pre|fixed by|
|00000cc0| 20 64 69 72 65 64 2d 6d | 61 72 6b 2d 70 72 65 66 | dired-m|ark-pref|
|00000cd0| 69 78 20 61 6e 64 20 70 | 6f 73 74 66 69 78 65 64 |ix and p|ostfixed|
|00000ce0| 20 62 79 0a 64 69 72 65 | 64 2d 6d 61 72 6b 2d 70 | by.dire|d-mark-p|
|00000cf0| 6f 73 74 66 69 78 20 74 | 6f 20 67 65 6e 65 72 61 |ostfix t|o genera|
|00000d00| 74 65 20 61 20 66 69 6c | 65 20 6c 69 73 74 20 73 |te a fil|e list s|
|00000d10| 75 69 74 61 62 6c 65 20 | 66 6f 72 20 61 20 70 61 |uitable |for a pa|
|00000d20| 72 74 69 63 75 6c 61 72 | 20 73 68 65 6c 6c 2e 22 |rticular| shell."|
|00000d30| 5d 29 0a 28 64 65 66 76 | 61 72 20 64 69 72 65 64 |]).(defv|ar dired|
|00000d40| 2d 74 72 61 6e 73 2d 73 | 74 61 72 74 65 72 73 20 |-trans-s|tarters |
|00000d50| 22 5b 23 5b 5d 22 20 22 | 5c 0a 55 73 65 72 20 64 |"[#[]" "|\.User d|
|00000d60| 65 66 69 6e 61 62 6c 65 | 20 73 65 74 20 6f 66 20 |efinable| set of |
|00000d70| 63 68 61 72 61 63 74 65 | 72 73 20 74 6f 20 62 65 |characte|rs to be|
|00000d80| 20 75 73 65 64 20 74 6f | 20 69 6e 64 69 63 61 74 | used to| indicat|
|00000d90| 65 20 74 68 65 20 73 74 | 61 72 74 20 6f 66 20 61 |e the st|art of a|
|00000da0| 0a 74 72 61 6e 73 66 6f | 72 6d 65 72 20 73 65 71 |.transfo|rmer seq|
|00000db0| 75 65 6e 63 65 22 29 0a | 28 64 65 66 76 61 72 20 |uence").|(defvar |
|00000dc0| 64 69 72 65 64 2d 74 72 | 61 6e 73 2d 65 6e 64 65 |dired-tr|ans-ende|
|00000dd0| 72 73 20 22 5b 5d 23 20 | 5d 22 20 22 5c 0a 55 73 |rs "[]# |]" "\.Us|
|00000de0| 65 72 20 64 65 66 69 6e | 61 62 6c 65 20 73 65 74 |er defin|able set|
|00000df0| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 73 20 74 | of char|acters t|
|00000e00| 6f 20 62 65 20 75 73 65 | 64 20 74 6f 20 69 6e 64 |o be use|d to ind|
|00000e10| 69 63 61 74 65 20 74 68 | 65 20 65 6e 64 20 6f 66 |icate th|e end of|
|00000e20| 20 61 0a 74 72 61 6e 73 | 66 6f 72 6d 65 72 20 73 | a.trans|former s|
|00000e30| 65 71 75 65 6e 63 65 22 | 29 0a 28 66 73 65 74 20 |equence"|).(fset |
|00000e40| 27 64 69 72 65 64 2d 74 | 72 61 6e 73 2d 65 78 70 |'dired-t|rans-exp|
|00000e50| 61 6e 64 20 23 5b 28 63 | 6f 6d 6d 61 6e 64 20 66 |and #[(c|ommand f|
|00000e60| 69 6c 65 73 29 20 22 c0 | 89 c1 1a 1b 1c c5 c6 0e |iles) ".|........|
|00000e70| 07 c0 23 2b 87 22 20 5b | 6e 69 6c 20 22 22 20 74 |..#+." [|nil "" t|
|00000e80| 72 61 6e 73 66 6f 72 6d | 65 72 73 20 63 6f 6c 6c |ransform|ers coll|
|00000e90| 65 63 74 2d 74 72 61 6e | 73 66 6f 72 6d 65 72 73 |ect-tran|sformers|
|00000ea0| 20 71 75 6f 74 65 64 20 | 6d 61 70 63 6f 6e 63 61 | quoted |mapconca|
|00000eb0| 74 20 23 5b 28 63 68 61 | 72 29 20 22 c0 09 21 11 |t #[(cha|r) "..!.|
|00000ec0| 5c 6e ab 84 c3 12 09 87 | 09 c4 9a ab 84 c5 12 c3 |\n......|........|
|00000ed0| 87 0e 06 ab 9c c7 0e 08 | 09 5c 22 ab 8d c3 16 06 |........|.\".....|
|00000ee0| c9 0e 5c 6e 0e 0b 5c 22 | cc 16 0b 87 0e 0b 09 50 |..\n..\"|.......P|
|00000ef0| 16 0b c3 87 c7 0e 0d 09 | 5c 22 ab 85 c5 16 06 c3 |........|\"......|
|00000f00| 87 09 ce 9a ab 86 c9 0e | 5c 6e ce 5c 22 87 09 87 |........|\n.\"...|
|00000f10| 22 20 5b 63 68 61 72 2d | 74 6f 2d 73 74 72 69 6e |" [char-|to-strin|
|00000f20| 67 20 63 68 61 72 20 71 | 75 6f 74 65 64 20 6e 69 |g char q|uoted ni|
|00000f30| 6c 20 22 5c 5c 22 20 74 | 20 63 6f 6c 6c 65 63 74 |l "\\" t| collect|
|00000f40| 2d 74 72 61 6e 73 66 6f | 72 6d 65 72 73 20 73 74 |-transfo|rmers st|
|00000f50| 72 69 6e 67 2d 6d 61 74 | 63 68 20 64 69 72 65 64 |ring-mat|ch dired|
|00000f60| 2d 74 72 61 6e 73 2d 65 | 6e 64 65 72 73 20 64 69 |-trans-e|nders di|
|00000f70| 72 65 64 2d 74 72 61 6e | 73 2d 6d 6b 6c 69 73 74 |red-tran|s-mklist|
|00000f80| 20 66 69 6c 65 73 20 74 | 72 61 6e 73 66 6f 72 6d | files t|ransform|
|00000f90| 65 72 73 20 22 22 20 64 | 69 72 65 64 2d 74 72 61 |ers "" d|ired-tra|
|00000fa0| 6e 73 2d 73 74 61 72 74 | 65 72 73 20 22 2a 22 5d |ns-start|ers "*"]|
|00000fb0| 20 33 5d 20 63 6f 6d 6d | 61 6e 64 5d 20 34 20 22 | 3] comm|and] 4 "|
|00000fc0| 5c 0a 54 61 6b 65 73 20 | 61 20 73 68 65 6c 6c 20 |\.Takes |a shell |
|00000fd0| 43 4f 4d 4d 41 4e 44 20 | 61 6e 64 20 61 20 6c 69 |COMMAND |and a li|
|00000fe0| 73 74 20 6f 66 20 46 49 | 4c 45 53 20 61 6e 64 20 |st of FI|LES and |
|00000ff0| 73 75 62 73 74 69 74 75 | 74 65 73 20 65 61 63 68 |substitu|tes each|
|00001000| 20 6f 63 63 75 72 61 6e | 63 65 0a 6f 66 20 61 20 | occuran|ce.of a |
|00001010| 74 72 61 6e 73 66 6f 72 | 6d 65 72 20 73 65 71 75 |transfor|mer sequ|
|00001020| 65 6e 63 65 20 62 79 20 | 61 6e 20 61 63 63 6f 72 |ence by |an accor|
|00001030| 64 69 6e 67 6c 79 20 74 | 72 61 6e 73 66 6f 72 6d |dingly t|ransform|
|00001040| 65 64 20 66 69 6c 65 20 | 6c 69 73 74 2e 20 53 70 |ed file |list. Sp|
|00001050| 65 63 69 61 6c 0a 63 68 | 61 72 61 63 74 65 72 73 |ecial.ch|aracters|
|00001060| 20 73 75 63 68 20 61 73 | 20 5b 2c 5d 20 6f 72 20 | such as| [,] or |
|00001070| 2a 20 63 61 6e 20 62 65 | 20 71 75 6f 74 65 64 20 |* can be| quoted |
|00001080| 77 69 74 68 20 61 20 62 | 61 63 6b 73 6c 61 73 68 |with a b|ackslash|
|00001090| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 64 69 72 65 |."]).(fs|et 'dire|
|000010a0| 64 2d 74 72 61 6e 73 2d | 6d 61 6b 65 20 23 5b 28 |d-trans-|make #[(|
|000010b0| 63 6f 6d 6d 61 6e 64 20 | 66 69 6c 65 73 20 26 6f |command |files &o|
|000010c0| 70 74 69 6f 6e 61 6c 20 | 61 6c 6c 2d 61 74 2d 6f |ptional |all-at-o|
|000010d0| 6e 63 65 29 20 22 c0 89 | 19 1a 0b ab 97 c4 0d 0e |nce) "..|........|
|000010e0| 06 5c 22 11 0d 09 9a ab | 89 0d c4 c7 0e 06 5c 22 |.\".....|......\"|
|000010f0| 50 aa 89 09 aa 86 c8 c9 | 0e 06 ca 23 2a 87 22 20 |P.......|...#*." |
|00001100| 5b 6e 69 6c 20 65 78 70 | 61 6e 64 65 64 2d 63 6f |[nil exp|anded-co|
|00001110| 6d 6d 61 6e 64 20 66 6e | 73 20 61 6c 6c 2d 61 74 |mmand fn|s all-at|
|00001120| 2d 6f 6e 63 65 20 64 69 | 72 65 64 2d 74 72 61 6e |-once di|red-tran|
|00001130| 73 2d 65 78 70 61 6e 64 | 20 63 6f 6d 6d 61 6e 64 |s-expand| command|
|00001140| 20 66 69 6c 65 73 20 22 | 20 2a 22 20 6d 61 70 63 | files "| *" mapc|
|00001150| 6f 6e 63 61 74 20 23 5b | 28 66 69 6c 65 29 20 22 |oncat #[|(file) "|
|00001160| c0 09 5c 6e c3 23 87 22 | 20 5b 64 69 72 65 64 2d |..\n.#."| [dired-|
|00001170| 74 72 61 6e 73 2d 6d 61 | 6b 65 20 63 6f 6d 6d 61 |trans-ma|ke comma|
|00001180| 6e 64 20 66 69 6c 65 20 | 74 5d 20 34 5d 20 22 3b |nd file |t] 4] ";|
|00001190| 22 5d 20 34 20 22 5c 0a | 54 61 6b 65 73 20 61 20 |"] 4 "\.|Takes a |
|000011a0| 73 68 65 6c 6c 20 43 4f | 4d 4d 41 4e 44 20 61 6e |shell CO|MMAND an|
|000011b0| 64 20 61 20 6c 69 73 74 | 20 6f 66 20 46 49 4c 45 |d a list| of FILE|
|000011c0| 53 20 61 6e 64 20 72 65 | 74 75 72 6e 73 20 61 20 |S and re|turns a |
|000011d0| 63 6f 6d 6d 61 6e 64 20 | 6f 70 65 72 61 74 69 6e |command |operatin|
|000011e0| 67 0a 6f 6e 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |g.on the| list of|
|000011f0| 20 66 69 6c 65 73 20 28 | 74 72 61 6e 73 66 6f 72 | files (|transfor|
|00001200| 6d 65 64 20 69 66 20 43 | 4f 4d 4d 41 4e 44 20 63 |med if C|OMMAND c|
|00001210| 6f 6e 74 61 69 6e 73 20 | 74 72 61 6e 73 66 6f 72 |ontains |transfor|
|00001220| 6d 65 72 73 29 2e 20 49 | 66 0a 41 4c 4c 2d 41 54 |mers). I|f.ALL-AT|
|00001230| 2d 4f 4e 43 45 20 69 73 | 20 74 20 74 68 65 20 72 |-ONCE is| t the r|
|00001240| 65 73 75 6c 74 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 |esulting| command|
|00001250| 20 77 69 6c 6c 20 62 65 | 20 6f 66 20 74 68 65 20 | will be| of the |
|00001260| 66 6f 72 6d 0a 20 20 63 | 6d 64 20 66 69 6c 65 31 |form. c|md file1|
|00001270| 20 66 69 6c 65 32 20 2e | 2e 2e 20 66 69 6c 65 4e | file2 .|.. fileN|
|00001280| 0a 6f 74 68 65 72 77 69 | 73 65 20 69 74 20 77 69 |.otherwi|se it wi|
|00001290| 6c 6c 20 62 65 0a 20 20 | 63 6d 64 20 66 69 6c 65 |ll be. |cmd file|
|000012a0| 31 3b 20 63 6d 64 20 66 | 69 6c 65 32 3b 20 2e 2e |1; cmd f|ile2; ..|
|000012b0| 2e 20 63 6d 64 20 66 69 | 6c 65 4e 3b 0a 42 6f 74 |. cmd fi|leN;.Bot|
|000012c0| 68 20 65 78 61 6d 70 6c | 65 73 20 61 73 73 75 6d |h exampl|es assum|
|000012d0| 65 20 61 20 73 69 6e 67 | 6c 65 20 72 65 66 65 72 |e a sing|le refer|
|000012e0| 65 6e 63 65 20 74 6f 20 | 74 68 65 20 66 69 6c 65 |ence to |the file|
|000012f0| 20 6c 69 73 74 2e 22 5d | 29 0a 28 66 73 65 74 20 | list."]|).(fset |
|00001300| 27 64 69 72 65 64 2d 73 | 68 65 6c 6c 2d 73 74 75 |'dired-s|hell-stu|
|00001310| 66 66 2d 69 74 20 23 5b | 28 63 6f 6d 6d 61 6e 64 |ff-it #[|(command|
|00001320| 20 66 69 6c 65 2d 6c 69 | 73 74 20 6f 6e 2d 65 61 | file-li|st on-ea|
|00001330| 63 68 20 26 6f 70 74 69 | 6f 6e 61 6c 20 72 61 77 |ch &opti|onal raw|
|00001340| 2d 61 72 67 29 20 22 c0 | 09 5c 6e 0b 3f 23 87 22 |-arg) ".|.\n.?#."|
|00001350| 20 5b 64 69 72 65 64 2d | 74 72 61 6e 73 2d 6d 61 | [dired-|trans-ma|
|00001360| 6b 65 20 63 6f 6d 6d 61 | 6e 64 20 66 69 6c 65 2d |ke comma|nd file-|
|00001370| 6c 69 73 74 20 6f 6e 2d | 65 61 63 68 5d 20 34 20 |list on-|each] 4 |
|00001380| 22 5c 0a 4d 61 6b 65 20 | 75 70 20 61 20 73 68 65 |"\.Make |up a she|
|00001390| 6c 6c 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |ll comma|nd line |
|000013a0| 66 72 6f 6d 20 43 4f 4d | 4d 41 4e 44 20 61 6e 64 |from COM|MAND and|
|000013b0| 20 46 49 4c 45 2d 4c 49 | 53 54 2e 0a 49 66 20 4f | FILE-LI|ST..If O|
|000013c0| 4e 2d 45 41 43 48 20 69 | 73 20 74 2c 20 43 4f 4d |N-EACH i|s t, COM|
|000013d0| 4d 41 4e 44 20 73 68 6f | 75 6c 64 20 62 65 20 61 |MAND sho|uld be a|
|000013e0| 70 70 6c 69 65 64 20 74 | 6f 20 65 61 63 68 20 66 |pplied t|o each f|
|000013f0| 69 6c 65 2c 20 65 6c 73 | 65 0a 20 20 73 69 6d 70 |ile, els|e. simp|
|00001400| 6c 79 20 63 6f 6e 63 61 | 74 20 61 6c 6c 20 66 69 |ly conca|t all fi|
|00001410| 6c 65 73 2e 0a 54 68 65 | 20 6c 69 73 74 20 6f 66 |les..The| list of|
|00001420| 20 6d 61 72 6b 65 64 20 | 66 69 6c 65 73 20 69 73 | marked |files is|
|00001430| 20 61 70 70 65 6e 64 65 | 64 20 74 6f 20 74 68 65 | appende|d to the|
|00001440| 20 63 6f 6d 6d 61 6e 64 | 20 73 74 72 69 6e 67 20 | command| string |
|00001450| 75 6e 6c 65 73 73 20 61 | 73 74 65 72 69 73 6b 73 |unless a|sterisks|
|00001460| 0a 20 20 60 2a 27 20 6f | 72 20 74 72 61 6e 73 66 |. `*' o|r transf|
|00001470| 6f 72 6d 65 72 20 73 65 | 71 75 65 6e 63 65 73 20 |ormer se|quences |
|00001480| 65 6e 63 6c 6f 73 65 64 | 20 69 6e 20 60 5b 5d 27 |enclosed| in `[]'|
|00001490| 20 69 6e 64 69 63 61 74 | 65 20 74 68 65 20 70 6c | indicat|e the pl|
|000014a0| 61 63 65 28 73 29 20 77 | 68 65 72 65 20 0a 20 20 |ace(s) w|here . |
|000014b0| 74 68 65 20 28 74 72 61 | 6e 73 66 6f 72 6d 65 64 |the (tra|nsformed|
|000014c0| 29 20 6c 69 73 74 20 73 | 68 6f 75 6c 64 20 67 6f |) list s|hould go|
|000014d0| 2e 20 20 53 65 65 20 64 | 6f 63 75 6d 65 6e 74 61 |. See d|ocumenta|
|000014e0| 74 69 6f 6e 20 6f 66 20 | 66 75 6e 63 74 69 6f 6e |tion of |function|
|000014f0| 0a 20 20 64 69 72 65 64 | 2d 74 72 61 6e 73 2d 69 |. dired|-trans-i|
|00001500| 6e 69 74 20 66 6f 72 20 | 61 20 6c 69 73 74 20 6f |nit for |a list o|
|00001510| 66 20 74 72 61 6e 73 66 | 6f 72 6d 65 72 73 2e 0a |f transf|ormers..|
|00001520| 57 69 74 68 20 61 20 7a | 65 72 6f 20 61 72 67 75 |With a z|ero argu|
|00001530| 6d 65 6e 74 20 74 68 65 | 20 72 65 73 75 6c 74 69 |ment the| resulti|
|00001540| 6e 67 20 63 6f 6d 6d 61 | 6e 64 20 77 69 6c 6c 20 |ng comma|nd will |
|00001550| 62 65 20 6f 66 20 74 68 | 65 20 66 6f 72 6d 0a 20 |be of th|e form. |
|00001560| 20 63 6d 64 20 66 69 6c | 65 31 3b 20 63 6d 64 20 | cmd fil|e1; cmd |
|00001570| 66 69 6c 65 32 3b 20 2e | 2e 2e 20 63 6d 64 20 66 |file2; .|.. cmd f|
|00001580| 69 6c 65 4e 20 61 73 73 | 75 6d 69 6e 67 20 6f 6e |ileN ass|uming on|
|00001590| 6c 79 20 6f 6e 65 20 72 | 65 66 65 72 65 6e 63 65 |ly one r|eference|
|000015a0| 20 74 6f 20 74 68 65 0a | 20 20 66 69 6c 65 20 6c | to the.| file l|
|000015b0| 69 73 74 2e 20 45 2e 67 | 2e 2c 20 74 6f 20 72 65 |ist. E.g|., to re|
|000015c0| 6e 61 6d 65 20 61 6c 6c | 20 2e 6c 73 70 20 66 69 |name all| .lsp fi|
|000015d0| 6c 65 73 20 69 6e 74 6f | 20 2e 6c 69 73 70 20 66 |les into| .lisp f|
|000015e0| 69 6c 65 73 20 6d 61 72 | 6b 20 61 6c 6c 20 74 68 |iles mar|k all th|
|000015f0| 65 0a 20 20 2e 6c 73 70 | 20 66 69 6c 65 73 20 61 |e. .lsp| files a|
|00001600| 6e 64 20 69 73 73 75 65 | 20 74 68 65 20 63 6f 6d |nd issue| the com|
|00001610| 6d 61 6e 64 20 60 6d 76 | 20 2a 20 5b 64 62 5d 2e |mand `mv| * [db].|
|00001620| 6c 69 73 70 27 20 2e 22 | 5d 29 0a |lisp' ."|]). |
+--------+-------------------------+-------------------------+--------+--------+