"rgb" <[EMAIL PROTECTED]> writes:

> ; I don't like bookmark mouse-2 opening the file in another window.
> ; There doesn't seem to be any other way to fix the problem.  The
> ; theory here is to temporarily re-define the function that the mouse
> ; handler does call giving it the definition of the function I wish it
> ; would call.
> (defadvice bookmark-bmenu-other-window-with-mouse
>   (around my-fix first () activate) ;rgb 2004
>   "Changes behavior to open file in same window, not other-window."
>   (let (bookmark-bmenu-other-window)
>     (fset 'bookmark-bmenu-other-window
>           (symbol-function 'bookmark-bmenu-this-window))
>     ad-do-it))

This permanently redefines `bookmark-bmenu-other-window'.

-- 
Johan Bockgård
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to