I use emacsclient to open files from my webrowser (pdfs, text files etc). When I'm done with the file, I know I need to close it with
C-x # (server-edit); if I use
C-x k (kill-buffer) I get a warning that the buffer still has a client. This happens frequently, and I'm tempted to advise kill-buffer to check for, and close, clients for the current buffer when called.
This seems obvious enough that there's probably a reason it's not the default - am I overlooking a problem this will create? What bad things could happen if I automatically close clients when killing a buffer?
(motivated by discussion of my answer to a related question on stack overflow)