My understanding is this:
Buying a gun for someone who can't legally do so themself- straw purchase.
Buying a gun because you want to gift it- good to go.
The difference is whose money it is.
The bold part is only partially true. Even if you can legally buy a handgun, if you give your uncle money to buy one (because he gets an LEO discount), that's a straw purchase.