Commit Graph

401 Commits

Author SHA1 Message Date
Kazu Yamamoto
be2b3f0ea7 Revert "Fix typo to set process running status"
This reverts commit b52c0a5d76.
2015-08-12 12:10:14 +09:00
Daniel Gröber
c71528c574 Don't look for ghc-modi in ghc-debug, fix #526 2015-08-10 06:44:21 +02:00
Anthony Cowley
3bf4243baf Serialize check-syntax
- Wait for ghc-mod to be ready before trying to check a buffer
- Times out after 10s with an error
- Only check-syntax visible buffers
- check-syntax when switching to a buffer
2015-07-08 18:12:13 -04:00
Gracjan Polak
fbe0800856 Add haskell-mode dependency in pkg file 2015-05-25 01:10:53 +02:00
Iku Iwasa
b52c0a5d76 Fix typo to set process running status 2015-05-22 15:46:27 +02:00
Markus Hauck
a1f6bf6582 Limit overlays to actual position of error
Conflicts:
	elisp/ghc-check.el
2015-05-22 13:25:41 +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
Sergey Vinokurov
05b9445f6e fix and improve ghc-check-highlight-original-buffer 2015-05-15 13:42:27 +03:00
Daniel Gröber
e202fabc39 elisp: Fix usage of legacy-interactive 2015-05-06 23:13:24 +02:00
Daniel Gröber
aa75d2213e ghc-mod's type result is not a guess! 2015-05-06 16:16:47 +02:00
Daniel Gröber
644ee82a02 elisp: fix non expanded path comparison 2015-05-06 16:16:13 +02:00
Kevin Boulain
45c5a06117 turn-off-haskell-font-lock and turn-on-haskell-font-lock functions have been removed from haskell-mode 2015-05-05 14:55:59 +02:00
Anthony Cowley
de3d3a5f19 Fix #464.
Expand path relative to the project root directory.
2015-05-05 14:51:08 +02:00
Daniel Gröber
3c76ba412f Start rolling ghc-modi into the ghc-mod executable 2015-05-05 14:47:42 +02:00
Kei Hibino
eb5d0fc867 Re-add output line separator global option for expand command. 2015-03-05 17:45:48 +01:00
Kazu Yamamoto
af7b910394 Merge pull request #409 from iquiw/master
Update extract module regexp for unicode quotes
2014-12-01 11:48:42 +09: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
3a88db6c2b Update extract module regexp for unicode quotes
GHC-7.8.x uses U+2018 and U+2019 for quotes.

Also do not call ghc-resolve-document-path if module cannot be extracted
in case of local functions.
2014-11-29 12:11:06 +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
Daniel Gröber
dbd94c4765 Revert ""expand" specifies "-b"."
No idea what this was supposed to do, there's no mention of
any -b option anywhere that I can find.

This reverts commit f23b0db4df.
2014-11-03 00:45:56 +01:00
Daniel Gröber
f55c264d67 Set version to "0" in master 2014-10-31 12:45:16 +01:00
Kazu Yamamoto
357694c6cc removing spaces. 2014-09-19 11:52:00 +09:00
Kazu Yamamoto
35a9da34a0 Revert "removing spaces."
This reverts commit 986eedcc75.
2014-09-16 12:22:18 +09:00
Kazu Yamamoto
986eedcc75 removing spaces. 2014-09-16 12:03:12 +09:00
Kazu Yamamoto
1baf56130f Merge pull request #352 from randen/ControlU-Fix
Don't turn C-u into a prefix command
2014-08-29 11:04:23 +09:00
Kazu Yamamoto
d283367bfe Merge pull request #344 from ttuegel/master
Use advice to check syntax on save-buffer
2014-08-29 10:51:52 +09:00
randen
b9acbf7713 Don't turn C-u into a prefix command
* elisp/ghc.el
  * There are many ways to fix issue #351 so this is
    just one example and may not fit the style you
    prefer, so please feel free to use or not.
    It is easy to work-around the issue by setting
    ghc-initial-sig-key to another key combination
    before ghc-init, but it would be nice to have a
    fix. The use of C-u for this binding seems to
    be just as a flag, thus this change takes
    the simplest fix to achieve that purpose.
2014-08-25 17:19:17 -07:00
Alejandro Serrano
6cf472168c Try to fix each error only once 2014-08-24 13:29:12 +02:00
Thomas Tuegel
f675ad4163 Use advice to check syntax on save-buffer 2014-08-23 21:49:03 -05:00
Kazu Yamamoto
607919e815 making case-split work even if the target is highlighted. 2014-08-20 14:44:24 +09:00
Kazu Yamamoto
a483f4f8b6 error messages are stored after NG, not printed in stderr. 2014-08-19 14:56:01 +09:00
Kazu Yamamoto
0fd8b9afd8 first try to resolve #322. 2014-08-18 16:55:41 +09:00
Kazu Yamamoto
f799ff1ee8 using force-mode-line-update just in case. 2014-08-18 15:42:14 +09:00
Alejandro Serrano
890658f9cb Fix merge conflict, dropdown-list no longer needed 2014-08-14 18:02:58 +02:00
Alejandro Serrano
8eeeacd58d Case splitting in M-t and initial-code in C-u M-t 2014-08-14 17:59:46 +02:00
Alejandro Serrano
7ecb66f32e Do not use dropdown-list for automatic completion 2014-08-14 17:49:49 +02:00
Alejandro Serrano
7315dff801 Make completion from Djinn use a dropdown list
Fixes #312
2014-08-12 23:01:37 +02:00
Alejandro Serrano
eec1419040 Make M-t run also code generation and case splitting
Fixes #308
2014-08-12 22:44:11 +02:00
Kazu Yamamoto
f95f7f89ce removing warnings of Emacs Lisp. 2014-08-06 20:50:50 +09:00
Alejandro Serrano
b626d4f236 Move refine to C-c C-f. Fixes #300 2014-08-05 09:05:19 +02:00
Alejandro Serrano
5623c62200 Support for multiple completions in Emacs 2014-08-02 10:27:40 +02:00
Alejandro Serrano
3aa83e14dd Show more than one Djinn completion 2014-08-02 09:52:36 +02:00
Kazu Yamamoto
d136fb4d67 fix #273. 2014-08-01 17:01:01 +09:00
Alejandro Serrano
32367fba4c Create links to files in typed holes information 2014-07-27 14:07:18 +02:00
Alejandro Serrano
f0c44e4850 Hihlight only hole when found 2014-07-27 11:49:10 +02:00
Alejandro Serrano
ccb9980436 Display only hole information when navigating it 2014-07-27 11:19:16 +02:00
Alejandro Serrano
82f7fd62f0 Add special commands for navigating holes 2014-07-27 11:10:37 +02:00
Alejandro Serrano
5cc884ef47 Split window when showing the errors buffer 2014-07-27 10:52:40 +02:00
Alejandro Serrano
952f0b7e95 Add new fringe for typed holes 2014-07-26 13:40:40 +02:00
Alejandro Serrano
2038127d04 Add docs to elisp code 2014-07-20 13:40:08 +02:00
Alejandro Serrano
efe440438b Refinement in Emacs ghc-mode 2014-07-20 10:45:01 +02:00
Kazu Yamamoto
755fa41fc0 ver bumps up for ghc.el. 2014-07-15 11:54:39 +09:00
Kazu Yamamoto
d68f7b2d18 removing a warning of elisp. 2014-07-07 10:34:20 +09:00
Kazu Yamamoto
648f914ac5 ghc-debug displays PATH env. 2014-07-07 10:34:06 +09:00
Alejandro Serrano
5db4044f29 Use a struct for accessing initial info data 2014-07-02 17:04:28 +02:00
Alejandro Serrano
3ef1979f67 Case splitting works in Emacs! 2014-06-26 21:17:22 +02:00
Alejandro Serrano
5fa536714f Initial code generation working
- Added fallback with haskell-src-exts
2014-06-22 18:03:34 +02:00
Alejandro Serrano
90abb89a98 Inserting instance initial body now works :) 2014-06-22 11:10:23 +02:00
Alejandro Serrano
5a968225c3 Initial skeleton for case split in elisp 2014-06-17 18:15:36 +02:00
Kazu Yamamoto
f9e912e425 fix #271 2014-06-16 10:21:15 +09:00
Kazu Yamamoto
2d8faed072 using buffer-live-p (#256). 2014-05-14 06:45:31 +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
Bryan O'Sullivan
0650cbd359 Check Emacs version at start
I ran into this when I tried to use ghc-mod with Emacs 24.2, and
got a mysterious error telling me that defvar-local was not defined.
2014-04-30 16:19:23 -07: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
2aa47fc449 proper message for debugging. 2014-04-26 21:00:28 +09:00
Kazu Yamamoto
f23b0db4df "expand" specifies "-b". 2014-04-26 14:31:33 +09:00
Kazu Yamamoto
abc660cdfe showing GHC version. 2014-04-25 22:03:09 +09:00
Kazu Yamamoto
3e812a8bfe M-x ghc-debug. 2014-04-25 14:31:09 +09:00
Kazu Yamamoto
f50e5229c4 NG contains an error. 2014-04-25 11:08:29 +09:00
Kazu Yamamoto
4011826a6b ver bumps up. 2014-04-24 22:22:23 +09:00
Kazu Yamamoto
e2369e6772 rescue the coming Emacs 24.4. 2014-04-24 17:14:10 +09:00
Kazu Yamamoto
b9d4b9b66f inserting template for type constructor. 2014-04-23 15:57:13 +09:00
Kazu Yamamoto
b4bb249131 fixing M-t with test cases. 2014-04-23 14:51:29 +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
6f9ceb94e2 giving up loading Data.ByteString. 2014-04-21 20:36:16 +09:00
Kazu Yamamoto
69cacb0865 giving up idle-timer.
- cannot avoid race
- not friendly with cradle.
2014-04-21 20:14:44 +09:00
Kazu Yamamoto
0bb71c2bfc adding comments. 2014-04-21 17:42:32 +09:00
Kazu Yamamoto
b873784424 ghc-import-module is not called from a hook now. 2014-04-21 17:39:45 +09:00
Kazu Yamamoto
067d3b7535 obsoleting a function. 2014-04-21 17:37:41 +09:00
Kazu Yamamoto
36e32ab1b2 ghc-import-module uses ghc-modi browse. 2014-04-21 17:35:32 +09:00
Kazu Yamamoto
3dc8e345b2 fixing/disabling idle timer. 2014-04-21 17:35:10 +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
30843b02ea using ghc-modi for C-cC-t. 2014-04-19 21:22:40 +09:00
Kazu Yamamoto
f8be944f12 using ghc-modi for C-cC-i. 2014-04-19 20:48:26 +09:00
Kazu Yamamoto
122c8da7b0 using ghc-add. 2014-04-19 20:09:47 +09:00
Kazu Yamamoto
f9a8361bca comment. 2014-04-19 20:07:12 +09:00
Kazu Yamamoto
47f95149e3 stop using 0 as the line separator. 2014-04-19 16:14:02 +09:00
Kazu Yamamoto
9cd3d521d4 Supporting GHC 7.8's unicode quote. 2014-04-09 15:17:51 +09:00
Kazu Yamamoto
02af334b94 imports Data.ByteString, System.FilePath, and System.Directory at booting. 2014-04-08 13:56:33 +09:00
Kazu Yamamoto
69ec168c7b errors over warnings (#212). 2014-04-08 13:42:41 +09:00
Kazu Yamamoto
b8423a2ce6 refactoring. 2014-04-08 13:35:16 +09:00