[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" <rbielaws@i1.net> 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
- Defadvice use, Matthias, 2005/04/18
- Re: Defadvice use, rgb, 2005/04/18
- Re: Defadvice use,
Johan Bockgård <=
- Re: Defadvice use, rgb, 2005/04/18
- Re: Defadvice use, Stefan Monnier, 2005/04/18
- Re: Defadvice use, rgb, 2005/04/18
- Re: Defadvice use, Stefan Monnier, 2005/04/18
- Re: Mis-features of let (was Defadvice use), rgb, 2005/04/18
- Re: Mis-features of let, Stefan Monnier, 2005/04/19
- Re: Mis-features of let, rgb, 2005/04/19
- Re: Mis-features of let, Stefan Monnier, 2005/04/19
- Re: Mis-features of let, rgb, 2005/04/19
- Re: Mis-features of let, David Kastrup, 2005/04/19