-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/01/12 18:03, Jürgen Spitzmüller wrote: > Jean-Marc Lasgouttes wrote: >> I think we should not read both files, since the semantics of >> replacing a system file by a user one should be preserved. It >> would be better to load a external_templates.user file (or any >> better name you come up with), like we load several flavors of >> lyxrc files (lyxrc.dist, lyxrc.defaults, preferences). > > I'm not sure I understand. IMHO the user file should be read after > the system file. So any external template in the system file that > is not in the user file should be kept, new user-contributed files > should be added. If templates are in both files, the user version > should override the system version. > > Having said that, I wonder if it would not be better to split this > file into one file per template, having > templates/pdfpages.template, templates/xfig.template etc. Then we > could read all *.template files in both directories, and stick with > the practice of reading only one of each, like we do for *.layout > etc.
I agree with this design - it is very intuitive, and it has the advantage, that one can not accidentally break one template when editing another one. Would definitely be the optimal solution. Rainer > > Jürgen > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8L++MACgkQoYgNqgF2egpb4QCfXem1JRU1x3qTwFue6XWW0UEJ T7kAn1KWYbvMiNGyqsLkk+PdQd+3FLlq =hwgu -----END PGP SIGNATURE-----