after a few months of having the exact same issue....and failing the AZ emissions test 6 times !($20 each trip), I needed to find out what the problem was just to keep my sanity !
The engine was rebuilt about a year ago.. completely... head to toe, everything rebuilt.
Within the last six months I started to have the same problem with surging at idle..and fixing it by bliping the throttle. This USUALLY worked.
I went through the entire bike from carbs to points to coil etc... making sure everything was within spec. WhileI was cleaning out the carbs while still on the bike and getting ready to sync them with a drill bit, I noticed something that seemed out of place while bliping the throttle. I had all of the top covers off of the carbs and was going to loosen the adjusting nut getting ready to sync. While I made sure nothing was gummed up or sticking... I noticed a weird 'looseness sound' while snapping the throttle shut. I did this a few time and witnessed that a few of the slides were 'bouncing or vibrating' while it was snapped shut. This is what the problem was and for the life of me ... would probally NEVER would of found this unless I completely rebuilt the carbs from the ground up. The shaft that goes through all of the carbs and is set in place to the slides via one screw. All of the screws were loose thus causing the slides to somewhat stick not completely returning to the idle position. I had adjusted the air/fuel mixture along with everything possible for emission but could never pass.... any time I made an adjustment, it seemed that the readings were all over the place, which didn't make sense to me. I thought I would pass this along to anyone else who is having the same issues with a sticking throttle. If you have gone throught all else... linkage, cables, adjustments for air etc...... check your set screws that hold the slides in place under the top carb covers. My bike now runs brand new with idle at about 900rpms and runs like a Swiss watch !!!!!!!!