From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jeff Rancier" Newsgroups: gmane.emacs.help Subject: Binding mouse-3 to browse-url-at-point question Date: Tue, 10 Sep 2002 15:08:15 GMT Organization: Road Runner Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031670992 14782 127.0.0.1 (10 Sep 2002 15:16:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 15:16:32 +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 17omkh-0003qG-00 for ; Tue, 10 Sep 2002 17:16:31 +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 17omkl-0008Ii-00; Tue, 10 Sep 2002 11:16:35 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 38 X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-NNTP-Posting-Host: 24.97.108.46 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyroc.rr.com 1031670495 24.97.108.46 (Tue, 10 Sep 2002 11:08:15 EDT) Original-NNTP-Posting-Date: Tue, 10 Sep 2002 11:08:15 EDT Original-Xref: nntp.stanford.edu comp.emacs:74346 gnu.emacs.help:104678 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:1234 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1234 Hello. 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. I did C-h k on mouse-1 and got: mouse-drag-region (which first moves the point), so I naively tried: (global-set-key [(mouse-3)] (lambda() progn 'mouse-drag-region 'browse-url-at-point)) But got: recursive-edit: Wrong type argument: commandp, (lambda nil progn (quote mouse-drag-region) (quote browse-url-at-point)) Can anyone help me fix this up a bit? -- Thanks, Jeff ----------------------------------------------------------------- "Live as if you were to die tomorrow. Learn as if you were to live forever." - M.K. Gandhi