I now finally understand what's happening. It's nothing to do with emacs-w3m (quelle surprise) and everything to do with the peculiarities of my system and Debian. Sorry for the noise. Best wishes, Colin Baxter.