Much improved version of a USING linter here (gist)
<https://gist.github.com/cwalston/f6da9cca0105f5d67483935380001d84>.
Tracing through the fuel vocabs, I found that by using `vocab-uses`,
defined IN: tools.crossref,
I could get the job done without a temporary file, & the linter code
dropped from 11 definitions to 7.
For now, the use case is focussed on linting only the first occurring
USING: ... ; form.
I renamed the vocab "lint-using". User interaction works the same way. See
what you think.
I'm still pondering all the suggestions in the comments... more to do on
this.
Thanks for the help,
~cw

On Wed, Feb 7, 2018 at 3:20 PM, CW Alston <cwalsto...@gmail.com> wrote:

> Thanks for the tip, Björn -
>
> Being one of those non-emacs users, I never thought to look there. I'll
> check out how it's done in fuel.
> ~cw
>
>
> On Wed, Feb 7, 2018 at 8:33 AM, Björn Lindqvist <bjou...@gmail.com> wrote:
>
>> Hi guys,
>>
>> I haven't tested it but it looks pretty good! But note that FUEL has a
>> very similar feature. You press C-c C-eu and it finds a minimal using list,
>> using restarts. So to make a free-standing one (which would be useful
>> because then non-emacs users can use it), you probably want to look in
>> fuel-debug-uses.el and fuel.factor for inspiration.
>>
>> 2018-02-07 10:44 GMT+01:00 CW Alston <cwalsto...@gmail.com>:
>>
>>> Hi again - Posted a cleaned-up, working gist of a USING linter
>>> <https://gist.github.com/cwalston/f6da9cca0105f5d67483935380001d84>.
>>> See what you think of it.
>>> Cheers,
>>> ~cw
>>>
>>> P.S. - cat, I didn't notice your comments until I posted this. I'll take
>>> a good look
>>> at your suggestions. Thanks!
>>> ~cw
>>> --
>>> *~ Memento Amori*
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Factor-talk mailing list
>>> Factor-talk@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>>
>>>
>>
>>
>> --
>> mvh/best regards Björn Lindqvist
>>
>
>
>
> --
> *~ Memento Amori*
>



-- 
*~ Memento Amori*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to