From: Daniel Martins <danielemc@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org, Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: default browser - SOLVED
Date: Fri, 26 Feb 2010 14:06:59 -0300 [thread overview]
Message-ID: <6ac505ad1002260906t3909dc94xd7f39521bf2646c3@mail.gmail.com> (raw)
In-Reply-To: <3332.1267198545@gamaville.dokosmarshall.org>
[-- Attachment #1.1: Type: text/plain, Size: 2456 bytes --]
Thanks Nick,
> Most (?) browsers have a remote URL capability: you can send a URL to an
> already running instance and it will just open it, without going through
> the overhead of creating another instance.
For me it seems strange this behaviour.
When I have firefox already open, it creates another tab for the URL and
does not open a new firefox instance.
Daniel
2010/2/26 Nick Dokos <nicholas.dokos@hp.com>
> [I had sent a similar answer to Henri-Paul, but for some reason, my reply
> never hit the list - I've had problem posting to the list in the past
> couple of days. I have an outstanding query to the list administrators,
> but I haven't heard anything back. If you do receive this personally,
> you might want to check the list and if it does not make it within the
> next day or so, you might want to just post it there for posterity.]
>
> Daniel Martins <danielemc@gmail.com> wrote:
>
>
> > You solved for me a quite annoying issue related to org that I could not
> solve!
> >
> > For those who use firefox these two lines become:
> >
> > (setq browse-url-browser-function (quote browse-url-generic))
> > (setq browse-url-generic-program "firefox")
> >
> > Simply copy and paste it!!
> >
>
> Daniel,
>
> The problem with this solution is that it creates a new instance
> of the browser every time you click a link:
>
>
> ,----
> | browse-url-generic is an interactive compiled Lisp function in
> | `browse-url.el'.
> |
> | (browse-url-generic URL &optional NEW-WINDOW)
> |
> | Ask the WWW browser defined by `browse-url-generic-program' to load URL.
> | Default to the URL around or before point. A fresh copy of the
> | browser is started up in a new process with possible additional arguments
> | `browse-url-generic-args'. This is appropriate for browsers which
> | don't offer a form of remote control.
> `----
>
> Most (?) browsers have a remote URL capability: you can send a URL to an
> already running instance and it will just open it, without going through
> the overhead of creating another instance.
>
> For firefox, I do the following:
>
> ,----
> | (defun browse-url-firefox (url &optional new-window)
> | (shell-command (concat "firefox-xremote-client" " " "\"" url "\"")))
> |
> | (setq browse-url-browser-function 'browse-url-firefox)
> `----
>
> with the following firefox-xremote-client script somewhere in my path:
>
> ,----
> | #! /bin/bash
> |
> | firefox --remote "openURL($1)"
> `----
>
> HTH,
> Nick
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 3199 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-02-26 17:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 18:18 default browser - SOLVED Henri-Paul Indiogine
2010-02-25 18:58 ` Carsten Dominik
2010-02-26 10:48 ` Daniel Martins
[not found] ` <3332.1267198545@gamaville.dokosmarshall.org>
2010-02-26 17:06 ` Daniel Martins [this message]
2010-02-26 22:03 ` Matt Lundin
2010-02-27 21:09 ` Henri-Paul Indiogine
2010-02-28 8:25 ` Richard Riley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6ac505ad1002260906t3909dc94xd7f39521bf2646c3@mail.gmail.com \
--to=danielemc@gmail.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.