Open ThibautVerron opened 10 years ago
Work in progress in the completion
branch.
Working:
Todo:
load
load
instructionsReplaced the extraction of definitions using imenu with some in-house function magma-scan
, which is also aware of changes in the working directory and loaded files.
It passes basic testing, but requires some more test to ensure that it isn't too slow in everyday use. No attempt has been made at caching any result.
This function is called:
Reimplemented it with caching of the scan results.
It can probably still be improved:
magma-scan
(at the moment there is duplicate code between magma-scan.el
and magma-completion.el
, for the interactive buffer).
With comint, since the line is sent as a whole, it seems difficult to trigger magma's completion engine from emacs. On the other hand, with a list of magma keywords, it should be possible to implement completion from within emacs (see for example what happens if you press
<tab>
inielm
).That list of keywords could be initialized from the magma documentation index, and then completed with user keywords using filters and sentinels in the comint buffer.
Another option would be to parse the input and source using etags.