--- emacs-24.3/lisp/winner.el +++ emacs-24.3/lisp/winner.el @@ -309,7 +309,9 @@ for entry = (cadr (assq buf winner-point-alist)) do (progn (set-buffer buf) (set-mark (car entry)) - (setf (winner-active-region) (cdr entry))))) + (setf (winner-active-region) (cdr entry)) + (if (cdr entry) (run-hooks 'activate-mark-hook) + (run-hooks 'deactivate-mark-hook))))) ;; Delete windows, whose buffers are dead or boring. ;; Return t if this is still a possible configuration. (or (null xwins)