Do you have second level Gunsmith profession ?
If not it will be saved as learned but not show up, until you will learn that profession. You need 50% repair skill and 1500 caps to learn first first level of Gunsmith small guns, next you will need 100% repair skill and 3000 caps to learn second one. I advice you learn it from Boyce in Junktown, he's at back of garage in middle-east side of town. The same building as girl who buys spears.