shithub: misc

Download patch

ref: 645405fe147ab4c968bca049030387a9b064d054
author: Philip Silva <philip.silva@protonmail.com>
date: Fri Mar 12 16:36:56 EST 2021

First commit

--- /dev/null	Thu Dec 31 12:39:09 2020
+++ b/README	Fri Mar 12 16:36:56 2021
@@ -0,0 +1,3 @@
+Various unsorted stuff
+
+- acme-at.patch: can be applied to open paths containing @s (e.g. the internal Go module paths)
--- /dev/null	Thu Dec 31 12:39:09 2020
+++ b/acme-at.patch	Fri Mar 12 16:36:56 2021
@@ -0,0 +1,24 @@
+diff -r 100ce3da6613 sys/lib/plumb/basic
+--- a/sys/lib/plumb/basic	Tue Mar 02 10:03:25 2021 +0100
++++ b/sys/lib/plumb/basic	Tue Mar 02 21:39:50 2021 +0100
+@@ -29,7 +29,7 @@
+ 
+ # email addresses get a new mail window
+ type is text
+-data matches '[a-zA-Z0-9_+.\-]+@[a-zA-Z0-9_+.\-]*'
++data matches '[a-zA-Z0-9_+.\-]+@[a-zA-Z0-9_+.\-]*$'
+ plumb to sendmail
+ plumb start window rc -c '''echo % mail '''$0'; mail '$0
+ 
+diff -r 100ce3da6613 sys/src/cmd/acme/look.c
+--- a/sys/src/cmd/acme/look.c	Tue Mar 02 10:03:25 2021 +0100
++++ b/sys/src/cmd/acme/look.c	Tue Mar 02 21:39:50 2021 +0100
+@@ -314,7 +314,7 @@
+ {
+ 	if(isalnum(r))
+ 		return TRUE;
+-	if(runestrchr(L".-+/:", r))
++	if(runestrchr(L".-+/:@", r))
+ 		return TRUE;
+ 	return FALSE;
+ }