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: [9fans] Acme hack
Date: Thu, 14 Mar 2013 14:44:31 +0100	[thread overview]
Message-ID: <3166624.uA1Dt0Ceje@coil> (raw)

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

I like my +Errors window clean once in a while. Attached patch provides
 Edit ,d
by default in +Errors window tagline.

-- 
dexen deVries

[[[↓][→]]]

[-- Attachment #2: 0001-acme-provide-Edit-d-in-Error-windows.patch --]
[-- Type: text/x-patch, Size: 1146 bytes --]

>From b4edef7c40de4c4a8678622e11eee8bd9aef8523 Mon Sep 17 00:00:00 2001
From: dexen deVries <dexen.devries@gmail.com>
Date: Thu, 14 Mar 2013 14:41:22 +0100
Subject: [PATCH] acme: provide Edit ,d in +Error windows

---
 src/cmd/acme/wind.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c
index d2bec16..5e952ed 100644
--- a/src/cmd/acme/wind.c
+++ b/src/cmd/acme/wind.c
@@ -451,6 +451,7 @@ winsettag1(Window *w)
 	static Rune Lget[] = { ' ', 'G', 'e', 't', 0 };
 	static Rune Lput[] = { ' ', 'P', 'u', 't', 0 };
 	static Rune Llook[] = { ' ', 'L', 'o', 'o', 'k', ' ', 0 };
+	static Rune Leditcomad[] = { ' ', 'E', 'd', 'i', 't', ' ', ',', 'd', 0 };
 	static Rune Lpipe[] = { ' ', '|', 0 };

 	/* there are races that get us here with stuff in the tag cache, so we take extra care to sync it */
@@ -509,6 +510,10 @@ winsettag1(Window *w)
 				runemove(new+i, Llook, 6);
 				i += 6;
 			}
+			else if (!w->filemenu){
+				runemove(new+i, Leditcomad, 8);
+				i += 8;
+			}
 			else{
 				static Rune foo[] = { ' ', 0 };
 				runemove(new+i, foo, 1);
--
1.8.1.4


             reply	other threads:[~2013-03-14 13:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 13:44 dexen deVries [this message]
2013-03-14 14:38 ` yy
2013-03-14 14:55   ` dexen deVries
2013-03-21 11:03   ` [9fans] Acme hack - a week later dexen deVries

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=3166624.uA1Dt0Ceje@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).