Herbert Sitz hs...@nwlink.com writes:
I'm making a call to an emacsclient and trying to figure out how to get the
buffer to unload at the end of the function I'm calling. I know kill-buffer
isn't supposed to unload the buffer but I can't figure out what will. I've
tried server-edit and
(defun test-kill-buffer (fname exp-function)
(let ((buf (find-file fname)))
(funcall exp-function)
(kill-buffer buf)))
(test-kill-buffer /tmp/abc.txt 'some-function-to-call)
will do the trick.
Regards, Olaf
Olaf --
Beauteous, thank you, that did indeed do the trick.
I'm making a call to an emacsclient and trying to figure out how to get the
buffer to unload at the end of the function I'm calling. I know kill-buffer
isn't supposed to unload the buffer but I can't figure out what will. I've
tried server-edit and server-kill-buffer in place of kill-buffer