lisp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #------------------------------------------------------------------------------
  2. # lisp: file(1) magic for lisp programs
  3. #
  4. # various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
  5. # updated by Joerg Jenderek
  6. # GRR: This lot is too weak
  7. #0 string ;;
  8. # windows INF files often begin with semicolon and use CRLF as line end
  9. # lisp files are mainly created on unix system with LF as line end
  10. #>2 search/4096 !\r Lisp/Scheme program text
  11. #>2 search/4096 \r Windows INF file
  12. 0 search/4096 (if\ Lisp/Scheme program text
  13. !:mime text/x-lisp
  14. 0 search/4096 (setq\ Lisp/Scheme program text
  15. !:mime text/x-lisp
  16. 0 search/4096 (defvar\ Lisp/Scheme program text
  17. !:mime text/x-lisp
  18. 0 search/4096 (defparam\ Lisp/Scheme program text
  19. !:mime text/x-lisp
  20. 0 search/4096 (defun\ Lisp/Scheme program text
  21. !:mime text/x-lisp
  22. 0 search/4096 (autoload\ Lisp/Scheme program text
  23. !:mime text/x-lisp
  24. 0 search/4096 (custom-set-variables\ Lisp/Scheme program text
  25. !:mime text/x-lisp
  26. # Emacs 18 - this is always correct, but not very magical.
  27. 0 string \012( Emacs v18 byte-compiled Lisp data
  28. !:mime application/x-elc
  29. # Emacs 19+ - ver. recognition added by Ian Springer
  30. # Also applies to XEmacs 19+ .elc files; could tell them apart with regexs
  31. # - Chris Chittleborough <cchittleborough@yahoo.com.au>
  32. 0 string ;ELC
  33. >4 byte >18
  34. >4 byte <32 Emacs/XEmacs v%d byte-compiled Lisp data
  35. !:mime application/x-elc
  36. # Files produced by CLISP Common Lisp From: Bruno Haible <haible@ilog.fr>
  37. 0 string (SYSTEM::VERSION\040' CLISP byte-compiled Lisp program (pre 2004-03-27)
  38. 0 string (|SYSTEM|::|VERSION|\040' CLISP byte-compiled Lisp program text
  39. 0 long 0x70768BD2 CLISP memory image data
  40. 0 long 0xD28B7670 CLISP memory image data, other endian
  41. #.com and .bin for MIT scheme
  42. 0 string \372\372\372\372 MIT scheme (library?)
  43. # From: David Allouche <david@allouche.net>
  44. 0 search/1 \<TeXmacs| TeXmacs document text
  45. !:mime text/texmacs