Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 20:49:24 -0800
From:      Randy Bush <randy@psg.com>
To:        George Hartzell <hartzell@kestrel.alerce.com>
Cc:        Joe Marcus Clarke <marcus@marcuscom.com>, freebsd gnome <freebsd-gnome@FreeBSD.ORG>
Subject:   Re: galeon with VM
Message-ID:  <E18kdDY-0008Iw-00@rip.psg.com>
References:  <E18kTjS-0006KP-00@rip.psg.com> <1045423405.38530.9.camel@shumai.marcuscom.com> <E18kUQH-0006Vg-00@rip.psg.com> <15952.25612.705662.74882@rosebud.alerce.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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)

bingo!  thank you!

randy


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?E18kdDY-0008Iw-00>