The prime minister is learning how tough EU negotiations can be - but it won't deter him from seeking closer ties.