Lars Ingebrigtsen writes: > > I think it would be better to put this in a helper function in subr.el, > for instance. > > And there's also `number-at-point', could perhaps be used here? Oh, I forgot about number-at-point. It extracts numbers that don't make sense here (like floating point or negative numbers), but we can easily filter them with natnump. I've attached a new patch; do you feel it's still necessary to extract the logic in a helper?