My cat does this all the time, especially when I have a deadline.
I'm extra attentive though when she does this--it can only mean that she's pregnant. The first time it happened, I just thought that she's being affectionate. Several weeks later, she was getting heavy. Then I had to put a comforter on my lap because, man, those claws can dig.