lisp 1.7 KB

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