Subject: Re: bug#10165: [PATCH] Allow setting corner in mouse avoidance mode.

From: Juri Linkov <[email-masked]>
Date: Wed, 30 Nov 2011 11:32:32 +0200

>> there was nothing except modifying function
>> `mouse-avoidance-banish-destination' to set in which corner mouse is
>> banish.
>> This patch allow setting this through
>> `mouse-avoidance-banish-destination' user variable like this:
>> (left . top) or (right . bottom) etc...

FWIW, I have in my .emacs:

  ;; Move the mouse to the screen corner on any keypress.
  (when (and (display-mouse-p) (require 'avoid nil t))
    ;; Move the mouse to the lower-right corner instead of default upper-right
    (defun mouse-avoidance-banish-destination ()
      (cons (+ 3 (frame-width)) (- (frame-height) 1)))
    (mouse-avoidance-mode 'banish))

It would be better to allow users to replace such code with customization.