Commit graph

36 commits

Author SHA1 Message Date
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
Russ Cox
220c15d2b7 fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc
http://codereview.appspot.com/6744053
2012-10-20 13:36:52 -04:00
Russ Cox
37f8ed2410 acme: mouse movement for Del
If the mouse was in the tag of the old window,
it was most likely pointing at Del. If bringing up a
new window from below and not moving the mouse
somewhere else, adjust it so that it ends up pointing
at Del in the replacement window's tag too.
This makes it easy to Del a sequence of windows in
a column, from top to bottom.

http://www.youtube.com/watch?v=ET8w6RT6u5M

R=r
http://codereview.appspot.com/6558047
2012-09-23 22:01:56 -04:00
Russ Cox
cb92a1b41c acme: do not redraw body on every tag change
fixes #5
http://bitbucket.org/rsc/plan9port/issue/5/
http://groups.google.com/group/plan9port-dev/t/e679347ecaa05cff

http://codereview.appspot.com/95041
2009-07-15 02:11:02 -04:00
Russ Cox
4163694051 acme: multiline tag fixes 2008-03-07 12:51:41 -05:00
Russ Cox
a2db69c8bd acme: revise multiline tag code 2008-03-07 11:07:17 -05:00
Russ Cox
734a96bd16 acme: sync against Plan 9, remove -$ option 2008-03-07 10:45:59 -05:00
Russ Cox
fdddf6f018 acme: tag resize nits 2008-03-07 07:48:08 -05:00
rsc
d76a49fb43 fix tags again 2007-03-16 03:28:46 +00:00
rsc
1bcfd909e7 fix too-aggressive tag redraw 2007-03-15 16:26:09 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
95409400f7 events buffer need not end in NUL 2006-02-21 20:46:49 +00:00
rsc
8b9a1d4cfe add chord fix from plan 9 2006-02-06 23:10:48 +00:00
rsc
cd1d0ab0b5 more tweaks 2006-01-12 05:43:26 +00:00
rsc
77c5c852e4 avoid unnecessary winresize, which flush text cache 2006-01-12 04:44:46 +00:00
rsc
768d880d82 try autoexpand by default 2005-12-21 22:10:52 +00:00
rsc
ad80f8701d tag tweak 2005-12-16 19:34:13 +00:00
rsc
22d10fe655 auto-insert second line for expand 2005-12-16 15:27:18 +00:00
rsc
f8dea3c178 add bigtags 2005-12-16 15:14:14 +00:00
rsc
20ae0b0fc2 Better window size management. 2005-12-16 15:12:38 +00:00
rsc
d5233ccb3a More prep. 2005-10-31 18:45:06 +00:00
rsc
33dc4226a8 Cleanup in preparation for multiline tags. 2005-10-31 18:39:19 +00:00
rsc
725d9fd795 winunlock bug 2005-07-28 04:47:00 +00:00
rsc
44e41b1f3a various needed casts 2005-07-13 03:53:24 +00:00
rsc
3b33df997f better tag handling in dollars 2005-03-18 19:33:32 +00:00
rsc
2a373ea419 month old bug fix from rob 2005-03-18 18:05:48 +00:00
rsc
d96da29b37 Add $foo window names back to acme, enabled with -'$'.
See the comment in wind.c about why this isn't the right
solution.
2005-03-14 20:53:10 +00:00
rsc
627bae9c76 clean up mkfile; fix winctlprint bug reported by peter canning 2005-01-04 21:39:23 +00:00
rsc
53998c99d6 autoindent fixes from rob 2004-09-28 16:10:49 +00:00
rsc
c591e1e616 add tab size to window ctl file 2004-04-25 20:26:49 +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
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
c197370550 completion, pageup/pagedown 2004-02-09 19:32:18 +00:00
rsc
b3994ec5c7 More files related to user-level file servers.
Also add acme!
2003-12-11 17:50:28 +00:00