On Wednesday 26 February 2003 4:22 pm, Andre Poenitz wrote: > On Wed, Feb 26, 2003 at 04:09:37PM +0000, Angus Leeming wrote: > > My question: should I use these switches or should I use if-blocks? > > Angus > > > > case LFUN_INDEX_APPLY: > > case LFUN_REF_APPLY: { > > Hm... what about > > LFUN_DIALOG_APPLY "ref" > LFUN_DIALOG_APPLY "index"
It's easier to specialise first and then collapse these specialisations into generic ones once the commonality becomes clear. However, I would like to end up here, yes. As I'm a lazy bum, could you tell me if the current implementation of FuncRequest supports this: LFUN_DIALOG_APPLY "ref" "LatexCommand \ref{sec:title}\nend_inset\n\n" LFUN_DIALOG_APPLY "citation" "LatexCommand \citeN[see Chapter 2]{leeming\nend_inset\n\n}"