[racket-users] Unusable mail group

2020-11-28 Thread Albert Wagner
My actual email address is:  albert.wag...@mail.com, NOT the email above in 
"From"
I don't use my gmail account.  
I can find no  way to change my email account in this URL:
https://groups.google.com/g/racket-users

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/cf97db2a-9a38-4a72-bc7a-38a325e3b190n%40googlegroups.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Robby Findler
I've pushed a change to DrRacket so you can set a preference in it to turn
the blink off. As Philip says, the more difficult part will be getting the
preference from the OS but at least that's a start.

Robby


On Sat, Nov 28, 2020 at 2:49 PM Philip McGrath 
wrote:

> On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
> racket-users@googlegroups.com> wrote:
>
>> (But it is still a pity that there's no config option to turn off
>> blinking in DrRacket.)
>>
>
> I agree that this would be a valuable feature to add, not just to DrRacket
> but to `racket/gui` in general. It seems the blinking behavior is
> controlled with a hard-coded interval here:
> https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
> Probably the hard part of a solution would be detecting the user's
> preference properly across platforms.
>
> In the meantime, I think it would be possible for a DrRacket plugin
> 
> to use `drracket:get/extend:extend-interactions-text` and
> `drracket:get/extend:extend-definitions-text` to override the
> `blink-caret`
> 
> method with a no-op.
>
> -Philip
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/01000176109e430d-5ed26ea0-2ae2-440b-b2f3-1c1c3115f50c-00%40email.amazonses.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOOJTbHarVP-jW-7JF%3DjD_e3jN_btJ1uk-ZWufD_mChiWw%40mail.gmail.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Philip McGrath
I put up a very quick version on GitHub: 
https://github.com/LiberalArtist/disable-blink-caret-drracket-tool

You should be able to install it with `raco pkg install 
https://github.com/LiberalArtist/disable-blink-caret-drracket-tool`.

Hope this helps!

-Philip
On Saturday, November 28, 2020 at 3:49:39 PM UTC-5 Philip McGrath wrote:

> On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
> racket...@googlegroups.com> wrote:
>
>> (But it is still a pity that there's no config option to turn off 
>> blinking in DrRacket.)
>>
>
> I agree that this would be a valuable feature to add, not just to DrRacket 
> but to `racket/gui` in general. It seems the blinking behavior is 
> controlled with a hard-coded interval here: 
> https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
>  
> Probably the hard part of a solution would be detecting the user's 
> preference properly across platforms.
>
> In the meantime, I think it would be possible for a DrRacket plugin 
> 
>  
> to use `drracket:get/extend:extend-interactions-text` and 
> `drracket:get/extend:extend-definitions-text` to override the 
> `blink-caret` 
> 
>  
> method with a no-op.
>
> -Philip
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/3cd9b003-43d6-4611-85f3-69ce981705ddn%40googlegroups.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Philip McGrath
On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
racket-users@googlegroups.com> wrote:

> (But it is still a pity that there's no config option to turn off blinking
> in DrRacket.)
>

I agree that this would be a valuable feature to add, not just to DrRacket
but to `racket/gui` in general. It seems the blinking behavior is
controlled with a hard-coded interval here:
https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
Probably the hard part of a solution would be detecting the user's
preference properly across platforms.

In the meantime, I think it would be possible for a DrRacket plugin

to use `drracket:get/extend:extend-interactions-text` and
`drracket:get/extend:extend-definitions-text` to override the `blink-caret`

method with a no-op.

-Philip

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/01000176109e430d-5ed26ea0-2ae2-440b-b2f3-1c1c3115f50c-00%40email.amazonses.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread 'Mark' via Racket Users
I didn't know about that tool, I'll use it as I learn. Thanks!
(But it is still a pity that there's no config option to turn off blinking 
in DrRacket.)

On Saturday, November 28, 2020 at 5:10:07 PM UTC btme...@gmail.com wrote:

> I'm not sure how to disable cursor blink in DrRacket, but your 
> installation comes with a few other executables that are text only - such 
> as "gracket-text" the cursor does not blink on my installation (MacOS, 
> Racket 7.9 (bc))
>
> On Sat, Nov 28, 2020 at 4:54 AM 'Mark' via Racket Users <
> racket...@googlegroups.com> wrote:
>
>> I've just downloaded and installed Racket to try it out.
>>
>> But on both Linux and Windows the caret blinks inside DrRacket which 
>> makes it unusable for me.
>>
>> Is it possible to stop the blinking?
>>
>> On Windows I've set the system-wide caret not to blink and every other 
>> Windows program I've used respects this (except for Tcl/Tk's ttk widgets). 
>> On Linux it is trickier since I have to switch it off separately for Gtk, 
>> Qt, .Xdefaults, and .gvimrc,  but apart from login (lightdm to Xfce) I 
>> never see any blinking.
>>
>> I realise that most people _like_ caret blink and find it useful: but I'm 
>> not alone in not being able to work with it. See, e.g., 
>> https://jurta.org/en/prog/noblink
>>
>> I guess in the meantime I'll keep reading the racket docs and try it 
>> using vim.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/d72b60c5-c9c7-44e4-8e56-f2df4a5e1b46n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/e472a55d-0a1b-47b4-9f19-a943611e5039n%40googlegroups.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Tim Meehan
I'm not sure how to disable cursor blink in DrRacket, but your installation
comes with a few other executables that are text only - such as
"gracket-text" the cursor does not blink on my installation (MacOS, Racket
7.9 (bc))

On Sat, Nov 28, 2020 at 4:54 AM 'Mark' via Racket Users <
racket-users@googlegroups.com> wrote:

> I've just downloaded and installed Racket to try it out.
>
> But on both Linux and Windows the caret blinks inside DrRacket which makes
> it unusable for me.
>
> Is it possible to stop the blinking?
>
> On Windows I've set the system-wide caret not to blink and every other
> Windows program I've used respects this (except for Tcl/Tk's ttk widgets).
> On Linux it is trickier since I have to switch it off separately for Gtk,
> Qt, .Xdefaults, and .gvimrc,  but apart from login (lightdm to Xfce) I
> never see any blinking.
>
> I realise that most people _like_ caret blink and find it useful: but I'm
> not alone in not being able to work with it. See, e.g.,
> https://jurta.org/en/prog/noblink
>
> I guess in the meantime I'll keep reading the racket docs and try it using
> vim.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/d72b60c5-c9c7-44e4-8e56-f2df4a5e1b46n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CACgrOxK6-OuSWnZhe-ntiqtZhAcXOCadepsxBT%3DgBwBH7H8Sxg%40mail.gmail.com.


Re: [racket-users] Passing keywords from a list

2020-11-28 Thread Dimaugh Silvestris
Just in case somebody has a similar issue and finds this:
In the end I used keyword-apply/sort , which doesn't requiere keywords to 
follow the same order they do in the function definition.

On Thursday, 26 November 2020 at 10:42:40 UTC+1 Dimaugh Silvestris wrote:

> Thanks! Your answer led me to find keyword-apply, so I just wrote (I use 
> def as abbreviation for define):
>
> (def (parse-args xs)
>   (def (fn ks kvs vs xs)
> (cond [(empty? xs)  (map reverse (list ks kvs vs))]
>   [(keyword? (car xs))
>(fn (cons (car xs) ks) (cons (cadr xs) kvs) vs (drop xs 2))]
>   [else (fn ks kvs (cons (car xs) vs) (cdr xs))]))
>   (fn '[] '[] '[] xs))
>
> (def (func-args func args)
>   (apply keyword-apply func (parse-args args)))
>
> And now I can do 
> :
> (def (suma a b #:c [c 0]) (+ a b c))
> (func-args suma (list 1 2 #:c 3))
>
> and it works fine.
>
> Thanks again!
> On Thursday, 26 November 2020 at 10:06:26 UTC+1 sorawe...@gmail.com wrote:
>
>> If you are OK with preprocessing the argument list into a dictionary, 
>> then you can use keyword-apply/dict 
>> 
>> .
>>
>> For example:
>>
>> #lang racket
>>
>> (require racket/dict)
>>
>> (define proc (lambda (#:color color #:size size) (display (cons color 
>> size
>> (define args '(#:color "red" #:size 3))
>> (define args*
>>   (for/hash ([chunk (in-slice 2 args)])
>> (values (first chunk) (second chunk
>>
>> (keyword-apply/dict proc args* '())
>>
>>
>> On Thu, Nov 26, 2020 at 12:53 AM Dimaugh Silvestris <
>> dimaughs...@gmail.com> wrote:
>>
>>> Is it possible to reproduce this behavior
>>> ((lambda (#:color color #:size size) (display (cons color size))) 
>>> #:color "red" #:size 3)
>>> when what I have is a list such as '(#:color "red" #:size 3) ?
>>> How can I feed keyword arguments stored in a list as symbols in a way 
>>> that doesn't involve parsing manually?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to racket-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/racket-users/06a1b45b-77ca-4595-b5b6-0b4ce01fe026n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/432319aa-ae3c-4644-8ac8-1de12f0b6c39n%40googlegroups.com.


[racket-users] DrRacket caret blink

2020-11-28 Thread 'Mark' via Racket Users
I've just downloaded and installed Racket to try it out.

But on both Linux and Windows the caret blinks inside DrRacket which makes 
it unusable for me.

Is it possible to stop the blinking?

On Windows I've set the system-wide caret not to blink and every other 
Windows program I've used respects this (except for Tcl/Tk's ttk widgets). 
On Linux it is trickier since I have to switch it off separately for Gtk, 
Qt, .Xdefaults, and .gvimrc,  but apart from login (lightdm to Xfce) I 
never see any blinking.

I realise that most people _like_ caret blink and find it useful: but I'm 
not alone in not being able to work with it. See, e.g., 
https://jurta.org/en/prog/noblink

I guess in the meantime I'll keep reading the racket docs and try it using 
vim.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/d72b60c5-c9c7-44e4-8e56-f2df4a5e1b46n%40googlegroups.com.