On 30 September 2011 15:48, Lex Trotman <[email protected]> wrote: > Hi Stuart, > > 8.6.6 appears to have a regression where it no longer loads backend > conf files from the document directory. > > This appears to be because the first call to load_backend() uses the > default dirs of None which doesn't search the local directory and as > of 2a09198b6f84 raises an exception instead of a warning. Just > providing a warning used to then allow the second call > load_backend([indir]) to proceed and find the backend file in the > document directory. > > The user guide says that backends are loaded from backends/<backend> > in locations 1,2,3 where 1 is the document directory but due to the > exception this does not happen. > > With 8.6.6 all backends must be installed in shared locations (2 or 3) > which means that they may silently be applied to documents they were > not meant to. This is of course problematical when developing changes > or improvements to backends already in use, so the problem needs to be > fixed. > > I got lost trying to find the correct fix, so I am going to have to > leave it to you. >
Having thought about it some more, and re-read section 26.11 several times I realise that the above is wrong, list item 4 is the document directory not list item 1. So I am actually asking for a new feature, to have backends loaded from documentdir/backends/backendname, Use cases are initial development as outlined above and the ability to have local configs used for more than one file. That is compared to -e that requires the config file to be named infile.backend.conf, somewhat inconvenient for multiple files. I'm still confused about the code and the way load_backend() does different things if it has an argument or not. I think it makes it harder to do what I just asked, maybe it should be simplified and then called multiple times with the necessary directories and prefixes. That would be much clearer (IMHO). Cheers Lex PS or maybe -e could take an optional parameter to specify an explicit config directory (I like that better than adding yet another implicit loading place :-) > Cheers > Lex > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
