home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / dired / dired-num.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  2.7 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.

ConfidenceProgramDetectionMatch TypeSupport
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 | 31 20 31 39 39 35 0a 3b | 13:55:4|1 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 6e 75 6d 2e 65 6c | 0a 3b 3b 3b 20 65 6d 61 |d-num.el|.;;; ema|
|000000a0| 63 73 20 76 65 72 73 69 | 6f 6e 20 31 39 2e 31 33 |cs versi|on 19.13|
|000000b0| 20 58 45 6d 61 63 73 20 | 4c 75 63 69 64 2e 0a 3b | XEmacs |Lucid..;|
|000000c0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000d0| 69 6f 6e 20 32 2e 32 35 | 3b 20 31 2d 53 65 70 2d |ion 2.25|; 1-Sep-|
|000000e0| 39 34 2e 0a 3b 3b 3b 20 | 6f 70 74 69 6d 69 7a 61 |94..;;; |optimiza|
|000000f0| 74 69 6f 6e 20 69 73 20 | 6f 6e 2e 0a 3b 3b 3b 20 |tion is |on..;;; |
|00000100| 74 68 69 73 20 66 69 6c | 65 20 75 73 65 73 20 6f |this fil|e uses o|
|00000110| 70 63 6f 64 65 73 20 77 | 68 69 63 68 20 64 6f 20 |pcodes w|hich do |
|00000120| 6e 6f 74 20 65 78 69 73 | 74 20 69 6e 20 45 6d 61 |not exis|t in Ema|
|00000130| 63 73 20 31 38 2e 0a 0a | 28 69 66 20 28 61 6e 64 |cs 18...|(if (and|
|00000140| 20 28 62 6f 75 6e 64 70 | 20 27 65 6d 61 63 73 2d | (boundp| 'emacs-|
|00000150| 76 65 72 73 69 6f 6e 29 | 0a 09 20 28 6f 72 20 28 |version)|.. (or (|
|00000160| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 70 6f |and (bou|ndp 'epo|
|00000170| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 20 65 70 6f |ch::vers|ion) epo|
|00000180| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 0a 09 20 20 |ch::vers|ion).. |
|00000190| 20 20 20 28 73 74 72 69 | 6e 67 2d 6c 65 73 73 70 | (stri|ng-lessp|
|000001a0| 20 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 20 22 | emacs-v|ersion "|
|000001b0| 31 39 22 29 29 29 0a 20 | 20 20 20 28 65 72 72 6f |19"))). | (erro|
|000001c0| 72 20 22 54 68 69 73 20 | 66 69 6c 65 20 77 61 73 |r "This |file was|
|000001d0| 20 63 6f 6d 70 69 6c 65 | 64 20 66 6f 72 20 45 6d | compile|d for Em|
|000001e0| 61 63 73 20 31 39 2e 22 | 29 29 0a 0a 28 64 65 66 |acs 19."|))..(def|
|000001f0| 63 6f 6e 73 74 20 64 69 | 72 65 64 2d 6e 75 6d 2d |const di|red-num-|
|00000200| 76 65 72 73 69 6f 6e 20 | 28 73 75 62 73 74 72 69 |version |(substri|
|00000210| 6e 67 20 22 21 52 65 76 | 69 73 69 6f 6e 3a 20 31 |ng "!Rev|ision: 1|
|00000220| 2e 32 20 21 22 20 31 31 | 20 2d 32 29 20 22 5c 0a |.2 !" 11| -2) "\.|
|00000230| 49 64 3a 20 64 69 72 65 | 64 2d 6e 75 6d 2e 65 6c |Id: dire|d-num.el|
|00000240| 2c 76 20 31 2e 32 20 31 | 39 39 31 2f 31 30 2f 31 |,v 1.2 1|991/10/1|
|00000250| 35 20 31 33 3a 32 34 3a | 31 30 20 73 6b 20 52 65 |5 13:24:|10 sk Re|
|00000260| 6c 42 65 74 61 20 22 29 | 0a 28 62 79 74 65 2d 63 |lBeta ")|.(byte-c|
|00000270| 6f 64 65 20 22 c0 c1 21 | 88 c2 c3 4d 88 c4 c5 4d |ode "..!|...M...M|
|00000280| 87 22 20 5b 72 65 71 75 | 69 72 65 20 64 69 72 65 |." [requ|ire dire|
|00000290| 64 20 64 69 72 65 64 2d | 6e 75 6d 62 65 72 2d 6f |d dired-|number-o|
|000002a0| 66 2d 6d 61 72 6b 65 64 | 2d 66 69 6c 65 73 20 23 |f-marked|-files #|
|000002b0| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|000002c0| 20 22 8a c0 89 89 89 19 | 1a 1b 1c 0d ab 99 0d a8 | "......|........|
|000002d0| ab 91 c6 0d c7 5c 22 88 | 0d c8 57 ab 84 09 9f aa |.....\".|..W.....|
|000002e0| d4 09 aa d1 c0 43 aa cd | c9 20 c0 1e 5c 6e 1e 0b |.....C..|. ..\n..|
|000002f0| 8a 65 62 88 cc 0e 0b c0 | cd 23 ad 82 ce 20 89 16 |.eb.....|.#... ..|
|00000300| 5c 6e 3f 3f 12 0e 5c 6e | ab a4 0e 5c 6e 62 88 c0 |\n??..\n|...\nb..|
|00000310| 09 42 11 0e 5c 6e 62 88 | cf 79 88 0e 5c 6e c0 89 |.B..\nb.|.y..\n..|
|00000320| 93 88 cc 0e 0b c0 cd 23 | ad 82 ce 20 89 16 5c 6e |.......#|... ..\n|
|00000330| ac 5c 5c 29 5c 6e ab 83 | 09 aa 82 c0 43 2a 2c d0 |.\\)\n..|....C*,.|
|00000340| 20 88 29 47 87 22 20 5b | 6e 69 6c 20 72 65 73 75 | .)G." [|nil resu|
|00000350| 6c 74 73 20 66 6f 75 6e | 64 20 63 61 73 65 2d 66 |lts foun|d case-f|
|00000360| 6f 6c 64 2d 73 65 61 72 | 63 68 20 62 75 66 66 65 |old-sear|ch buffe|
|00000370| 72 2d 72 65 61 64 2d 6f | 6e 6c 79 20 61 72 67 20 |r-read-o|nly arg |
|00000380| 64 69 72 65 64 2d 72 65 | 70 65 61 74 2d 6f 76 65 |dired-re|peat-ove|
|00000390| 72 2d 6c 69 6e 65 73 20 | 23 5b 6e 69 6c 20 22 c0 |r-lines |#[nil ".|
|000003a0| 09 42 89 11 87 22 20 5b | 6e 69 6c 20 72 65 73 75 |.B..." [|nil resu|
|000003b0| 6c 74 73 5d 20 32 5d 20 | 30 20 64 69 72 65 64 2d |lts] 2] |0 dired-|
|000003c0| 6d 61 72 6b 65 72 2d 72 | 65 67 65 78 70 20 6e 65 |marker-r|egexp ne|
|000003d0| 78 74 2d 70 6f 73 69 74 | 69 6f 6e 20 72 65 67 65 |xt-posit|ion rege|
|000003e0| 78 70 20 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 |xp re-se|arch-for|
|000003f0| 77 61 72 64 20 74 20 70 | 6f 69 6e 74 2d 6d 61 72 |ward t p|oint-mar|
|00000400| 6b 65 72 20 31 20 64 69 | 72 65 64 2d 6d 6f 76 65 |ker 1 di|red-move|
|00000410| 2d 74 6f 2d 66 69 6c 65 | 6e 61 6d 65 5d 20 35 5d |-to-file|name] 5]|
|00000420| 20 64 69 72 65 64 2d 64 | 6f 2d 63 72 65 61 74 65 | dired-d|o-create|
|00000430| 2d 66 69 6c 65 73 2d 6e | 75 6d 65 72 69 63 20 23 |-files-n|umeric #|
|00000440| 5b 28 66 69 6c 65 2d 63 | 72 65 61 74 6f 72 20 6f |[(file-c|reator o|
|00000450| 70 65 72 61 74 69 6f 6e | 20 61 72 67 20 66 6f 72 |peration| arg for|
|00000460| 6d 61 74 20 73 74 61 72 | 74 20 26 6f 70 74 69 6f |mat star|t &optio|
|00000470| 6e 61 6c 20 61 72 67 29 | 20 22 08 53 19 c2 0b c4 |nal arg)| ".S....|
|00000480| 0d 0e 06 24 29 87 22 20 | 5b 73 74 61 72 74 20 69 |...$)." |[start i|
|00000490| 20 64 69 72 65 64 2d 63 | 72 65 61 74 65 2d 66 69 | dired-c|reate-fi|
|000004a0| 6c 65 73 2d 6e 6f 6e 2d | 64 69 72 65 63 74 6f 72 |les-non-|director|
|000004b0| 79 20 66 69 6c 65 2d 63 | 72 65 61 74 6f 72 20 23 |y file-c|reator #|
|000004c0| 5b 28 78 29 20 22 c0 08 | 09 54 89 11 5c 22 87 22 |[(x) "..|.T..\"."|
|000004d0| 20 5b 66 6f 72 6d 61 74 | 20 69 5d 20 34 5d 20 6f | [format| i] 4] o|
|000004e0| 70 65 72 61 74 69 6f 6e | 20 61 72 67 5d 20 35 5d |peration| arg] 5]|
|000004f0| 5d 20 32 29 0a 28 66 73 | 65 74 20 27 64 69 72 65 |] 2).(fs|et 'dire|
|00000500| 64 2d 64 6f 2d 72 65 6e | 61 6d 65 2d 6e 75 6d 65 |d-do-ren|ame-nume|
|00000510| 72 69 63 20 23 5b 28 66 | 6f 72 6d 61 74 20 73 74 |ric #[(f|ormat st|
|00000520| 61 72 74 20 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 |art &opt|ional ar|
|00000530| 67 29 20 22 c0 c1 c2 0b | 0c 0d 25 87 22 20 5b 64 |g) "....|..%." [d|
|00000540| 69 72 65 64 2d 64 6f 2d | 63 72 65 61 74 65 2d 66 |ired-do-|create-f|
|00000550| 69 6c 65 73 2d 6e 75 6d | 65 72 69 63 20 64 69 72 |iles-num|eric dir|
|00000560| 65 64 2d 72 65 6e 61 6d | 65 2d 66 69 6c 65 20 22 |ed-renam|e-file "|
|00000570| 52 65 6e 61 6d 65 2d 6e | 75 6d 65 72 69 63 22 20 |Rename-n|umeric" |
|00000580| 61 72 67 20 66 6f 72 6d | 61 74 20 73 74 61 72 74 |arg form|at start|
|00000590| 5d 20 36 20 22 5c 0a 52 | 65 6e 61 6d 65 20 61 6c |] 6 "\.R|ename al|
|000005a0| 6c 20 6d 61 72 6b 65 64 | 20 28 6f 72 20 6e 65 78 |l marked| (or nex|
|000005b0| 74 20 41 52 47 29 20 66 | 69 6c 65 73 20 75 73 69 |t ARG) f|iles usi|
|000005c0| 6e 67 20 6e 75 6d 62 65 | 72 73 2e 0a 59 6f 75 20 |ng numbe|rs..You |
|000005d0| 61 72 65 20 70 72 6f 6d | 70 74 65 64 20 66 6f 72 |are prom|pted for|
|000005e0| 20 61 20 66 6f 72 6d 61 | 74 20 73 74 72 69 6e 67 | a forma|t string|
|000005f0| 2c 20 65 2e 67 20 5c 22 | 70 61 72 74 5f 25 64 5f |, e.g \"|part_%d_|
|00000600| 6f 66 5f 38 5c 22 2c 20 | 61 6e 64 20 61 20 73 74 |of_8\", |and a st|
|00000610| 61 72 74 69 6e 67 0a 6e | 75 6d 62 65 72 2c 20 65 |arting.n|umber, e|
|00000620| 2e 67 2e 20 31 2e 20 20 | 49 66 20 74 68 65 72 65 |.g. 1. |If there|
|00000630| 20 61 72 65 20 38 20 6d | 61 72 6b 65 64 20 66 69 | are 8 m|arked fi|
|00000640| 6c 65 73 2c 20 74 68 69 | 73 20 65 78 61 6d 70 6c |les, thi|s exampl|
|00000650| 65 20 77 69 6c 6c 20 72 | 65 6e 61 6d 65 20 74 68 |e will r|ename th|
|00000660| 65 6d 20 74 6f 0a 0a 20 | 20 20 20 70 61 72 74 5f |em to.. | part_|
|00000670| 31 5f 6f 66 5f 38 0a 20 | 20 20 20 70 61 72 74 5f |1_of_8. | part_|
|00000680| 32 5f 6f 66 5f 38 0a 20 | 20 20 20 2e 2e 2e 0a 20 |2_of_8. | .... |
|00000690| 20 20 20 70 61 72 74 5f | 38 5f 6f 66 5f 38 22 20 | part_|8_of_8" |
|000006a0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 c3 |(byte-co|de "....|
|000006b0| 0c 21 5c 22 21 c5 c6 c7 | 5c 22 0c 45 87 22 20 5b |.!\"!...|\".E." [|
|000006c0| 72 65 61 64 2d 73 74 72 | 69 6e 67 20 66 6f 72 6d |read-str|ing form|
|000006d0| 61 74 20 22 52 65 6e 61 | 6d 65 20 6e 75 6d 65 72 |at "Rena|me numer|
|000006e0| 69 63 20 5b 25 64 20 66 | 69 6c 65 73 5d 20 28 66 |ic [%d f|iles] (f|
|000006f0| 6f 72 6d 61 74 20 73 74 | 72 69 6e 67 20 75 73 69 |ormat st|ring usi|
|00000700| 6e 67 20 25 25 64 29 3a | 20 22 20 64 69 72 65 64 |ng %%d):| " dired|
|00000710| 2d 6e 75 6d 62 65 72 2d | 6f 66 2d 6d 61 72 6b 65 |-number-|of-marke|
|00000720| 64 2d 66 69 6c 65 73 20 | 63 75 72 72 65 6e 74 2d |d-files |current-|
|00000730| 70 72 65 66 69 78 2d 61 | 72 67 20 72 65 61 64 2d |prefix-a|rg read-|
|00000740| 6d 69 6e 69 62 75 66 66 | 65 72 20 22 4e 75 6d 62 |minibuff|er "Numb|
|00000750| 65 72 73 20 73 74 61 72 | 74 20 61 74 3a 20 22 20 |ers star|t at: " |
|00000760| 22 31 22 5d 20 35 29 5d | 29 0a 28 66 73 65 74 20 |"1"] 5)]|).(fset |
|00000770| 27 64 69 72 65 64 2d 64 | 6f 2d 63 72 65 61 74 65 |'dired-d|o-create|
|00000780| 2d 66 69 6c 65 73 2d 6c | 69 73 74 20 23 5b 28 66 |-files-l|ist #[(f|
|00000790| 69 6c 65 2d 63 72 65 61 | 74 6f 72 20 6f 70 65 72 |ile-crea|tor oper|
|000007a0| 61 74 69 6f 6e 20 61 72 | 67 20 66 6f 72 6d 61 74 |ation ar|g format|
|000007b0| 20 6c 69 73 74 20 26 6f | 70 74 69 6f 6e 61 6c 20 | list &o|ptional |
|000007c0| 61 72 67 29 20 22 08 19 | c2 0b c4 0d 0e 06 24 29 |arg) "..|......$)|
|000007d0| 87 22 20 5b 6c 69 73 74 | 20 72 65 73 74 20 64 69 |." [list| rest di|
|000007e0| 72 65 64 2d 63 72 65 61 | 74 65 2d 66 69 6c 65 73 |red-crea|te-files|
|000007f0| 2d 6e 6f 6e 2d 64 69 72 | 65 63 74 6f 72 79 20 66 |-non-dir|ectory f|
|00000800| 69 6c 65 2d 63 72 65 61 | 74 6f 72 20 23 5b 28 78 |ile-crea|tor #[(x|
|00000810| 29 20 22 c0 08 09 40 09 | 41 11 5c 22 87 22 20 5b |) "...@.|A.\"." [|
|00000820| 66 6f 72 6d 61 74 20 72 | 65 73 74 5d 20 34 5d 20 |format r|est] 4] |
|00000830| 6f 70 65 72 61 74 69 6f | 6e 20 61 72 67 5d 20 35 |operatio|n arg] 5|
|00000840| 5d 29 0a 28 66 73 65 74 | 20 27 64 69 72 65 64 2d |]).(fset| 'dired-|
|00000850| 64 6f 2d 72 65 6e 61 6d | 65 2d 6c 69 73 74 20 23 |do-renam|e-list #|
|00000860| 5b 28 66 6f 72 6d 61 74 | 20 6c 69 73 74 20 26 6f |[(format| list &o|
|00000870| 70 74 69 6f 6e 61 6c 20 | 61 72 67 29 20 22 c0 09 |ptional |arg) "..|
|00000880| 21 5c 6e 47 55 ac 84 c3 | c4 21 88 c5 c6 c7 09 0e |!\nGU...|.!......|
|00000890| 08 5c 6e 25 87 22 20 5b | 64 69 72 65 64 2d 6e 75 |.\n%." [|dired-nu|
|000008a0| 6d 62 65 72 2d 6f 66 2d | 6d 61 72 6b 65 64 2d 66 |mber-of-|marked-f|
|000008b0| 69 6c 65 73 20 61 72 67 | 20 6c 69 73 74 20 65 72 |iles arg| list er|
|000008c0| 72 6f 72 20 22 4d 75 73 | 74 20 68 61 76 65 20 61 |ror "Mus|t have a|
|000008d0| 73 20 6d 61 6e 79 20 65 | 6c 65 6d 65 6e 74 73 20 |s many e|lements |
|000008e0| 61 73 20 74 68 65 72 65 | 20 61 72 65 20 66 69 6c |as there| are fil|
|000008f0| 65 73 20 74 6f 20 72 65 | 6e 61 6d 65 22 20 64 69 |es to re|name" di|
|00000900| 72 65 64 2d 64 6f 2d 63 | 72 65 61 74 65 2d 66 69 |red-do-c|reate-fi|
|00000910| 6c 65 73 2d 6c 69 73 74 | 20 64 69 72 65 64 2d 72 |les-list| dired-r|
|00000920| 65 6e 61 6d 65 2d 66 69 | 6c 65 20 22 52 65 6e 61 |ename-fi|le "Rena|
|00000930| 6d 65 2d 6c 69 73 74 22 | 20 66 6f 72 6d 61 74 5d |me-list"| format]|
|00000940| 20 36 20 22 5c 0a 52 65 | 6e 61 6d 65 20 61 6c 6c | 6 "\.Re|name all|
|00000950| 20 6d 61 72 6b 65 64 20 | 28 6f 72 20 6e 65 78 74 | marked |(or next|
|00000960| 20 41 52 47 29 20 66 69 | 6c 65 73 20 75 73 69 6e | ARG) fi|les usin|
|00000970| 67 20 65 6c 65 6d 65 6e | 74 73 20 66 72 6f 6d 20 |g elemen|ts from |
|00000980| 4c 49 53 54 2e 0a 59 6f | 75 20 61 72 65 20 70 72 |LIST..Yo|u are pr|
|00000990| 6f 6d 70 74 65 64 20 66 | 6f 72 20 61 20 66 6f 72 |ompted f|or a for|
|000009a0| 6d 61 74 20 73 74 72 69 | 6e 67 2c 20 65 2e 67 20 |mat stri|ng, e.g |
|000009b0| 5c 22 78 5f 25 73 5c 22 | 2c 20 61 6e 64 20 74 68 |\"x_%s\"|, and th|
|000009c0| 65 20 6c 69 73 74 2c 0a | 65 2e 67 2e 20 27 28 66 |e list,.|e.g. '(f|
|000009d0| 6f 6f 20 62 61 72 20 7a | 6f 64 29 2e 20 20 54 68 |oo bar z|od). Th|
|000009e0| 69 73 20 65 78 61 6d 70 | 6c 65 20 77 69 6c 6c 20 |is examp|le will |
|000009f0| 72 65 6e 61 6d 65 20 74 | 68 65 20 6d 61 72 6b 65 |rename t|he marke|
|00000a00| 64 20 66 69 6c 65 73 20 | 74 6f 0a 0a 20 20 20 20 |d files |to.. |
|00000a10| 78 5f 66 6f 6f 0a 20 20 | 20 20 78 5f 62 61 72 0a |x_foo. | x_bar.|
|00000a20| 20 20 20 20 78 5f 7a 6f | 64 0a 0a 49 74 20 69 73 | x_zo|d..It is|
|00000a30| 20 61 6e 20 65 72 72 6f | 72 20 69 66 20 4c 49 53 | an erro|r if LIS|
|00000a40| 54 20 68 61 73 20 6e 6f | 74 20 61 73 20 6d 61 6e |T has no|t as man|
|00000a50| 79 20 65 6c 65 6d 65 6e | 74 73 20 61 73 20 74 68 |y elemen|ts as th|
|00000a60| 65 72 65 20 61 72 65 20 | 66 69 6c 65 73 2e 22 20 |ere are |files." |
|00000a70| 22 73 52 65 6e 61 6d 65 | 20 6c 69 73 74 20 28 66 |"sRename| list (f|
|00000a80| 6f 72 6d 61 74 20 75 73 | 69 6e 67 20 25 25 73 29 |ormat us|ing %%s)|
|00000a90| 3a 20 5c 6e 78 4c 69 73 | 74 3a 20 5c 6e 50 22 5d |: \nxLis|t: \nP"]|
|00000aa0| 29 0a | |). | |
+--------+-------------------------+-------------------------+--------+--------+