Heat oil in a 3- to 4-quart heavy saucepan over moderate heat until hot but not smoking, then cook pine nuts, stirring constantly, until golden, 2 to 3 minutes. Transfer with a slotted spoon to paper towels to drain. Add onion to pan, then reduce heat to moderately low and cook, stirring occasion...