[plt-scheme] stopping doubleclick selection breaking for hyphensand colons when editing scheme

From: Jos Koot (jos.koot at telefonica.net)
Date: Thu Sep 13 11:30:18 EDT 2007

I don't know whether you implemented it correctly or not, but I agree that is 
would be nice if double clicking an identifier would select the whole 
identifier.
Thanks, Jos

((((lambda(x)((((((x x)x)x)x)x)x))
   (lambda(x)(lambda(y)(x(x y)))))
  (lambda(x)(write x)x))
 'greeting)
----- Original Message ----- 
From: "Stephen De Gabrielle" <spdegabrielle at gmail.com>
To: "scheme mail list" <plt-scheme at list.cs.brown.edu>
Sent: Thursday, September 13, 2007 5:25 PM
Subject: [plt-scheme] stopping doubleclick selection breaking for hyphensand 
colons when editing scheme


> Hi,
>
> I've been editing stuff, and was finding it frustrating that compound
> scheme keywords were note selected with a double click - the selection
> broke at the hypen(s)
>
> So I edited framework/private/scheme.ss:
>
>  (define init-wordbreak-map
>    (λ (map)
>      (let ([v (send map get-map #\-)])
>        (send map set-map
>              #\-
>              '(line selection)))))
>
> Adding 'selection' to the list of things that hyphen (#\-) did not break.
>
> Is this the right way to do it?  I could not find an alternative -
> like a configuration file.
>
> I can't immediately see why v is assigned in the let?
>        [v (send map get-map #\-)]
> it doesn't seem to be used or passed?
>
> I do the following for the same effect with colons ;
>  (define init-wordbreak-map
>    (λ (map)
>      (send map set-map  #\- '(line selection))
>      (send map set-map  #\: '(line selection))))
>
> It doesn't seem to break anything (yet)
>
> Cheers,
>
> Stephen
>
>
>
> --
> Stephen De Gabrielle
> s.degabrielle at ucl.ac.uk
> Telephone +44 (0)20 7679 5242 (x45242)
> Mobile                  079 851 890 45
> http://www.uclic.ucl.ac.uk/annb/MaSI.html
> University College London Interaction Centre
> Remax House - 31/32 Alfred Place
> London - WC1E 7DP
>


--------------------------------------------------------------------------------


> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 



Posted on the users mailing list.