Sujet : Re: how to pass a bound method to fileutil::traverse as a -prefilter
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 23. Jul 2025, 16:27:15
Autres entêtes
Message-ID : <ygaecu7x6zw.fsf@akutech.de>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Mark Summerfield <
m.n.summerfield@gmail.com>
| I want to pass a bound method to fileutil::traverse as a -prefilter.
| I'm using `lambda` but it doesn't help. I can't work out what I'm
| doing wrong based on the error output.
--<snip-snip>--
| fileutil::traverse iter -prefilter $pre_filter
--<snip-snip>--
| unknown option "::apply {{ignore dirname} {
| dir_filter $ignore $dirname
| }} {test*.* zOld}"
man traverse(n)
::fileutil::traverse ?objectName? path ?option value...?
I think you are missing the PATH argument to ::fileutil::traverse, so
the '-prefilter' is taken as the path, and the $pre_filter as an option
name (which does not exist, as the error message states :-)
R'