[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defadvice use

From: Johan Bockgård
Subject: Re: Defadvice use
Date: Mon, 18 Apr 2005 19:25:27 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

"rgb" <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]