lisp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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/2048 !\r Lisp/Scheme program text
  11. #>2 search/2048 \r Windows INF file
  12. 0 search/256 (if\ Lisp/Scheme program text
  13. 0 search/256 (setq\ Lisp/Scheme program text
  14. 0 search/256 (defvar\ Lisp/Scheme program text
  15. 0 search/256 (defparam\ Lisp/Scheme program text
  16. 0 search/256 (defun\ Lisp/Scheme program text
  17. 0 search/256 (autoload\ Lisp/Scheme program text
  18. 0 search/256 (custom-set-variables\ Lisp/Scheme program text
  19. # Emacs 18 - this is always correct, but not very magical.
  20. 0 string \012( Emacs v18 byte-compiled Lisp data
  21. !:mime application/x-elc
  22. # Emacs 19+ - ver. recognition added by Ian Springer
  23. # Also applies to XEmacs 19+ .elc files; could tell them apart with regexs
  24. # - Chris Chittleborough <cchittleborough@yahoo.com.au>
  25. 0 string ;ELC
  26. >4 byte >18
  27. >4 byte <32 Emacs/XEmacs v%d byte-compiled Lisp data
  28. !:mime application/x-elc
  29. # Files produced by CLISP Common Lisp From: Bruno Haible <haible@ilog.fr>
  30. 0 string (SYSTEM::VERSION\040' CLISP byte-compiled Lisp program
  31. 0 long 0x70768BD2 CLISP memory image data
  32. 0 long 0xD28B7670 CLISP memory image data, other endian
  33. # Files produced by GNU gettext
  34. 0 long 0xDE120495 GNU-format message catalog data
  35. 0 long 0x950412DE GNU-format message catalog data
  36. #.com and .bin for MIT scheme
  37. 0 string \372\372\372\372 MIT scheme (library?)
  38. # From: David Allouche <david@allouche.net>
  39. 0 search/1 \<TeXmacs| TeXmacs document text
  40. !:mime text/texmacs