Re: [9fans] acme Put doesn't save

2009-03-09 Thread Rudolf Sykora
well, probably there is none such, sorry... :) R 2009/3/9 Rudolf Sykora : >> I think the attached patch is what you are proposing. If you apply it, >> -- >> - yiyus || JGL . >> > > Sorry for the question, but how can I apply the patch you sent? > I mean, having the file with the patch and the file

Re: [9fans] acme Put doesn't save

2009-03-09 Thread Rudolf Sykora
> I think the attached patch is what you are proposing. If you apply it, > -- > - yiyus || JGL . > Sorry for the question, but how can I apply the patch you sent? I mean, having the file with the patch and the file to be changed, what command is to be performed? thanks R

Re: [9fans] acme Put doesn't save

2009-03-09 Thread Rudolf Sykora
Thank you R 2009/3/8 yy : > 2009/3/4 roger peppe : >> personally, i think that Put should work on any non-application >> window, and that re-columnation should only take place if >> the textual content hasn't been modified by the user. (and >> probably also that if you change the name of a window

Re: [9fans] acme Put doesn't save

2009-03-07 Thread yy
Sorry, but I included some not related changes in the previous patch (I will stop sending patches to the list as soon as I get a contrib dir...) -- - yiyus || JGL . diff /sys/src/cmd/acme/exec.c . 643c643 < if(et==nil || et->w==nil || et->w->isdir) --- > if(et==nil || et->w==nil) 645a646 > w-

Re: [9fans] acme Put doesn't save

2009-03-07 Thread yy
2009/3/4 roger peppe : > personally, i think that Put should work on any non-application > window, and that re-columnation should only take place if > the textual content hasn't been modified by the user. (and > probably also that if you change the name of a window to a directory > name and do "Get

Re: [9fans] acme Put doesn't save

2009-03-06 Thread Robert Raschke
On Fri, Mar 6, 2009 at 10:48 AM, Rudolf Sykora wrote: > It really seems that acme-sac does save in the described way (at least > it saves). That makes me wonder. Do plan9 acme, p9p acme and acme-sac > have more similar differences? Are the programs separate in their > development? Acme-sac is bas

Re: [9fans] acme Put doesn't save

2009-03-06 Thread Rudolf Sykora
It really seems that acme-sac does save in the described way (at least it saves). That makes me wonder. Do plan9 acme, p9p acme and acme-sac have more similar differences? Are the programs separate in their development? Thanks Ruda > personally, i think that Put should work on any non-application

Re: [9fans] acme Put doesn't save

2009-03-04 Thread roger peppe
2009/3/4 erik quanstrom : > if on the other hand you try to modify the name of a directory > listing frame, the tag line box is not filled.  this is a hint > that you're doing something wrong.  also there is no Put option. > this is a bigger hint that you're doing something wrong. not really - +Er

Re: [9fans] acme Put doesn't save

2009-03-04 Thread Rudolf Sykora
> if on the other hand you try to modify the name of a directory > listing frame, the tag line box is not filled.  this is a hint > that you're doing something wrong.  also there is no Put option. > this is a bigger hint that you're doing something wrong. You may call it a hint. I noticed the 'Put

Re: [9fans] acme Put doesn't save

2009-03-04 Thread hugo rivera
2009/3/4, erik quanstrom : > this isn't true. if you click on New and then type something > for a filename you will notice that the tag line box becomes > filled and then click on Put, the file *will* be saved, even if the > file does not exist. It is, if you considered the fact that I was tal

Re: [9fans] acme Put doesn't save

2009-03-04 Thread erik quanstrom
On Wed Mar 4 09:12:08 EST 2009, uai...@gmail.com wrote: > While learning some of acme's basic commands I was also shocked by > this, and I agree with Ruda that executing a Put with a non-existent > file (e.g. '/home/ruda/a' ;-) should save the contents of the window > in that file. this isn't tr

Re: [9fans] acme Put doesn't save

2009-03-04 Thread hugo rivera
While learning some of acme's basic commands I was also shocked by this, and I agree with Ruda that executing a Put with a non-existent file (e.g. '/home/ruda/a' ;-) should save the contents of the window in that file. Probably there are other ways to do it, like Edit w /home/ruda/a, but the ones

Re: [9fans] acme Put doesn't save

2009-03-04 Thread yy
2009/3/4 Rudolf Sykora : > So is there a workaround other than 1) make a new window, 2) copy & > past the text there 3) save from the new window? > The easier solution that comes to my mind now is Edit w filename. I haven't looked into it, but I think you lost the content of your window because wh

Re: [9fans] acme Put doesn't save

2009-03-04 Thread erik quanstrom
> > So is there a workaround other than 1) make a new window, 2) copy & > past the text there 3) save from the new window? > 4) New 5) B. - erik

Re: [9fans] acme Put doesn't save

2009-03-04 Thread Rudolf Sykora
> Because at the beginning of the put function in exec.c you have: >        if(et==nil || et->w==nil || et->w->isdir) >                return; > and et->w->isdir is true. But there are workarounds if you want to > save the contents of the window. Well, I had some text in in-this-way created window

Re: [9fans] acme Put doesn't save

2009-03-04 Thread roger peppe
i reckon this could be classed as a bug. you can't change a directory window to a file window. 2009/3/4 Rudolf Sykora : > Hello > > I am running p9p acme. I open a directory, so in the tag line I have > sth. ending with '/' and in the window I have the list of files in > that directory. Now I go t

Re: [9fans] acme Put doesn't save

2009-03-04 Thread yy
2009/3/4 Rudolf Sykora : > Hello > > I am running p9p acme. I open a directory, so in the tag line I have > sth. ending with '/' and in the window I have the list of files in > that directory. Now I go to the tag line and append a name, say 'a', > to the existing path, i.e. now I have there e.g. '/

[9fans] acme Put doesn't save

2009-03-04 Thread Rudolf Sykora
Hello I am running p9p acme. I open a directory, so in the tag line I have sth. ending with '/' and in the window I have the list of files in that directory. Now I go to the tag line and append a name, say 'a', to the existing path, i.e. now I have there e.g. '/home/ruda/a'. Then I write Put somew