Replace save-excursion+set-buffer with with-current-buffer.

Fixes the byte compiler warnings of the form:

Warning: Use `with-current-buffer' rather than
    save-excursion+set-buffer