Diane Keaton waxes poetically about the reunion she had with Allen on 77th and Madison Avenue, a stroll down memory lane nearly 40 years after “Annie Hall” hit theaters, according to Keaton’s memoir “Let’s Just Say It Wasn’t Pretty” (Random House).

Keaton invited Allen out for a stroll “like we used to” on Madison Avenue before he headed off to France for a shoot in 2011.

“We didn’t hold hands, like the old days, but I swear he wore what must have been one of his beige bucket hats from ‘Annie Hall,’ ” she writes. She paired a Marni dress with a black turtleneck, a big cross around her neck, and “the requisite wide-brimmed black hat,” Keaton’s signature “Annie Hall” look.

“We looked in the windows of stores, starting with Ralph Lauren complex on 72nd. We passed the Whitney. We took in the people. They took us in, as well.”

“When we reached Campbell’s mortuary, we looked at each other. He was 77. I was 67. Where did the time go?”“It was almost like it used to be, only sweeter, because I knew it couldn’t last. Paul waved goodbye as we headed back.”