From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Binding mouse-3 to browse-url-at-point question Date: Tue, 10 Sep 2002 10:42:54 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3D7E210E.6040306@ihs.com> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1031676967 4346 127.0.0.1 (10 Sep 2002 16:56:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 16:56:07 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ooJ1-00017V-00 for ; Tue, 10 Sep 2002 18:56:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ooJ6-0003s3-00; Tue, 10 Sep 2002 12:56:08 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: fu-berlin.de 1031676170 61916221 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: nntp.stanford.edu comp.emacs:74350 gnu.emacs.help:104685 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1241 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1241 Jeff Rancier wrote: > I easily enough bound it, via the following in my .emacs: > > (global-set-key [(mouse-3)] 'browse-url-at-point) > > The problem is that the point doesn't change to the line I mouse-3 click on > before I browse-url-at-point(). Of course I can click mouse-1, then > mouse-3, to acheive this, but I'd rather have mouse-3 move the point then > browse. Shouldn't you bind browse-url-at-mouse instead: | browse-url-at-mouse: an interactive autoloaded Lisp function in `browse-url'. | | Ask a WWW browser to load a URL clicked with the mouse. | The URL is the one around or before the position of the mouse click | but point is not changed. The URL is loaded according to the value of | `browse-url-browser-function'. -- Kevin Rodgers