Finally, the therapist elicits a commitment from the patient to change his or her behavior, a verbal pledge in exchange for a chance to live: “Therapy does not work for people who are dead” is one way she puts it.

Yet even as she climbed the academic ladder, moving from the Catholic University of America to the University of Washington in 1977, she understood from her own experience that acceptance and change were hardly enough. During those first years in Seattle she sometimes felt suicidal while driving to work; even today, she can feel rushes of panic, most recently while driving through tunnels. She relied on therapists herself, off and on over the years, for support and guidance (she does not remember taking medication after leaving the institute).

Dr. Linehan’s own emerging approach to treatment — now called dialectical behavior therapy, or D.B.T. — would also have to include day-to-day skills. A commitment means very little, after all, if people do not have the tools to carry it out. She borrowed some of these from other behavioral therapies and added elements, like opposite action, in which patients act opposite to the way they feel when an emotion is inappropriate; and mindfulness meditation, a Zen technique in which people focus on their breath and observe their emotions come and go without acting on them. (Mindfulness is now a staple of many kinds of psychotherapy.)

In studies in the 1980s and ’90s, researchers at the University of Washington and elsewhere tracked the progress of hundreds of borderline patients at high risk of suicide who attended weekly dialectical therapy sessions. Compared with similar patients who got other experts’ treatments, those who learned Dr. Linehan’s approach made far fewer suicide attempts, landed in the hospital less often and were much more likely to stay in treatment. D.B.T. is now widely used for a variety of stubborn clients, including juvenile offenders, people with eating disorders and those with drug addictions.

“I think the reason D.B.T. has made such a splash is that it addresses something that couldn’t be treated before; people were just at a loss when it came to borderline,” said Lisa Onken, chief of the behavioral and integrative treatment branch of the National Institutes of Health. “But I think the reason it has resonated so much with community therapists has a lot to do with Marsha Linehan’s charisma, her ability to connect with clinical people as well as a scientific audience.”

Most remarkably, perhaps, Dr. Linehan has reached a place where she can stand up and tell her story, come what will. “I’m a very happy person now,” she said in an interview at her house near campus, where she lives with her adopted daughter, Geraldine, and Geraldine’s husband, Nate. “I still have ups and downs, of course, but I think no more than anyone else.”

After her coming-out speech last week, she visited the seclusion room, which has since been converted to a small office. “Well, look at that, they changed the windows,” she said, holding her palms up. “There’s so much more light.”