tl;dr: Pull request for a fuel issue. Github:
http://github.com/seckar/factor
git://github.com/seckar/factor.git

Hi Jose and list,

Fuel will automaticaly DEFER: words when C-c C-e u is invoked,
provided that the word's name is not used anywhere else in Factor.
This can lead to the odd sequence of:
  - Have a file which refers to a nonexistant word, fuel-run-file fails
  - Run fuel-update-usings to add all the USINGS
  - Run fuel-run-file, file now loads fine, since the fake word has
been DEFER'd.
  - Miss that you've made an error until you run tests or code
  - Start using forget-vocab out of paranoia.

This occurs because when finding USINGs, fuel will invoke any restart
if there is a single option. This is done even if the restart is not
an "Add foobar to USINGs" restart.

I've pushed a commit to github that removes this check, thus fixing
this problem. Now when a file contains a case like this, fuel will
instead print this slightly deluded message:

Please, type the number of the desired vocabulary:
 :1 Defer word in current vocabulary

Cases where a word is provided by only one vocabulary are handled by
the parser, and do not prompt the user.

-Nicholas

PS: Another option is to use the is-use-restart word in fuel.factor to
prune the list of restarts sent back to emacs. Jose, if you would
prefer we do this let me know and I'll send a CL.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to