lisp (267897) | lisp (298192) |
---|---|
1 2#------------------------------------------------------------------------------ | 1 2#------------------------------------------------------------------------------ |
3# $File: lisp,v 1.23 2009/09/19 16:28:10 christos Exp $ | 3# $File: lisp,v 1.24 2015/11/30 20:54:26 christos Exp $ |
4# lisp: file(1) magic for lisp programs 5# 6# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com) 7 8# updated by Joerg Jenderek 9# GRR: This lot is too weak 10#0 string ;; 11# windows INF files often begin with semicolon and use CRLF as line end --- 9 unchanged lines hidden (view full) --- 21!:mime text/x-lisp 220 search/4096 (defun\ Lisp/Scheme program text 23!:mime text/x-lisp 240 search/4096 (autoload\ Lisp/Scheme program text 25!:mime text/x-lisp 260 search/4096 (custom-set-variables\ Lisp/Scheme program text 27!:mime text/x-lisp 28 | 4# lisp: file(1) magic for lisp programs 5# 6# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com) 7 8# updated by Joerg Jenderek 9# GRR: This lot is too weak 10#0 string ;; 11# windows INF files often begin with semicolon and use CRLF as line end --- 9 unchanged lines hidden (view full) --- 21!:mime text/x-lisp 220 search/4096 (defun\ Lisp/Scheme program text 23!:mime text/x-lisp 240 search/4096 (autoload\ Lisp/Scheme program text 25!:mime text/x-lisp 260 search/4096 (custom-set-variables\ Lisp/Scheme program text 27!:mime text/x-lisp 28 |
29# URL: https://en.wikipedia.org/wiki/Emacs_Lisp 30# Reference: http://ftp.gnu.org/old-gnu/emacs/elisp-manual-18-1.03.tar.gz 31# Update: Joerg Jenderek |
|
29# Emacs 18 - this is always correct, but not very magical. | 32# Emacs 18 - this is always correct, but not very magical. |
300 string \012( Emacs v18 byte-compiled Lisp data | 330 string \012( 34# look for emacs lisp keywords 35# GRR: split regex because it is too long or get error like 36# lisp, 36: Warning: cannot get string from `^(defun|defvar|defconst|defmacro|setq|fset|put|provide|require|' 37>&0 regex \^(defun|defvar|defconst|defmacro|setq|fset) Emacs v18 byte-compiled Lisp data |
31!:mime application/x-elc | 38!:mime application/x-elc |
39# https://searchcode.com/codesearch/view/2173420/ 40# not really pure text 41!:apple EMAxTEXT 42!:ext elc 43# remaining regex 44>&0 regex \^(put|provide|require|random) Emacs v18 byte-compiled Lisp data 45!:mime application/x-elc 46!:apple EMAxTEXT 47!:ext elc 48# missed cl.elc dbx.elc simple.elc look like normal lisp starting with ;;; 49 |
|
32# Emacs 19+ - ver. recognition added by Ian Springer 33# Also applies to XEmacs 19+ .elc files; could tell them apart with regexs 34# - Chris Chittleborough <cchittleborough@yahoo.com.au> | 50# Emacs 19+ - ver. recognition added by Ian Springer 51# Also applies to XEmacs 19+ .elc files; could tell them apart with regexs 52# - Chris Chittleborough <cchittleborough@yahoo.com.au> |
53# Update: Joerg Jenderek |
|
350 string ;ELC | 540 string ;ELC |
36>4 byte >18 37>4 byte <32 Emacs/XEmacs v%d byte-compiled Lisp data | 55# version\0\0\0 56>4 byte >18 Emacs/XEmacs v%d byte-compiled Lisp data 57# why less than 32 ? does not make sense to me. GNU Emacs version is 24.5 at April 2015 58#>4 byte <32 Emacs/XEmacs v%d byte-compiled Lisp data |
38!:mime application/x-elc | 59!:mime application/x-elc |
60!:apple EMAxTEXT 61!:ext elc |
|
39 40# Files produced by CLISP Common Lisp From: Bruno Haible <haible@ilog.fr> 410 string (SYSTEM::VERSION\040' CLISP byte-compiled Lisp program (pre 2004-03-27) 420 string (|SYSTEM|::|VERSION|\040' CLISP byte-compiled Lisp program text 43 440 long 0x70768BD2 CLISP memory image data 450 long 0xD28B7670 CLISP memory image data, other endian 46 47#.com and .bin for MIT scheme 480 string \372\372\372\372 MIT scheme (library?) 49 50# From: David Allouche <david@allouche.net> 510 search/1 \<TeXmacs| TeXmacs document text 52!:mime text/texmacs | 62 63# Files produced by CLISP Common Lisp From: Bruno Haible <haible@ilog.fr> 640 string (SYSTEM::VERSION\040' CLISP byte-compiled Lisp program (pre 2004-03-27) 650 string (|SYSTEM|::|VERSION|\040' CLISP byte-compiled Lisp program text 66 670 long 0x70768BD2 CLISP memory image data 680 long 0xD28B7670 CLISP memory image data, other endian 69 70#.com and .bin for MIT scheme 710 string \372\372\372\372 MIT scheme (library?) 72 73# From: David Allouche <david@allouche.net> 740 search/1 \<TeXmacs| TeXmacs document text 75!:mime text/texmacs |