lisp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. 0 string ;;
  7. # windows INF files often begin with semicolon and use CRLF as line end
  8. # lisp files are mainly created on unix system with LF as line end
  9. >2 search/2048 !\r Lisp/Scheme program text
  10. >2 search/2048 \r Windows INF file
  11. 0 string (
  12. >1 string if\ Lisp/Scheme program text
  13. >1 string setq\ Lisp/Scheme program text
  14. >1 string defvar\ Lisp/Scheme program text
  15. >1 string autoload\ Lisp/Scheme program text
  16. >1 string custom-set-variables Lisp/Scheme program text
  17. # Emacs 18 - this is always correct, but not very magical.
  18. 0 string \012( Emacs v18 byte-compiled Lisp data
  19. # Emacs 19+ - ver. recognition added by Ian Springer
  20. # Also applies to XEmacs 19+ .elc files; could tell them apart if we had regexp
  21. # support or similar - Chris Chittleborough <cchittleborough@yahoo.com.au>
  22. 0 string ;ELC
  23. >4 byte >19
  24. >4 byte <32 Emacs/XEmacs v%d byte-compiled Lisp data
  25. # Files produced by CLISP Common Lisp From: Bruno Haible <haible@ilog.fr>
  26. 0 string (SYSTEM::VERSION\040' CLISP byte-compiled Lisp program text
  27. 0 long 0x70768BD2 CLISP memory image data
  28. 0 long 0xD28B7670 CLISP memory image data, other endian
  29. # Files produced by GNU gettext
  30. 0 long 0xDE120495 GNU-format message catalog data
  31. 0 long 0x950412DE GNU-format message catalog data
  32. #.com and .bin for MIT scheme
  33. 0 string \372\372\372\372 MIT scheme (library?)
  34. # From: David Allouche <david@allouche.net>
  35. 0 string \<TeXmacs| TeXmacs document text