Comfort
When the Bible talks about someone being comforted or consoled, it generally means that they are being offered ideas that will help bring them to a more peaceful spiritual state, whether it is a new state or the restoration of one that had been under attack. It's interesting; we tend to think of comforting someone as an emotional thing, offering our own feelings to help them feel better. But the Writings say that the spiritual meaning of 'comfort' is actually more intellectual, coming when a person gains new true ideas.
In Genesis 5:29, this signifies doctrine whereby what was perverted may be restored. (Arcana Coelestia 531)
In Genesis 27:42, this signifies intent to invert the current spiritual state.
Arcana Coelestia #532
532. Verses 30, 31 And Lamech lived after he beget Noah five hundred and ninety-five years; and he beget sons and daughters. And all the days of Lamech were seven hundred and seventy-seven years; and he died.
As has been stated, 'Lamech' means a vastated Church. 'Sons and daughters' means conceptions and births of such a Church.