I made a mistake in my last posting. I’d said that Freud said that the depressed person doesn’t behave in the same way a person with low self-esteem behaves, but he doesn’t say how it’s different.
I just discovered that there was more to that paragraph that I was missing. Freud was talking about how there is something different in how the melancholic has low self-esteem and another person who may have low self-esteem, but is not depressed. He then says
“Feelings of shame in front of other people, which would more than anything characterize this latter condition, are lacking in the melancholic, or at least they are not prominent in him. One might emphasize the presence in him of an almost opposite trait of insistent communicativeness which finds satisfaction in self-exposure.”