Re: [racket] The behaviour of (list 'one 'two 'three)

2014-01-31 Thread Colin Gan
ts list to the right of the parenthesis and puts ' on all the items between ( and the closing )." So '(one two three) and (list 'one 'two 'three) are the same. '('one 'two 'three) would correspond to (list ''one ''two ''t

[racket] The behaviour of (list 'one 'two 'three)

2014-01-29 Thread Colin Gan
Hi people, The aforementioned s-exp produces the result (one two three). I find this surprising as I do not expect the *list *procedure to unquote the symbols passed to it. Could someone explain why this is so? Regards, Colin Racket Users list: http://lists.racket-lang.

Re: [racket] Writing a single key binding in DrRacket for commenting/uncommenting

2013-11-28 Thread Colin Gan
cs: > > > http://docs.racket-lang.org/gui/editor-overview.html#%28part._editoreol%29 > > Robby > > > > On Wed, Nov 27, 2013 at 6:10 AM, Colin Gan wrote: > > > > Thanks for your pointers Robby. After much digging through of source > code, I seem to have located

Re: [racket] Writing a single key binding in DrRacket for commenting/uncommenting

2013-11-27 Thread Colin Gan
call "message-box", ie: > > (define is-line-commented? > (lambda (editor) > (define ans > (send editor find-string > ";" 'forward (get-start-of-line editor) (get-end-of-line > editor))) > (message-box "hi" (format

[racket] Writing a single key binding in DrRacket for commenting/uncommenting

2013-11-25 Thread Colin Gan
Hi all, I have recently picked up Scheme and would like to customize the key bindings in DrScheme. Specifically, I find the default binding for commenting and uncommenting out to be cumbersome; on OSX it is esc;c:= and esc;c:semicolon. What I would like to achieve is use one key to comment and un