From owner-freebsd-gnome Sun Feb 16 20:28:21 2003 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B07F37B401 for ; Sun, 16 Feb 2003 20:28:20 -0800 (PST) Received: from kestrel.alerce.com (kestrel.alerce.com [209.182.219.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 273B143F3F for ; Sun, 16 Feb 2003 20:28:19 -0800 (PST) (envelope-from hartzell@rosebud.alerce.com) Received: from rosebud.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) by kestrel.alerce.com (8.12.4/8.12.4) with ESMTP id h1H4S1k6013585 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 16 Feb 2003 20:28:02 -0800 (PST) (envelope-from hartzell@rosebud.alerce.com) X-Authentication-Warning: kestrel.alerce.com: Host w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92] claimed to be rosebud.alerce.com Received: from rosebud.alerce.com (rosebud.alerce.com [127.0.0.1]) by rosebud.alerce.com (8.12.7/8.12.7) with ESMTP id h1H4QaCb002806 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 16 Feb 2003 20:28:02 -0800 (PST) (envelope-from hartzell@rosebud.alerce.com) Received: (from hartzell@localhost) by rosebud.alerce.com (8.12.7/8.12.6/Submit) id h1H4PFhN002797; Sun, 16 Feb 2003 20:25:15 -0800 (PST) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15952.25612.705662.74882@rosebud.alerce.com> Date: Sun, 16 Feb 2003 20:24:44 -0800 To: Randy Bush Cc: Joe Marcus Clarke , freebsd gnome Subject: Re: galeon with VM In-Reply-To: References: <1045423405.38530.9.camel@shumai.marcuscom.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: hartzell@kestrel.alerce.com (George Hartzell) Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Randy Bush writes: > [...] > that sounds like how to invoke the right MUA from galeon. i am trying > to do the reverse, send a URL from my MUA to galeon. and i keep getting > "The URL is not valid and can not be loaded" either with the elisp hack > i found on net (see appended) or straight out. The problem is that the netscape code that you're calling wraps the url text that says -openURL(..), which apparently makes netscape all warm and fuzzy. The following seems to work for me. The vm-mouse-send-url-to-galeon function is just a rip-off of the netscape code from vm-mouse.el, the qx-add-galeon-menu-item is just a touch up of what you posted. (setq vm-galeon-program "galeon") (setq vm-galeon-program-switches "-n") (defun vm-mouse-send-url-to-galeon (url) (message "Sending URL to Galeon...") (vm-run-background-command vm-galeon-program vm-galeon-program-switches url) (message "Sending URL to Galeon... done")) (setq vm-url-browser 'vm-mouse-send-url-to-galeon) (defun qx-add-galeon-menu-item () (setq vm-menu-url-browser-menu (let ((title (car vm-menu-url-browser-menu)) (rest (cdr vm-menu-url-browser-menu))) (cons title (cons ["Galeon" (vm-mouse-send-url-at-position (point) (function vm-mouse-send-url-to-galeon)) t] rest))))) (add-hook 'vm-mode-hook 'qx-add-galeon-menu-item) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message