ser
10/10/2003 2:57:00 AM
mike@ratdog.stok.co.uk (Mike Stok) wrote in message news:<8Xhhb.157332$3r1.126952@news02.bloor.is.net.cable.rogers.com>...
> Can you temporatily unset $VERBOSE, do your redefinition, then restore
> $VERBOSE?
Thanks for the responses, both for the $VERBOSE and
Module#remove_method. I should have seen remove_method, but I have a
bugger of a time finding global variable descriptions in the Axe book.
Which begs another question: is there a good, centralized place where
are these variables are described? Every time I need some rarely used
global, it seems like it takes me an hour to locate it. ("Was it
FNAME, or FILENAME?").
I'm not terribly concerned with thread safety, since -- worst case --
you either do or don't get a warning. Since this only happens during
the changing of the encoding of a document, and I expect this to be
fairly rare, I'm even less concerned about it.
I'm not using the alias trick (which I've used before) because this
redefinition happens in several files, and I don't want to add an
alias call to each of them. I'd prefer to turn off verbosity for a
very short time, do a "load", and then restore its state.