From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?iso-8859-1?Q?Bockg=E5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Defadvice use Date: Mon, 18 Apr 2005 19:25:27 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: <1113844268.703229.310830@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1113845308 15708 80.91.229.2 (18 Apr 2005 17:28:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2005 17:28:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 18 19:28:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNa1t-0007up-R1 for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Apr 2005 19:27:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNa5n-0007dV-GQ for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Apr 2005 13:31:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.116.9.MISMATCH!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: linus003.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:7k5negAbm2x/7BYTknIjJ2bIxqE= Original-Xref: shelby.stanford.edu gnu.emacs.help:130215 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25782 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25782 "rgb" 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