9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Acme hack
@ 2013-03-14 13:44 dexen deVries
  2013-03-14 14:38 ` yy
  0 siblings, 1 reply; 4+ messages in thread
From: dexen deVries @ 2013-03-14 13:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-21 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-14 13:44 [9fans] Acme hack dexen deVries
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

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).