Date: Sun, 16 Feb 2003 20:24:44 -0800 From: George Hartzell <hartzell@kestrel.alerce.com> To: Randy Bush <randy@psg.com> Cc: Joe Marcus Clarke <marcus@marcuscom.com>, freebsd gnome <freebsd-gnome@FreeBSD.ORG> Subject: Re: galeon with VM Message-ID: <15952.25612.705662.74882@rosebud.alerce.com> In-Reply-To: <E18kUQH-0006Vg-00@rip.psg.com> References: <E18kTjS-0006KP-00@rip.psg.com> <1045423405.38530.9.camel@shumai.marcuscom.com> <E18kUQH-0006Vg-00@rip.psg.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15952.25612.705662.74882>