npostavs@users.sourceforge.net writes: > Alex writes: > >> + (let ((overriding-terminal-local-map nil)) >> + (setq binding (key-binding (this-command-keys-vector) t))) > > IMO, it would be better style to do something like > > (let ((binding (let ((overriding-terminal-local-map nil)) > (key-binding (this-command-keys-vector) t)))) > ...) That was my first idea, but at the time I thought it was better style to use the setq version instead. :) Your version makes the binding more obvious, though, so I updated the patch to use it. I've attached it below. PS: I don't immediately see a reason to check for the (mark) in the condition. I tested by deactivating the mark explicitly, and setting mark-even-if-inactive to nil in the window, but it still worked correctly.