Lars Ingebrigtsen writes: > "Philip K." writes: > >> These are the only edge-cases I found, but I didn't fix them yet, as I'm >> not sure what would be preferred. So the patches should not be applies yet. > > Have you done any further work on this? I have been thinking about this a bit more, and tried a different approach. The implementation is not prefect, but basically I am playing with emulation-mode-map-alists to bind the keys, instead of using the global map. The should solve the two issues I brought up, because I do not have to worry about restoring the previous keys, and some edge-cases are avoided, where e.g. doc-view would override up and down breaking the expected behaviour when setting the prefix to 'none. The code should probably be refactored, moving more of the common functionality into it's own function, but I am primarily wondering if using emulation-mode-map-alists the way I am proposing it here is ok. Or should I prefer minor-mode-map-alist? -- Philip K.