Next little shell script is designed to remove those nasty 'using namespace' directives that Lars shoved in when introducing namespace lyx::support. (No I'm not blaming anyone.)
It currently removes 'em all and then parses the error messages: $ namespace.sh insetbibtex.C insetbibtex.C needed 'using namespace' directive. Instances of 'split': 8 Instances of 'prefixIs': 4 Instances of 'contains': 5 Instances of 'MakeAbsPath': 4 Instances of 'IsFileReadable': 2 Instances of 'os': 12 Instances of 'rtrim': 1 Instances of 'Path': 5 Instances of 'ChangeExtension': 1 Instances of 'findtexfile': 1 Instances of 'trim': 3 Instances of 'subst': 2 Instances of 'ascii_lowercase': 1 Instances of 'ltrim': 1 Instances of 'tokenPos': 1 I'll get it to remove one at a time (lyx::support, bv_funcs) so that it can fix the problems automatically. The question: if there is only one instance of a function, should I add a global using lyx::support::trim; or should I prepend that 'trim' with 'lyx::support::'? -- Angus