Commit Graph

1591 Commits

Author SHA1 Message Date
Qi Xiao
6aa13a9fb8 Fix name resolution. 2016-02-22 15:32:49 +01:00
Qi Xiao
c3455d9a1c Add "e" ns as yet another alias of "external". 2016-02-22 15:26:16 +01:00
Qi Xiao
a3ae232585 Fix resolution of unqualified names. 2016-02-22 15:25:48 +01:00
Qi Xiao
f31d77615c Synchronize logSignals and handleHupAndQuit. 2016-02-22 15:24:38 +01:00
Qi Xiao
01c5977a8f Use "external:" namespace to make external commands.
Namespace code has also been cleaned up a bit.
2016-02-22 15:22:00 +01:00
Qi Xiao
22be6e24df Add a phony target "stub". 2016-02-22 14:49:21 +01:00
Qi Xiao
70f9044bfb Check $GOPATH when building stub. 2016-02-22 14:47:20 +01:00
Qi Xiao
f9cdd8db20 Fix make -j2.
When comping the stub, $(GOPATH)/bin is assumed to exist. This breaks
`make -j2`, where `get` and `$(STUB)` may be built in parallel.
2016-02-22 14:43:12 +01:00
Qi Xiao
f14106f5eb Use a cooldown in face of editor error. 2016-02-22 14:40:17 +01:00
Qi Xiao
8bdf6751dd Use script mode when stdin is not tty. 2016-02-22 14:35:00 +01:00
Qi Xiao
5786dc7ffb Handle HUP; restart editor in 1s after consecutive error 2016-02-22 14:31:03 +01:00
Qi Xiao
92d34ec78d edit: New "smart-enter" builtin to insert newline when input is incomplete. 2016-02-22 13:46:35 +01:00
Qi Xiao
8dec0263c6 Allow newlines in more spaces. 2016-02-22 13:44:56 +01:00
Qi Xiao
f102a46833 Parse newlines after pipe and inside lists as oridnary spaces. 2016-02-22 13:26:22 +01:00
Qi Xiao
9793da932c Add a "base" builtin. 2016-02-22 02:28:28 +01:00
Qi Xiao
5bbb8bef13 Fix stuttering of cnf error. 2016-02-22 00:06:26 +01:00
Qi Xiao
519760107f eval: Fix go:generate line. 2016-02-22 00:06:25 +01:00
Qi Xiao
ff6a2d025a Fix failing tests. 2016-02-21 23:59:44 +01:00
Qi Xiao
f77fd16a6c Add a pretty clumsy fg builtin.
Let's pretend that this fixes #12.
2016-02-21 23:45:49 +01:00
Qi Xiao
bda9ec2483 eval: Add ExternalCmdExit. 2016-02-21 23:16:12 +01:00
Qi Xiao
19a0094bb8 eval/externalcmd.go: Remove case ws.Continued. 2016-02-21 23:03:48 +01:00
Qi Xiao
2108002356 When calling external command, wait for stopped process as well. 2016-02-21 23:01:30 +01:00
Qi Xiao
7839884b13 Autoload modules.
This fixes #135.
2016-02-21 20:10:33 +01:00
Qi Xiao
46f83e9fbf Portable Makefile. 2016-02-21 18:44:36 +00:00
Qi Xiao
cf277971ae Revise Makefile. 2016-02-21 18:34:40 +00:00
Qi Xiao
79856655ac Makefile: don't test -v 2016-02-21 18:31:00 +00:00
Qi Xiao
edc901b99f Fix broken test. 2016-02-21 18:28:19 +00:00
Qi Xiao
b154de33ab Always wait for programs to exit.
This fixes #137.
2016-02-21 18:25:49 +00:00
Qi Xiao
0396de6b91 edit: Fix how asyncReader writes to error channel. 2016-02-21 18:12:51 +00:00
Qi Xiao
34e4f68bc0 Put terminal fd in blocking mode when writing.
This fixes #140.
2016-02-21 17:13:00 +00:00
Qi Xiao
00e90c3473 Put forked processes in fg and elvish in bg.
This addresses #12.
2016-02-21 17:01:48 +01:00
Qi Xiao
f8bb85dcf0 Include branch name when uploading from Travis. 2016-02-21 17:00:42 +01:00
Qi Xiao
ff76359063 Add stub to Evaler; don't flood the terminal when I/O error occurs. 2016-02-21 16:26:16 +01:00
Qi Xiao
1f1e739ef2 sys: Fix error reporting of Tcsetgrp. 2016-02-21 16:20:01 +01:00
Qi Xiao
4c0919b130 Add package stub. 2016-02-21 15:32:26 +01:00
Qi Xiao
172fa49056 Makefile: test -v 2016-02-21 15:13:30 +01:00
Qi Xiao
d2d119af7f Move functionality of edit/search.go to util. 2016-02-21 14:32:13 +01:00
Qi Xiao
d76bb34592 eval: Restructure assignment code. 2016-02-21 13:03:13 +01:00
Qi Xiao
160e1456d3 Add $pwd. 2016-02-21 12:58:20 +01:00
Qi Xiao
a880b74a1b Put the actual entry function in a new run package.
This allows us to test the entry function.
2016-02-21 12:52:47 +01:00
Qi Xiao
de66cbe8d5 elvish-stub -> stubimpl 2016-02-21 12:49:24 +01:00
Qi Xiao
c29d342b07 Disable test of elvish-stub. 2016-02-21 12:21:57 +01:00
Qi Xiao
7f42872347 More cleanup. 2016-02-21 12:10:03 +01:00
Qi Xiao
36d17550cb Rearrange main.go a bit. 2016-02-21 12:00:02 +01:00
Qi Xiao
8215baf392 Rewrite elvish-stub in C. 2016-02-21 11:59:46 +01:00
Qi Xiao
e46ed89be9 Almost rewrite test script of elvish-stub. 2016-02-21 01:07:20 +01:00
Qi Xiao
ea806f8671 Fix elvish-stub test script. 2016-02-21 00:56:04 +01:00
Qi Xiao
d96b50240d Use a more robust way to wait for elvish-stub's startup message. 2016-02-21 00:52:35 +01:00
Qi Xiao
830441ca22 Makefile: Also test elvish-stub. 2016-02-21 00:45:03 +01:00
Qi Xiao
7b1a5f8bac Build and upload elvish-stub in Travis. 2016-02-21 00:42:11 +01:00