Some better use of with-current buffer

  (save-current-buffer
    (set-buffer (process-buffer proc))
    ...)

is the same than with-current-buffer,
and when using with-current-buffer, one do not need to set the buffer a
second time.
Merge pull request #796 from vanicat/t/some-cleanup

Some better use of with-current buffer