home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1991-09-13 | 1.9 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
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 |
100%
| file
| Emacs v18 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| gt2
| Kopftext: '(defun create-file-buffer (filename) '
| default (weak)
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 64 65 66 75 6e 20 | 63 72 65 61 74 65 2d 66 |.(defun |create-f|
|00000010| 69 6c 65 2d 62 75 66 66 | 65 72 20 28 66 69 6c 65 |ile-buff|er (file|
|00000020| 6e 61 6d 65 29 20 22 5c | 0a 43 72 65 61 74 65 20 |name) "\|.Create |
|00000030| 61 20 73 75 69 74 61 62 | 6c 79 20 6e 61 6d 65 64 |a suitab|ly named|
|00000040| 20 62 75 66 66 65 72 20 | 66 6f 72 20 76 69 73 69 | buffer |for visi|
|00000050| 74 69 6e 67 20 46 49 4c | 45 4e 41 4d 45 2c 20 61 |ting FIL|ENAME, a|
|00000060| 6e 64 20 72 65 74 75 72 | 6e 20 69 74 2e 0a 46 49 |nd retur|n it..FI|
|00000070| 4c 45 4e 41 4d 45 20 28 | 73 61 6e 73 20 64 69 72 |LENAME (|sans dir|
|00000080| 65 63 74 6f 72 79 29 20 | 69 73 20 75 73 65 64 20 |ectory) |is used |
|00000090| 75 6e 63 68 61 6e 67 65 | 64 20 69 66 20 74 68 61 |unchange|d if tha|
|000000a0| 74 20 6e 61 6d 65 20 69 | 73 20 66 72 65 65 3b 0a |t name i|s free;.|
|000000b0| 6f 74 68 65 72 77 69 73 | 65 20 61 20 73 74 72 69 |otherwis|e a stri|
|000000c0| 6e 67 20 3c 32 3e 20 6f | 72 20 3c 33 3e 20 6f 72 |ng <2> o|r <3> or|
|000000d0| 20 2e 2e 2e 20 69 73 20 | 61 70 70 65 6e 64 65 64 | ... is |appended|
|000000e0| 20 74 6f 20 67 65 74 20 | 61 6e 20 75 6e 75 73 65 | to get |an unuse|
|000000f0| 64 20 6e 61 6d 65 2e 22 | 20 28 62 79 74 65 2d 63 |d name."| (byte-c|
|00000100| 6f 64 65 20 22 c1 c2 c3 | 08 21 21 21 87 22 20 5b |ode "...|.!!!." [|
|00000110| 66 69 6c 65 6e 61 6d 65 | 20 67 65 6e 65 72 61 74 |filename| generat|
|00000120| 65 2d 6e 65 77 2d 62 75 | 66 66 65 72 20 64 6f 77 |e-new-bu|ffer dow|
|00000130| 6e 63 61 73 65 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |ncase fi|le-name-|
|00000140| 6e 6f 6e 64 69 72 65 63 | 74 6f 72 79 5d 20 34 29 |nondirec|tory] 4)|
|00000150| 29 0a 0a 28 64 65 66 75 | 6e 20 6d 61 6b 65 2d 6c |)..(defu|n make-l|
|00000160| 65 67 61 6c 2d 66 69 6c | 65 2d 6e 61 6d 65 20 28 |egal-fil|e-name (|
|00000170| 66 6e 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |fn) (byt|e-code "|
|00000180| c7 08 21 89 10 88 c2 c8 | 08 47 c2 1d 1c 1b 19 0b |..!.....|.G......|
|00000190| 0c 57 85 7c 00 08 0b 48 | 89 15 88 0d c9 3d 83 32 |.W.|...H|.....=.2|
|000001a0| 00 09 83 2c 00 08 0b ca | 49 82 2f 00 c6 89 11 82 |...,....|I./.....|
|000001b0| 73 00 0d cb 59 85 3b 00 | 0d cc 58 86 6b 00 0d cd |s...Y.;.|..X.k...|
|000001c0| 59 85 47 00 0d ce 58 86 | 6b 00 0d cf 59 85 53 00 |Y.G...X.|k...Y.S.|
|000001d0| 0d d0 58 86 6b 00 0d d1 | 3d 86 6b 00 0d ca 3d 86 |..X.k...|=.k...=.|
|000001e0| 6b 00 0d d2 3d 85 6b 00 | 0b c8 56 3f 85 73 00 08 |k...=.k.|..V?.s..|
|000001f0| 0b ca 49 88 0b 54 89 13 | 88 82 0f 00 2c 88 08 87 |..I..T..|....,...|
|00000200| 22 20 5b 66 6e 20 64 6f | 74 20 6e 69 6c 20 69 6e |" [fn do|t nil in|
|00000210| 64 78 20 6c 65 6e 20 63 | 68 72 20 74 20 63 6f 70 |dx len c|hr t cop|
|00000220| 79 2d 73 65 71 75 65 6e | 63 65 20 30 20 34 36 20 |y-sequen|ce 0 46 |
|00000230| 39 35 20 39 37 20 31 32 | 32 20 36 35 20 39 30 20 |95 97 12|2 65 90 |
|00000240| 34 38 20 35 37 20 33 36 | 20 34 35 5d 20 35 29 29 |48 57 36| 45] 5))|
|00000250| 0a 0a 28 64 65 66 75 6e | 20 6d 61 6b 65 2d 61 75 |..(defun| make-au|
|00000260| 74 6f 2d 73 61 76 65 2d | 66 69 6c 65 2d 6e 61 6d |to-save-|file-nam|
|00000270| 65 20 6e 69 6c 20 22 5c | 0a 52 65 74 75 72 6e 20 |e nil "\|.Return |
|00000280| 66 69 6c 65 20 6e 61 6d | 65 20 74 6f 20 75 73 65 |file nam|e to use|
|00000290| 20 66 6f 72 20 61 75 74 | 6f 2d 73 61 76 65 73 20 | for aut|o-saves |
|000002a0| 6f 66 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |of curre|nt buffe|
|000002b0| 72 2e 0a 44 6f 65 73 20 | 6e 6f 74 20 63 6f 6e 73 |r..Does |not cons|
|000002c0| 69 64 65 72 20 61 75 74 | 6f 2d 73 61 76 65 2d 76 |ider aut|o-save-v|
|000002d0| 69 73 69 74 65 64 2d 66 | 69 6c 65 2d 6e 61 6d 65 |isited-f|ile-name|
|000002e0| 3b 20 74 68 61 74 20 69 | 73 20 63 68 65 63 6b 65 |; that i|s checke|
|000002f0| 64 0a 62 65 66 6f 72 65 | 20 63 61 6c 6c 69 6e 67 |d.before| calling|
|00000300| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 2e 0a | this fu|nction..|
|00000310| 54 68 69 73 20 69 73 20 | 61 20 73 65 70 61 72 61 |This is |a separa|
|00000320| 74 65 20 66 75 6e 63 74 | 69 6f 6e 20 73 6f 20 79 |te funct|ion so y|
|00000330| 6f 75 72 20 2e 65 6d 61 | 63 73 20 66 69 6c 65 20 |our .ema|cs file |
|00000340| 6f 72 20 73 69 74 65 2d | 69 6e 69 74 2e 65 6c 20 |or site-|init.el |
|00000350| 63 61 6e 20 72 65 64 65 | 66 69 6e 65 20 69 74 2e |can rede|fine it.|
|00000360| 0a 53 65 65 20 61 6c 73 | 6f 20 61 75 74 6f 2d 73 |.See als|o auto-s|
|00000370| 61 76 65 2d 66 69 6c 65 | 2d 6e 61 6d 65 2d 70 2e |ave-file|-name-p.|
|00000380| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 83 |" (byte-|code "..|
|00000390| 12 00 c1 08 21 c2 c3 c4 | 08 21 21 c5 52 82 1b 00 |....!...|.!!.R...|
|000003a0| c6 c7 c8 c9 20 21 c5 51 | 21 87 22 20 5b 62 75 66 |.... !.Q|!." [buf|
|000003b0| 66 65 72 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 66 69 |fer-file|-name fi|
|000003c0| 6c 65 2d 6e 61 6d 65 2d | 64 69 72 65 63 74 6f 72 |le-name-|director|
|000003d0| 79 20 22 5f 24 22 20 66 | 69 6c 65 2d 6e 61 6d 65 |y "_$" f|ile-name|
|000003e0| 2d 73 61 6e 73 2d 76 65 | 72 73 69 6f 6e 73 20 66 |-sans-ve|rsions f|
|000003f0| 69 6c 65 2d 6e 61 6d 65 | 2d 6e 6f 6e 64 69 72 65 |ile-name|-nondire|
|00000400| 63 74 6f 72 79 20 22 24 | 22 20 65 78 70 61 6e 64 |ctory "$|" expand|
|00000410| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 22 5f 24 5f 22 |-file-na|me "_$_"|
|00000420| 20 6d 61 6b 65 2d 6c 65 | 67 61 6c 2d 66 69 6c 65 | make-le|gal-file|
|00000430| 2d 6e 61 6d 65 20 62 75 | 66 66 65 72 2d 6e 61 6d |-name bu|ffer-nam|
|00000440| 65 5d 20 39 29 29 0a 0a | 28 64 65 66 75 6e 20 61 |e] 9))..|(defun a|
|00000450| 75 74 6f 2d 73 61 76 65 | 2d 66 69 6c 65 2d 6e 61 |uto-save|-file-na|
|00000460| 6d 65 2d 70 20 28 66 69 | 6c 65 6e 61 6d 65 29 20 |me-p (fi|lename) |
|00000470| 22 5c 0a 52 65 74 75 72 | 6e 20 74 20 69 66 20 46 |"\.Retur|n t if F|
|00000480| 49 4c 45 4e 41 4d 45 20 | 63 61 6e 20 62 65 20 79 |ILENAME |can be y|
|00000490| 69 65 6c 64 65 64 20 62 | 79 20 6d 61 6b 65 2d 61 |ielded b|y make-a|
|000004a0| 75 74 6f 2d 73 61 76 65 | 2d 66 69 6c 65 2d 6e 61 |uto-save|-file-na|
|000004b0| 6d 65 2e 0a 46 49 4c 45 | 4e 41 4d 45 20 73 68 6f |me..FILE|NAME sho|
|000004c0| 75 6c 64 20 6c 61 63 6b | 20 73 6c 61 73 68 65 73 |uld lack| slashes|
|000004d0| 2e 0a 54 68 69 73 20 69 | 73 20 61 20 73 65 70 61 |..This i|s a sepa|
|000004e0| 72 61 74 65 20 66 75 6e | 63 74 69 6f 6e 20 73 6f |rate fun|ction so|
|000004f0| 20 79 6f 75 72 20 2e 65 | 6d 61 63 73 20 66 69 6c | your .e|macs fil|
|00000500| 65 20 6f 72 20 73 69 74 | 65 2d 69 6e 69 74 2e 65 |e or sit|e-init.e|
|00000510| 6c 20 63 61 6e 20 72 65 | 64 65 66 69 6e 65 20 69 |l can re|define i|
|00000520| 74 2e 22 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |t." (byt|e-code "|
|00000530| c1 c2 08 5c 22 87 22 20 | 5b 66 69 6c 65 6e 61 6d |...\"." |[filenam|
|00000540| 65 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 |e string|-match "|
|00000550| 5e 5f 5c 5c 24 2e 2a 5c | 5c 24 22 5d 20 33 29 29 |^_\\$.*\|\$"] 3))|
|00000560| 0a 0a 28 64 65 66 75 6e | 20 76 6d 73 2d 73 75 73 |..(defun| vms-sus|
|00000570| 70 65 6e 64 2d 72 65 73 | 75 6d 65 2d 68 6f 6f 6b |pend-res|ume-hook|
|00000580| 20 6e 69 6c 20 22 5c 0a | 57 68 65 6e 20 72 65 73 | nil "\.|When res|
|00000590| 75 6d 69 6e 67 20 73 75 | 73 70 65 6e 64 65 64 20 |uming su|spended |
|000005a0| 45 6d 61 63 73 2c 20 63 | 68 65 63 6b 20 66 6f 72 |Emacs, c|heck for|
|000005b0| 20 66 69 6c 65 20 74 6f | 20 62 65 20 66 6f 75 6e | file to| be foun|
|000005c0| 64 2e 0a 49 66 20 74 68 | 65 20 6c 6f 67 69 63 61 |d..If th|e logica|
|000005d0| 6c 20 6e 61 6d 65 20 60 | 45 4d 41 43 53 5f 46 49 |l name `|EMACS_FI|
|000005e0| 4c 45 5f 4e 41 4d 45 27 | 20 69 73 20 64 65 66 69 |LE_NAME'| is defi|
|000005f0| 6e 65 64 2c 20 60 66 69 | 6e 64 2d 66 69 6c 65 27 |ned, `fi|nd-file'|
|00000600| 20 74 68 61 74 20 66 69 | 6c 65 2e 22 20 28 62 79 | that fi|le." (by|
|00000610| 74 65 2d 63 6f 64 65 20 | 22 c1 c2 c3 5c 22 18 08 |te-code |"...\"..|
|00000620| 85 0c 00 c4 08 21 29 87 | 22 20 5b 66 69 6c 65 20 |.....!).|" [file |
|00000630| 76 6d 73 2d 73 79 73 74 | 65 6d 2d 69 6e 66 6f 20 |vms-syst|em-info |
|00000640| 22 4c 4f 47 49 43 41 4c | 22 20 22 45 4d 41 43 53 |"LOGICAL|" "EMACS|
|00000650| 5f 46 49 4c 45 5f 4e 41 | 4d 45 22 20 66 69 6e 64 |_FILE_NA|ME" find|
|00000660| 2d 66 69 6c 65 5d 20 33 | 29 29 0a 0a 28 73 65 74 |-file] 3|))..(set|
|00000670| 71 20 73 75 73 70 65 6e | 64 2d 72 65 73 75 6d 65 |q suspen|d-resume|
|00000680| 2d 68 6f 6f 6b 20 28 71 | 75 6f 74 65 20 76 6d 73 |-hook (q|uote vms|
|00000690| 2d 73 75 73 70 65 6e 64 | 2d 72 65 73 75 6d 65 2d |-suspend|-resume-|
|000006a0| 68 6f 6f 6b 29 29 0a 0a | 28 64 65 66 75 6e 20 76 |hook))..|(defun v|
|000006b0| 6d 73 2d 73 75 73 70 65 | 6e 64 2d 68 6f 6f 6b 20 |ms-suspe|nd-hook |
|000006c0| 6e 69 6c 20 22 5c 0a 44 | 6f 6e 27 74 20 61 6c 6c |nil "\.D|on't all|
|000006d0| 6f 77 20 73 75 73 70 65 | 6e 64 69 6e 67 20 69 66 |ow suspe|nding if|
|000006e0| 20 6c 6f 67 69 63 61 6c | 20 6e 61 6d 65 20 60 44 | logical| name `D|
|000006f0| 4f 4e 54 5f 53 55 53 50 | 45 4e 44 5f 45 4d 41 43 |ONT_SUSP|END_EMAC|
|00000700| 53 27 20 69 73 20 64 65 | 66 69 6e 65 64 2e 22 20 |S' is de|fined." |
|00000710| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c1 c2 c3 5c |(byte-co|de "...\|
|00000720| 22 85 0a 00 c4 c5 21 88 | c0 87 22 20 5b 6e 69 6c |".....!.|.." [nil|
|00000730| 20 76 6d 73 2d 73 79 73 | 74 65 6d 2d 69 6e 66 6f | vms-sys|tem-info|
|00000740| 20 22 4c 4f 47 49 43 41 | 4c 22 20 22 44 4f 4e 54 | "LOGICA|L" "DONT|
|00000750| 5f 53 55 53 50 45 4e 44 | 5f 45 4d 41 43 53 22 20 |_SUSPEND|_EMACS" |
|00000760| 65 72 72 6f 72 20 22 43 | 61 6e 27 74 20 73 75 73 |error "C|an't sus|
|00000770| 70 65 6e 64 20 74 68 69 | 73 20 65 6d 61 63 73 22 |pend thi|s emacs"|
|00000780| 5d 20 33 29 29 0a 0a 28 | 73 65 74 71 20 73 75 73 |] 3))..(|setq sus|
|00000790| 70 65 6e 64 2d 68 6f 6f | 6b 20 28 71 75 6f 74 65 |pend-hoo|k (quote|
|000007a0| 20 76 6d 73 2d 73 75 73 | 70 65 6e 64 2d 68 6f 6f | vms-sus|pend-hoo|
|000007b0| 6b 29 29 0a | |k)). | |
+--------+-------------------------+-------------------------+--------+--------+