9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: yy <yiyu.jgl@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme Put doesn't save
Date: Wed,  4 Mar 2009 13:21:49 +0100	[thread overview]
Message-ID: <a81fe9be0903040421y45e23073p2c917312c65a86ce@mail.gmail.com> (raw)
In-Reply-To: <a560a5d00903040344h59c2b776p8e44e4a287192954@mail.gmail.com>

2009/3/4 Rudolf Sykora <rudolf.sykora@gmail.com>:
> 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 somewhere and try to middle click it thinking the window
> contents gets saved to '/home/ruda/a'. But it does not. Why?
>
> Thanks
> Ruda
>

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.



--
- yiyus || JGL .



  reply	other threads:[~2009-03-04 12:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 11:44 Rudolf Sykora
2009-03-04 12:21 ` yy [this message]
2009-03-04 12:32   ` Rudolf Sykora
2009-03-04 13:25     ` yy
2009-03-04 12:28 ` roger peppe
2009-03-04 13:09 erik quanstrom
2009-03-04 14:10 ` hugo rivera
2009-03-04 14:34   ` erik quanstrom
2009-03-04 14:57     ` hugo rivera
2009-03-04 15:18     ` roger peppe
2009-03-06 10:48       ` Rudolf Sykora
2009-03-06 11:12         ` Robert Raschke
2009-03-08  0:57       ` yy
2009-03-08  1:02         ` yy
2009-03-09  8:05         ` Rudolf Sykora
2009-03-09 12:22         ` Rudolf Sykora
2009-03-09 13:23           ` Rudolf Sykora
2009-03-04 15:19     ` Rudolf Sykora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a81fe9be0903040421y45e23073p2c917312c65a86ce@mail.gmail.com \
    --to=yiyu.jgl@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).