From: KanZen
Subject: Configuring emacs/slime hyperspec use
Date: 
Message-ID: <10eb079f.0404141348.c1b2ff2@posting.google.com>
I have emacs and slime running on linux , and I'm trying to get this hyperspec
lookup thing to work. I have mozilla installed rather than netscape, and
specifically I want mozilla to be used as per the info at
http://mozilla.org/unix/remote.html

So I'd like to use: mozilla -remote "openurl(the-url, new-tab)"

How exactly do I change this in emacs or slime?

I've been looking through all the stuff with functions named things like
browse-url-netscape and so forth in loaddefs.el but so far I'm just confused.

KanZen

From: Svein Ove Aas
Subject: Re: Configuring emacs/slime hyperspec use
Date: 
Message-ID: <Qyifc.25304$zf6.90063@news4.e.nsc.no>
KanZen wrote:

> How exactly do I change this in emacs or slime?


Here's mine:


(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(browse-url-browser-function (quote browse-url-generic))
 '(browse-url-generic-program "galeon"))
From: KanZen
Subject: Re: Configuring emacs/slime hyperspec use
Date: 
Message-ID: <10eb079f.0404151201.250fd818@posting.google.com>
Thanks, I changed galeon to mozilla and this works for me. Interestingly I
didn't have to worry about that -remote business.

KanZen
From: Petter Gustad
Subject: Re: Configuring emacs/slime hyperspec use
Date: 
Message-ID: <m3d669pbgy.fsf@scimul.dolphinics.no>
Svein Ove Aas <·····@brage.info> writes:

> KanZen wrote:
> 
> > How exactly do I change this in emacs or slime?
> 
> 
> Here's mine:
> 
> 
> (custom-set-variables
>   ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
>   ;; Your init file should contain only one such instance.
>  '(browse-url-browser-function (quote browse-url-generic))
>  '(browse-url-generic-program "galeon"))

I prefer to use W3 in emacs for hyperspec access. It loads fast and
makes copy/paste from the hyperspec easy.

  (add-hook 'lisp-mode-hook 
            (lambda () 
              (slime-mode t)
              (setq browse-url-browser-function 'browse-url-w3)))


Petter
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
From: Edi Weitz
Subject: Re: Configuring emacs/slime hyperspec use
Date: 
Message-ID: <m3ekqpnw92.fsf@bird.agharta.de>
On 15 Apr 2004 16:22:37 +0200, Petter Gustad <·············@gustad.com> wrote:

> I prefer to use W3 in emacs for hyperspec access. It loads fast and
> makes copy/paste from the hyperspec easy.
>
>   (add-hook 'lisp-mode-hook 
>             (lambda () 
>               (slime-mode t)
>               (setq browse-url-browser-function 'browse-url-w3)))

BTW, browse-url-browser-function itself can be customized to dispatch
to different browsers depending on the URL. From the docs (note second
paragraph):

  "Function to display the current buffer in a WWW browser.  This is
   used by the `browse-url-at-point', `browse-url-at-mouse', and
   `browse-url-of-file' commands.

   If the value is not a function it should be a list of pairs (REGEXP
   . FUNCTION).  In this case the function called will be the one
   associated with the first REGEXP which matches the current URL.
   The function is passed the URL and any other args of `browse-url'.
   The last regexp should probably be "." to specify a default
   browser."

Edi.
From: Svein Ove Aas
Subject: Re: Configuring emacs/slime hyperspec use
Date: 
Message-ID: <NFAfc.6829$px6.96435@news2.e.nsc.no>
Petter Gustad wrote:

> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?


Shouldn't that be the following?

---
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?