Dimitris Vyzovitis | 1 Jul 01:22 2007
Picon

Re: Hacking Emacs

On Sat, 9 Jun 2007, Eli Barzilay wrote:

> Due to a request, here's how I see an Emacs hack to make it do the
> DrScheme "run" thing.  (With apologies to DrScheme-jr...)

Now, this looks interesting:
http://mumble.net/~campbell/slime48.html

I only had a cursory look at the scheme48 code, but most of it should be
reusable with some macro hackery.

-- vyzo

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

Grant Rettke | 1 Jul 17:47 2007
Picon

REPL getting disconnected from the editor contents?

Do any of you ever notice that once in a while the repl will get
"disconnected" from the contents of the editor? This has happened to
me perhaps once for every few hours that I've used DrS.

What happens is that you click the run button and the repl resets, but
the contents of the editor are not available to the repl. I'm not sure
how to reproduce this right now, but I do know that restarting DrS
fixes this.
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Corey Sweeney | 1 Jul 22:05 2007
Picon

"Check Syntax" is totally pimpin

I just figured out this weekend what the "Check Syntax" button really does.

{For those who don't know, clicking "Check Syntax" on a .scm file,
will turn every symbol red if is not defined in the file, or imported
with a "require".  This means you can see all the problems you would
have *if* you turned it into a module (.ss file), without breaking
your program to find out.  {actually it won't mention things that are
inside a "multimedia object"... probably because you can't see the
symbols in the first place}}

Anyway, I just wanted to say that the "Check Syntax" feature is totally pimpin.

Now that I've tried making a few modules, is it possible to get a
listing of all the .ss files, and everything they provide?  (I want to
print it all out, to see if my module structure makes sence)

Also, "Module browser" looks usefull too.  Is there a way to print it out?

Corey

--

-- 
((lambda (y) (y y)) (lambda (y) (y y)))
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Corey Sweeney | 2 Jul 00:07 2007
Picon

Project management

I seem toI have managed to exceed the 2 Gigs of memory in my new
machine during development, so I'm interested in looking at more
efficent ways of doing project management.

Right now, I have a linux (bash) script launch 4 copies of drscheme,
each copy with about 10 tabs.

Is there a way to open a second window from the command prompt, and
load files into tabs in the second window?  My idea is that by only
loading drscheme once, I'm hoping it will save memory.

Or, alternatively, is there a way of opening windows, and loading
files into tabs from the interaction prompt?  Something like:

> (define window1 (drscheme:new-window))
> (drscheme:load-file-in-tab "file1.scm" window1)
> (drscheme:load-file -in-tab "file2.ss" window1)
> (define window2 (drscheme:new-window))
> (drscheme:load-file-in-tab  "file3.ss" window2)
> (drscheme:load-file-in-tab  "file4.scm" window2)

Due to some conversations I've had in the past, I'm guessing that
would have to be nested,  I.E. every time I wanted to edit a file,
load drscheme, and have it open a file, which has (require
"drscheme.ss") or something in it, and auto-run it.  (by the way, how
do you "auto-run" a program in drscheme?), then type something like
that at the interaction prompt, which would open the tabs in a nested
copy of drscheme?  Which would give me 2 running copies of drscheme,
which while non-ideal, would be better then 4.

(Continue reading)

Robby Findler | 2 Jul 00:45 2007

Re: Project management

Maybe it helps to know that, when you open a new file, it goes into
the frontmost drscheme window as a tab (when you have the open-in-tabs
preference set)?

Robby

On 7/1/07, Corey Sweeney <corey.sweeney@...> wrote:
> I seem toI have managed to exceed the 2 Gigs of memory in my new
> machine during development, so I'm interested in looking at more
> efficent ways of doing project management.
>
> Right now, I have a linux (bash) script launch 4 copies of drscheme,
> each copy with about 10 tabs.
>
> Is there a way to open a second window from the command prompt, and
> load files into tabs in the second window?  My idea is that by only
> loading drscheme once, I'm hoping it will save memory.
>
>
> Or, alternatively, is there a way of opening windows, and loading
> files into tabs from the interaction prompt?  Something like:
>
> > (define window1 (drscheme:new-window))
> > (drscheme:load-file-in-tab "file1.scm" window1)
> > (drscheme:load-file -in-tab "file2.ss" window1)
> > (define window2 (drscheme:new-window))
> > (drscheme:load-file-in-tab  "file3.ss" window2)
> > (drscheme:load-file-in-tab  "file4.scm" window2)
>
> Due to some conversations I've had in the past, I'm guessing that
(Continue reading)

Corey Sweeney | 2 Jul 05:55 2007
Picon

Re: Project management

I see.  Is there a "open new window" command, and a "load file"
command, so that I could do something like:

> (drscheme:new-window)
> (drscheme:load-file "file-for-win-1-tab-1")
> (drscheme:load-file "file-for-win-1-tab-2")
> (drscheme:new-window)
> (drscheme:load-file "file-for-win-2-tab-1")
> (drscheme:load-file "file-for-win-2-tab-2")

from a "interactions window"?

(with some possible "sleeps" to avoid timing issues)

Or perhaps some keybindings (that don't interfere with the emacs
keybindings) could be written for "open new window" and "open file",
and I could write a project manager from the macro language of the
window manager....

Corey

On 7/1/07, Robby Findler <robby@...> wrote:
> Maybe it helps to know that, when you open a new file, it goes into
> the frontmost drscheme window as a tab (when you have the open-in-tabs
> preference set)?
>
> Robby
>
> On 7/1/07, Corey Sweeney <corey.sweeney@...> wrote:
> > I seem toI have managed to exceed the 2 Gigs of memory in my new
(Continue reading)

Robby Findler | 2 Jul 05:59 2007

Re: Project management

No, not from the interactions window. Programs running in drscheme
cannot tell that they are running in drscheme (by design!). Otherwise,
it would be too easy to write a program that would work in the
development environment, but wouldn't work in the deployment
environment.

You can, however, make a tool that would do that.

Open file and open new window already have keybindings, of course. See
the menu shortcuts. Also, control-x control-f opens a new file. (I
don't think that there is anoter way to open a new window, but you
coudl add one with a keybindings file).

Finally, just as a side-note, adding sleeps to avoid timing issues is
a sure way to write buggy code. But, even if you do go to the tool
route, you wouldn't need them. There's only one thread involved.

Robby

On 7/1/07, Corey Sweeney <corey.sweeney@...> wrote:
> I see.  Is there a "open new window" command, and a "load file"
> command, so that I could do something like:
>
>
> > (drscheme:new-window)
> > (drscheme:load-file "file-for-win-1-tab-1")
> > (drscheme:load-file "file-for-win-1-tab-2")
> > (drscheme:new-window)
> > (drscheme:load-file "file-for-win-2-tab-1")
> > (drscheme:load-file "file-for-win-2-tab-2")
(Continue reading)

Noel Welsh | 2 Jul 09:20 2007
Picon

Re: Project management

At least on OS X, if you have a copy of DrScheme open and you type

  drscheme some-file.ss

on the command line, some-file.ss will be loaded as a new tab in the
already running instance of DrScheme.  I think this is what Robby is
saying, but it might be worth clarifying.

I'm surprised you need some 40 files open at once.  I certainly can't
keep that amount of information in my head at once.

N.

On 7/1/07, Corey Sweeney <corey.sweeney@...> wrote:
> I seem toI have managed to exceed the 2 Gigs of memory in my new
> machine during development, so I'm interested in looking at more
> efficent ways of doing project management.
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

hendrik | 2 Jul 14:25 2007

emacs key bindinge -- WAS: Re: Project management

On Sun, Jul 01, 2007 at 10:55:04PM -0500, Corey Sweeney wrote:
> 
> Or perhaps some keybindings (that don't interfere with the emacs
> keybindings) could be written for "open new window" and "open file",
> and I could write a project manager from the macro language of the
> window manager....

There's a keybinding in real emacs already to open a new window; but I 
don't recall what it is.

Speaking of emacs bindings, when I installed drscheme recently, Debian 
told me it had emacs keyubindings, yet I find control-A selevting all 
instead of going to the start of a line.  Is that a bug, or do I have to 
do something to get the real emacs keybindings?  Except for control-A, 
the only way I have to select text and paste it elsewhere seems to be 
with the mouse.  Can I get control- <at> , control-W, escape-W, and control-Y 
to work?

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

Jens Axel Søgaard | 2 Jul 14:31 2007
Picon

Re: emacs key bindinge -- WAS: Re: Project management

hendrik@... skrev:
> On Sun, Jul 01, 2007 at 10:55:04PM -0500, Corey Sweeney wrote:
>> Or perhaps some keybindings (that don't interfere with the emacs
>> keybindings) could be written for "open new window" and "open file",
>> and I could write a project manager from the macro language of the
>> window manager....
> 
> There's a keybinding in real emacs already to open a new window; but I 
> don't recall what it is.
> 
> Speaking of emacs bindings, when I installed drscheme recently, Debian 
> told me it had emacs keyubindings, yet I find control-A selevting all 
> instead of going to the start of a line.  Is that a bug, or do I have to 
> do something to get the real emacs keybindings?  

  - In the "Edit" menu choose "Preferences".
  - Choose the "Editing" tab, then choose the subtab "General".
  - Remove the tick in "Enable keybindings in menus"

--

-- 
Jens Axel Søgaard

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


Gmane