A brief note on diff and CL, for people who write functions with more than four lines of body -

A brief note on diff and CL, for people who write functions with more than four lines of body -

A brief note on diff and CL, for people who write functions with more than four lines of body -

:; cvs diff u -F '^(def'  url.lisp
Index: url.lisp
===================================================================
RCS file: /usr/local/src/cvs/araneida/url.lisp,v
retrieving revision 1.11
diff -u -F^(def -r1.11 url.lisp
-- url.lisp    10 Jul 2003 08:53:19 -0000      1.11
+++ url.lisp    18 May 2004 10:30:13 -0000
 -252,7 +252,7  (defun urlstring-escape (url-string)
   (apply #'concatenate 'string
    (loop for c across url-string
          if (urlstring-reserved-p c)
-         collect (format nil "%~X" (char-code c))
+         collect (format nil "%~2,'0X" (char-code c))
          else
          collect (string c))))

Emphasis mine.


telent netowrks

Geeky stuff about what I do. Many include Lisp, Android, Javascript, Linux and matters arising. For my other personality (less tech and more skating/cycling), see coruskate