9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: dexen deVries <dexen.devries@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] the `Look' command in Acme
Date: Thu, 17 May 2012 11:43:40 +0200	[thread overview]
Message-ID: <1547750.gso9ejTZvy@coil> (raw)
In-Reply-To: <CAM6ozu4Bc8GD1Ez+wdFKPZDbtmpD9mrDn+EqitNvMHR5v-rQQQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

On Thursday 17 of May 2012 11:23:47 Peter A. Cejchan wrote:
> i was always missing a 'command window' where can i see the file with my
> customized commands (for the task i'm working on), w/o restarting acme. see
> my ancient postings about an idea how to replace (mostly redundant)
> taglines with a command window. (yes, i can open my guide file in a window
> and snarf/paste to a tagline; however, it's at least, unelegant...)

probably the Dump/Load (or the -l <dumfile> argument) would do the trick for
you.

anyway, hacking Acme's C sources to adjust content of tag line is easy enough.
--
dx

[-- Attachment #2: 0001-do-not-put-Look-in-Acme-s-window.patch --]
[-- Type: text/x-patch, Size: 1092 bytes --]

>From 09daae41cbf3c64d3b9bbb33f59c7c1e515e789f Mon Sep 17 00:00:00 2001
From: dexen deVries <devnull@localhost>
Date: Tue, 25 Jan 2011 12:04:54 +0100
Subject: [PATCH 1/2] do not put `Look' in Acme's window
X-Face: 1TH%]0KlR_DQ/V9+m_"neC|Yj3$MU@B/vVI\}^j`G/[9JKe=5`p[$l|z^\MRO%<k:9xXL[_!jEZo8$[]yo{7O-]t_@Qj`v5H@L[YyU<#j7(H)P\{pMs))9$@Vww1"ni-{+{5olk=XY&G,}|UHQMC08506\0=+p|75ucH!S!1UcXoC1vgpN_{lOMt_54_N5;)ngh6=D^uZN,}ZI9-k9"v<!}`jpCUMM,//`>H6w{K<geM^bS]jwD8'lAEX9>F[ScIHig1.r%65;

---
 src/cmd/acme/wind.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c
index bfe4bec..b68f66f 100644
--- a/src/cmd/acme/wind.c
+++ b/src/cmd/acme/wind.c
@@ -468,8 +468,15 @@ winsettag1(Window *w)
 	else{
 		k = w->tag.file->b.nc;
 		if(w->body.file->seq == 0){
-			runemove(new+i, Llook, 6);
-			i += 6;
+			if (0){
+				runemove(new+i, Llook, 6);
+				i += 6;
+			}
+			else{
+				static Rune foo[] = { ' ', 0 };
+				runemove(new+i, foo, 1);
+				i += 1;
+			}
 		}
 	}
 	new[i] = 0;
--
1.7.5.1

  reply	other threads:[~2012-05-17  9:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17  8:55 dexen deVries
2012-05-17  9:12 ` Lucio De Re
2012-05-17  9:12   ` hugo rivera
2012-05-17  9:23     ` Peter A. Cejchan
2012-05-17  9:43       ` dexen deVries [this message]
2012-05-17 15:54 ` Tristan
2012-05-18  6:12   ` Peter A. Cejchan
2012-05-18 12:21     ` Yaroslav

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=1547750.gso9ejTZvy@coil \
    --to=dexen.devries@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).