Re: [racket-users] Automated method for making racket package installs consistent?

2020-10-12 Thread Sam Tobin-Hochstadt
The list of explicitly-installed packages is available from `raco pkg
show`. You could use a script to parse that, or you can use
`installed-pkg-table` from `pkg/lib` to get the list in Racket.

Sam

On Sun, Oct 11, 2020 at 11:03 AM primer  wrote:
>
> On Sunday, October 11, 2020 at 1:35:24 AM UTC-7 William J. Bowman wrote:
>>
>> I'm not sure what you're asking: is your question equivalent to figuring out 
>> which packages are explicitly installed?
>
>
> That's part of the problem.  I have several computers, each with racket 
> installed.  I'd like to get them on the same page in terms of the explicitly 
> installed packages, which are currently different on each machine depending 
> on what I played with at the time.
>
> So I imagine the workflow to be something like this:
> 1.  On machine A, do something that generates a list of explicitly installed 
> packages
> 2.  Do something on machine B to bring in that list of packages and 
> automatically install them, while not disturbing any explicit packages 
> already installed on B
> 3. Repeat steps 1 and 2 starting with the now updated B.  After this A and B 
> should be in sync.
>
> --
> 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/6cbeacf9-cebe-4c1a-9d49-9fe75d2eb39dn%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/CAK%3DHD%2Bbe2rfqCZdThNwdLVbsrU99NBRVKQ-eQTO7GaHrnyp9Mw%40mail.gmail.com.


Re: [racket-users] Automated method for making racket package installs consistent?

2020-10-12 Thread schle...@gmail.com
This is just a suggestion, that does not help with your current dilemma, a 
strategy how you could prevent it in the future:

Create or expand your personal dotfile repository, within that repository 
create a folder my-racket-packages, within that folder create a info.rkt:
#lang info
(define collection "my-racket-packages")
(define deps
  (list "lens"
"opengl"
"gregor"
"add your own packages here"))

This way you can create a personal package that lists all of the packages 
that you play around with explicitly.
https://docs.racket-lang.org/pkg/metadata.html
You can then just use drracket or raco to install that package locally.
Within the directory:
raco pkg install

to install the package.
When the dotfiles have changed, within the my-racket-packages directory:
raco pkg update --auto

I know this solution requires you to update the package manually, but if 
you install a package via raco pkg install , you might as 
well add it to the info.rkt instead.
This way you have a single source of truth, instead of having to sync 
multiple different installations.

Instead of my-racket-packages you also could name it my-racket-experiments 
and save your experiment sessions with scripts along with the dependencies.
You never have to publish that package if you don't want to.



primer schrieb am Sonntag, 11. Oktober 2020 um 17:03:02 UTC+2:

> On Sunday, October 11, 2020 at 1:35:24 AM UTC-7 William J. Bowman wrote:
>
>> I'm not sure what you're asking: is your question equivalent to figuring 
>> out which packages are explicitly installed? 
>>
>
> That's part of the problem.  I have several computers, each with racket 
> installed.  I'd like to get them on the same page in terms of the 
> explicitly installed packages, which are currently different on each 
> machine depending on what I played with at the time.
>
> So I imagine the workflow to be something like this:
> 1.  On machine A, do something that generates a list of explicitly 
> installed packages
> 2.  Do something on machine B to bring in that list of packages and 
> automatically install them, while not disturbing any explicit packages 
> already installed on B
> 3. Repeat steps 1 and 2 starting with the now updated B.  After this A and 
> B should be in sync.
>
>

-- 
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/9857bd34-9022-44a0-a9a2-34c6d63e7446n%40googlegroups.com.


Re: [racket-users] [DrRacket] Is there a way to go to last edit location?

2020-10-12 Thread Laurent
I couldn't find an easy way to do this. (As a hack, I even tried undo+redo,
but this also includes cursor movements apparently, so it doesn't help.)

AFAICT, the undo history is buried under several private layers, so it's
inaccessible from `send` (and thus currently not accessible from
Quickscript), but a plugin may do. Augmenting `on-insert`:
https://docs.racket-lang.org/gui/text_.html?q=on-insert#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-insert%29%29
to record the last insert position should work.


On Fri, Oct 9, 2020 at 10:46 AM Rock Nie  wrote:

> Hi,
>
> When I am using DrRacket recently, I often find myself wanting to go back
> to the last edit location which I can do in other editors. However, I did
> not find a similar function in DrRacket. Is there a way to do this? With a
> plugin maybe?
>
> Rock
>
> --
> 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/CABygVQzM_8A3c0inxigGyz48pOnttx2r2XER0gDzidStcuOF-w%40mail.gmail.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/CABNTSaE4gJAoeJcO9EbDegA6UC9qqS7whJR0PEC8nnORZhz5cg%40mail.gmail.com.