Stone the plums and roughly chop. Peel, core and chop the apples and peel and chop the onions. Chop the raisins. Put all the ingredients into a preserving pan or large saucepan and simmer gently until thick, about 11/2 hours. Pour into hot sterilized jars and seal. Leave for about 2 months before using.