Commit Graph

57 Commits

Author SHA1 Message Date
Daniel Gröber 04972673dd elisp: Fix excessive map-file calls (again)
(current-buffer) refered to the ghc-mod process buffer not the (user)
file buffer we actually wanted to check for modifications.
2017-05-26 09:44:05 +02:00
Daniel Gröber e7a186a103 elisp: Fix excessive use of map-file
We still don't do unmap-file but this should alleviate the problem
somewhat since most commands won't actually use map-file.
2015-12-12 01:43:16 +01:00
Daniel Gröber 8f4752ebd6 Merge pull request #649 from robstewart57/master
Adds report-ghc-errors to turn off *GHC Error* buffer when nil
2015-10-13 21:19:57 +02:00
Rob Stewart 138c711dc1 Adds ghc-report-errors to turn off *GHC Error* buffer when nil
ghc-mod now writes GHC errors to a new *GHC Error* buffer only if
report-ghc-errors has the value `t`. If a user wants to silence this
buffer, they should evaluate the following s-expression.

    (setq ghc-report-errors nil)

Fixes kazu-yamamoto/ghc-mod#618
2015-10-10 23:52:36 +01:00
Alan Zimmerman 1d370f5866 Speed up map-file loading 2015-09-30 21:31:07 +02:00
Kazu Yamamoto aad7cdebe5 fixing doc (#599). 2015-09-15 16:50:25 +09:00
Kazu Yamamoto 545f0557f2 ensuring that root ends with a file separator. 2015-09-15 12:14:36 +09:00
Kazu Yamamoto ac2d8ba134 kill buffer hook run only for haskell-mode. 2015-09-15 11:32:16 +09:00
Kazu Yamamoto ad5a343d2e ensuring that ghc-mod is executed on the root dir. 2015-09-15 11:31:54 +09:00
Kazu Yamamoto 6488f1070d boot skips map-file. 2015-09-14 15:09:34 +09:00
Kazu Yamamoto 52016b6210 using ghc-get-project-root only when it is necessary. 2015-09-14 15:02:34 +09:00
Kazu Yamamoto 935c51eb1c nicer messages. 2015-09-14 14:58:00 +09:00
Kazu Yamamoto 71c8361911 making loop safer. 2015-09-14 07:46:22 +02:00
Kazu Yamamoto 26d72b0b88 supporting map-file in Emacs frontend. 2015-08-20 11:33:55 +09:00
Kazu Yamamoto 531a731da1 preventing "unused variable" warnings. 2015-08-20 09:58:35 +09:00
Kazu Yamamoto 61922e249f fixing a bug that the cursor stays in the error buffer. 2015-08-17 15:17:14 +09:00
Kazu Yamamoto 8a0c4be12b defining ghc-debug-options. 2015-08-14 16:47:44 +09:00
Kazu Yamamoto 4df2046672 cleaning up the error scrolling. 2015-08-14 14:21:07 +09:00
Kazu Yamamoto cfddddcfe8 error buffer is now read-only. 2015-08-14 13:23:20 +09:00
Kazu Yamamoto f762209e60 using new ghc-mod. 2015-08-14 13:23:20 +09:00
Kazu Yamamoto efef2b19ea scrolling errors. 2015-08-14 13:23:19 +09:00
Kazu Yamamoto 002008aa30 splitting stdout and stderr. 2015-08-14 13:23:19 +09:00
Kazu Yamamoto 54c2be20b6 better debug logging of Elisp. 2015-08-14 13:23:19 +09:00
Kazu Yamamoto dc3ce15512 caching a project root to a local variable. 2015-08-13 11:22:40 +09:00
Kazu Yamamoto 475b2ea02e Revert "don't silently ignore case when ghc process is already running in ghc-with-process"
This reverts commit ac31e6edc2.
2015-08-12 12:10:33 +09:00
Kazu Yamamoto be2b3f0ea7 Revert "Fix typo to set process running status"
This reverts commit b52c0a5d76.
2015-08-12 12:10:14 +09:00
Iku Iwasa b52c0a5d76 Fix typo to set process running status 2015-05-22 15:46:27 +02:00
Sergey Vinokurov ac31e6edc2 don't silently ignore case when ghc process is already running in ghc-with-process 2015-05-19 21:00:54 +03:00
Daniel Gröber e202fabc39 elisp: Fix usage of legacy-interactive 2015-05-06 23:13:24 +02:00
Daniel Gröber 3c76ba412f Start rolling ghc-modi into the ghc-mod executable 2015-05-05 14:47:42 +02:00
Kazu Yamamoto bf085ce8f1 Yet another fix for #405. 2014-12-01 11:44:39 +09:00
Kazu Yamamoto fb2dc5fca5 Fixing a race (#405). 2014-11-29 12:57:23 +09:00
Iku Iwasa 7c4765bdef Remove timeout from loop in ghc-sync-process
This fixes the possibility that ghc-process-running was left non-nil
after timeout.
Quit still can abort the loop.
2014-11-26 23:34:20 +09:00
Kazu Yamamoto 44a38782d8 Avoid use of discard-input. Fix #405. 2014-11-19 09:09:10 +09:00
Kazu Yamamoto d136fb4d67 fix #273. 2014-08-01 17:01:01 +09:00
Kazu Yamamoto 94c4ae205d setting sentinel. 2014-05-14 06:39:50 +09:00
Kazu Yamamoto 7d81a357f7 making ghc-mod-running a global var (##255). 2014-05-14 05:25:37 +09:00
Kazu Yamamoto 7af19f5400 fixing a comment. 2014-05-14 05:07:33 +09:00
Kazu Yamamoto ce28a67e28 checking if the buffer exists (#256). 2014-05-14 05:05:49 +09:00
Kazu Yamamoto 0d494f3c8e (discard-input) avoids getting stuck. 2014-04-28 21:27:27 +09:00
Kazu Yamamoto 248a999f99 t of (sit-for 0.1 t) has a bug, so do not use it. 2014-04-28 09:13:14 +09:00
Kazu Yamamoto 4d2ef23f33 passing 'ok/'ng to callback. 2014-04-27 21:51:44 +09:00
Kazu Yamamoto f50e5229c4 NG contains an error. 2014-04-25 11:08:29 +09:00
Kazu Yamamoto e2369e6772 rescue the coming Emacs 24.4. 2014-04-24 17:14:10 +09:00
Kazu Yamamoto e3798ac82a ghc-with-process takes two hooks. 2014-04-22 12:33:26 +09:00
Kazu Yamamoto 2e1df9c21f ghc-with-process takes an optional hook. 2014-04-22 11:32:51 +09:00
Kazu Yamamoto 36e32ab1b2 ghc-import-module uses ghc-modi browse. 2014-04-21 17:35:32 +09:00
Kazu Yamamoto e4f4ef52c0 making use of ghc-run-ghc-mod. 2014-04-21 11:37:33 +09:00
Kazu Yamamoto 19453e67d7 ghc-with-process now takes string for the first argument. 2014-04-21 09:46:33 +09:00
Kazu Yamamoto f8be944f12 using ghc-modi for C-cC-i. 2014-04-19 20:48:26 +09:00