Stefan told me the patch is ok now, except that I should call `suppress-keymap' first in the keymap definition, not last. So here's an updated patch: --8<---------------cut here---------------start------------->8--- 2007-10-24 Tassilo Horn * progmodes/ps-mode.el (ps-mode-map): Change bindinc C-c C-c to C-c C-l and remove binding C-c v. * doc-view.el (doc-view-mode): Remove text/image switching code. Use plain defun. (doc-view-minor-mode): New minor mode. (doc-view-minor-mode-map): New keymap. (doc-view-mode-text-map): Remove keymap. (doc-view-mode-map): New binding K to kill the converter process. (doc-view-current-display): Remove variable. (doc-view-buffer-message): Mention new binding K. (doc-view-display-maybe): Remove function. (doc-view-pdf/ps->png): Timer calls d-v-display instead d-v-display-maybe. (doc-view-mode-map): Use image-mode scrolling for mouse-wheel. (doc-view-ps->pdf): Resort args to make ps2pdf happy. (doc-view-current-cache-dir): Better cache dir naming. (doc-view-remove-if): New function. (doc-view-search-next-match, doc-view-search-previous-match): Use it. * files.el (auto-mode-alist): Change entries: pdf/dvi -> doc-view-mode, ps -> ps-mode. --8<---------------cut here---------------end--------------->8---