chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e41b452
)
dot/lisp-init.lisp: Ignore shebang lines.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 2 Jun 2011 22:22:22 +0000
(23:22 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 12 Jul 2011 19:00:34 +0000
(20:00 +0100)
This makes it possible to load programs which were expecting to run
under CL-LAUNCH.
dot/lisp-init.lisp
patch
|
blob
|
blame
|
history
diff --git
a/dot/lisp-init.lisp
b/dot/lisp-init.lisp
index 3b5806de5ca75d4d9e9cac46d44d1c3fdb97ae86..8a543e098cacaf465f8ce77f9ff3d71fb9368699 100644
(file)
--- a/
dot/lisp-init.lisp
+++ b/
dot/lisp-init.lisp
@@
-23,6
+23,13
@@
(setf *compile-verbose* nil)
;; Various fixings.
#+clisp (setf custom:*parse-namestring-ansi* t)
+;; Shebang.
+(set-dispatch-macro-character
+ #\# #\!
+ (lambda (stream char arg)
+ (declare (ignore char arg))
+ (values (read-line stream))))
+
;; Start up swank.
(defun mdw-hacks:crank-swank (&rest #1=#:args)
(let ((#2=#:swank #3=(find-package "SWANK")))