Commit graph

31 commits

Author SHA1 Message Date
Russ Cox
573169dd88 acme: fix buffer overflow introduced in parsetag refactor 2020-01-13 23:17:39 -05:00
Russ Cox
7b1c85f6e8 acme: allow spaces in window names
There are many things we could do to make this work.
an environment variable to control the character.
Another option would be to use U+00A0 (non-breaking space),
which renders the same as space.

This change avoids changing the separator character and instead
assumes that if the left side of the tag already ends in " Del Snarf |"
then what comes before that is the file name.
Acme already aggressively preserves the "Del Snarf |",
so this should work decently well as a stop-gap.
We can always try something else later.

Fixes #26.
Fixes #104.
Fixes #329.
2020-01-13 23:17:39 -05:00
Russ Cox
81d992e35f acme: factor out tag parsing code 2020-01-13 21:43:54 -05:00
Russ Cox
7a241631b2 acme: accept expanded URLs in look
Just as look expands a click in /etc/passwd to the full name
(provided that file exists), it now expands a click in https://9fans.net/
to the full URL (provided the prefix is http:// or https://).
Probably more adjustment is needed.
2019-06-10 16:01:10 -04:00
Russ Cox
67dbeee5fe acme: check file content before declaring file "modified since last read"
Bad remote file systems can change mtime unexpectedly,
and then there is the problem that git rebase and similar
operations like to change the files and then change them back,
modifying the mtimes but not the content.

Avoid spurious Put errors on both of those by checking file
content.

(False positive "modified since last read" make the real ones
difficult to notice.)
2017-10-10 13:51:24 -04:00
Russ Cox
4a3fb87264 acme: add log file in acme root directory
Reading /mnt/acme/log reports a log of window create,
put, and delete events, as they happen. It blocks until the
next event is available.

Example log output:

8 new /Users/rsc/foo.go
8 put /Users/rsc/foo.go
8 del /Users/rsc/foo.go

This lets acme-aware programs react to file writes, for example
compiling code, running a test, or updating an import block.

TBR=r
R=r
https://codereview.appspot.com/89560044
2014-04-30 12:14:29 -04:00
David Jeannot
258cfab2fe acme: claim input focus earlier
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5505091
2012-01-16 17:05:39 -05:00
Russ Cox
67afaf385a acme: allow :?regexp for backward search
Fixes issue 80.

R=rsc
http://codereview.appspot.com/4662088
2011-07-10 20:35:23 -04:00
Russ Cox
daea2c7d50 acme: correct modified message after initial load; more detail in
message

http://codereview.appspot.com/123051
2009-09-25 01:43:54 -04:00
Russ Cox
734a96bd16 acme: sync against Plan 9, remove -$ option 2008-03-07 10:45:59 -05:00
Russ Cox
cd5a73785d acme: add -m option and avoid looking in the mirror 2008-04-17 16:04:19 -04:00
Russ Cox
83ab7d8896 merge 2007-11-27 15:39:06 -05:00
rsc
cc0e11e417 various memory errors in acme 2007-02-11 18:42:11 +00:00
rsc
ced6fd340e reopen plumber, build mail 2006-06-25 23:51:10 +00:00
rsc
9361131304 No more unrooted paths. 2006-06-16 15:55:24 +00:00
rsc
20ae0b0fc2 Better window size management. 2005-12-16 15:12:38 +00:00
rsc
a8ec4910fd apple 2005-07-13 21:34:11 +00:00
rsc
44e41b1f3a various needed casts 2005-07-13 03:53:24 +00:00
rsc
8057b1ce3f fix q1 computation bug in expandfile(). only affects external programs 2005-03-21 04:56:47 +00:00
rsc
d5c40a0da2 Add dollarsign support. 2005-03-14 21:02:14 +00:00
rsc
f755d50401 don't need to rename Fid 2005-01-04 21:29:20 +00:00
rsc
334cb1e91c change to use new thread library 2004-12-27 00:38:59 +00:00
rsc
012a8a02d5 change md argument to number etc. (which acted only as a flag)
to an actual flag.

buffer underrun check in number

add xdata file for exactly the addressed region

save addr across opens
2004-10-22 17:11:30 +00:00
rsc
ee6d04f9fe undo the madness. 2004-04-21 22:42:01 +00:00
rsc
99f4029090 $foo in tags - here only for reference. 2004-04-21 22:39:37 +00:00
rsc
be22ae2d07 SunOS can rot in hell. 2004-03-26 01:59:35 +00:00
rsc
8ad517944e Today's changes.
More changes.
2004-03-25 23:03:57 +00:00
rsc
2277c5d7bb Small tweaks
Lots of new code imported.
2004-03-21 04:33:13 +00:00
rsc
af78a4cd2b Little tweaks and documentation. 2004-03-02 23:11:58 +00:00
rsc
5a8e63b2f0 Fighting the good fight.
Move libfmt, libutf into subdirectories of lib9.

Add poll-based socket i/o to libthread, so that we can
avoid using multiple procs when possible, thus removing
dependence on crappy pthreads implementations.

Convert samterm, acme to the single-proc libthread.

Bring libcomplete, acme up-to-date w.r.t. Plan 9 distribution.
2004-02-29 22:10:26 +00:00
rsc
b3994ec5c7 More files related to user-level file servers.
Also add acme!
2003-12-11 17:50:28 +00:00