Re: Electrical outlet and switches near pocket door
If you use conduit or MC (metal-clad) cable, you don't have to worry about code-required clearance.
If there really isn't enough space for the electrical boxes, you could use Wiremold-type surface boxes, but that wouldn't look as good. You could also use surface-mount devices. Most that I've seen 0nline are sold for European countries (where they have a lot of old houses where it's impossible to install wires in the walls) and may not be UL listed for use in the United States.
The "Senior Member" designation under my name doesn't mean I know a lot, it just means I talk a lot.I've been a DIYer since I was 12 (thanks, Dad!). I have read several books on various home improvement topics. I do not have any current code books I can refer to. I was an apprentice plumber for two years.