Yes, I remember Barney Miller. Ron Glass played the very cool detective who was always writing a novel.
Many years later he was in the cast of Firefly, in a preacher-like role, The Shepherd. If you haven't seen it, find or rent a copy of that single-season TV series. Too bad that series didn't last longer, as they had just begun to develop The Shepherd's character.
RIP Ron Glass.