racket/collects
Eli Barzilay e8d3223ce5 Add an example for extending xrepl, the very stupid way.
For the record, a way to do this permanently is to add something like
this to your ~/.racketrc:

  (eval '(begin
           (saved-values-char #\~)
           (defcommand eli "stuff" "eli says" ["Make eli say stuff"]
             (printf "Eli says: ~a\n" (getarg 'line)))
           (defcommand er #f "alias for errortrace" ["Runs errortrace"]
             (run-command 'errortrace)))
        (module->namespace 'xrepl/xrepl))

But this is too stupid even for a section that has "Hacking" in its title.

There should definitely be an organized way to do this.  This will
require several things:

* A decent API for doing these things for user code.  (So the above
  `eval' turns to a `require' for your file which uses this API.)  This
  goes beyond just documenting what's in there -- there are issues to
  resolve like some argument reading protocol (separating the
  declaration of argument types from the command implementation code),
  so a new command can call another with arguments that it reads.

* There should also be some ,set command for customization
  options (reading and changing) and code to use the preference file for
  doing that.  I almost started to do this, but currently there are only
  three values that this could apply to (`saved-values-char', `-number',
  and `wrap-column' (which might be better to dump and use
  `pretty-print-columns' instead)).

* Also, it might be nice to have some command to do the same for simple
  aliases.  (But this might get into shady parsing issues if it's more
  than just "I want `foo' to be an alias for an existing `bar' command".)
(cherry picked from commit 3c1e624916)
2011-07-19 11:36:17 -04:00
..
2htdp Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained. 2011-07-19 11:28:47 -04:00
algol60 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
at-exp/lang
browser ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
combinator-parser ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
compiler revert unnecessary refactoring 2011-07-19 11:23:19 -04:00
config ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
data docs reorganization 2011-07-01 17:16:53 -06:00
datalog docs reorganization 2011-07-01 17:16:53 -06:00
defaults
deinprogramm restore deinprogramm reader module suffix 2011-07-19 11:23:16 -04:00
drracket The rewriting machanism no longer inserts with-handler everywhere. 2011-07-06 00:28:45 -04:00
drscheme remove compat bins: DrScheme, MrEd.exe, MrEd.app 2011-04-15 07:49:45 -06:00
dynext ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
embedded-gui ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
eopl ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
errortrace Typo in the `errortrace' language description. 2011-07-19 11:36:02 -04:00
ffi ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
file ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
framework ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
frtime ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
games ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
graphics ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
gui-debugger fix debugger for syntax taints 2011-07-07 13:38:14 -06:00
guibuilder ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
handin-client ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
handin-server docs reorganization 2011-07-01 17:16:53 -06:00
help ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
hierlist remove docs tests that no one was interested in 2011-07-01 11:38:09 +08:00
honu ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
htdp Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained. 2011-07-19 11:28:47 -04:00
html docs reorganization 2011-07-01 17:16:53 -06:00
icons Fix some xv-induced binary junk. 2011-06-28 03:07:38 -04:00
lang Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained. 2011-07-19 11:28:47 -04:00
launcher ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
lazy ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
macro-debugger macro-stepper: disable taint display until correct 2011-07-19 11:12:42 -04:00
make ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
meta New `xrepl' collection. 2011-07-14 17:29:53 -04:00
mred change GDK_POINTER_MOTION_HINT_MASK back to GDK_POINTER_MOTION_MASK 2011-07-19 11:22:42 -04:00
mrlib ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
mysterx ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
mzcom docs reorganization 2011-07-01 17:16:53 -06:00
mzlib Corrected documentation of quote-module-name to indicate that it does not 2011-07-11 21:29:54 -04:00
mzscheme ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
net docs reorganization 2011-07-01 17:16:53 -06:00
openssl ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
parser-tools ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
picturing-programs Fixed some more error messages. 2011-07-14 17:23:38 -04:00
plai ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
planet ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
plot ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
preprocessor ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
profile ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
r5rs ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
r6rs ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
racket fix missing argument to format 2011-07-19 11:28:53 -04:00
racklog docs reorganization 2011-07-01 17:16:53 -06:00
rackunit rackunit: fix require/expose to work on variable-like macros 2011-07-07 14:00:22 -06:00
raco ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
reader/lang
readline Use (banner) instead of a fixed "Welcome to Racket" in the More tutorial 2011-07-19 11:35:59 -04:00
redex ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
repo-time-stamp ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
rnrs remove docs tests that no one was interested in 2011-07-01 11:38:09 +08:00
s-exp/lang
scheme remove syntax certificates; add syntax taints 2011-06-29 19:15:48 -06:00
schemeunit remove docs tests that no one was interested in 2011-07-01 11:38:09 +08:00
scribble generalize `defform' & co. to better support abstraction 2011-07-07 10:45:43 -06:00
scribblings Hook XREPL into a few places where readline' and enter!' are mentioned. 2011-07-19 11:36:14 -04:00
scriblib ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
setup limit build parallelism to 4 on a 32-bit machine 2011-07-19 11:13:00 -04:00
sgl ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
sirmail ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
slatex ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
slideshow slideshow/pict: add `rotate' 2011-07-04 16:26:09 -06:00
srfi ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
srpersist ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
stepper ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
string-constants ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
swindle ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
syntax fix `get-module-path' and associated exception 2011-07-19 11:28:45 -04:00
syntax-color docs reorganization 2011-07-01 17:16:53 -06:00
teachpack Corrected signature of scene+line to match examples and actual behavior 2011-07-14 17:29:43 -04:00
test-box-recovery ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
test-engine Updated the error message of check-expect. Fine tuning of the error messages. 2011-07-06 05:35:25 -04:00
tests Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained. 2011-07-19 11:28:47 -04:00
tex2page ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
texpict slideshow/pict: add `rotate' 2011-07-04 16:26:09 -06:00
trace ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
typed ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
typed-scheme Corrected documentation of quote-module-name to indicate that it does not 2011-07-11 21:29:54 -04:00
unstable New `xrepl' collection. 2011-07-14 17:29:53 -04:00
version ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
waterworld ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
web-server Typo in formlet docs 2011-07-06 15:24:15 -06:00
wxme ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
xml ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
xrepl Add an example for extending xrepl, the very stupid way. 2011-07-19 11:36:17 -04:00
.gitignore