From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stefan-W. Hahn" Subject: Re: Firefox 36 and Links Date: Sun, 1 Mar 2015 09:09:01 +0100 Message-ID: <20150301080901.GC22486@pille.home> References: <54EF9CFC.4080605@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRyw1-0002Bs-Fk for emacs-orgmode@gnu.org; Sun, 01 Mar 2015 03:09:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRyvy-0002sM-6S for emacs-orgmode@gnu.org; Sun, 01 Mar 2015 03:09:09 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:58985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRyvx-0002sI-Th for emacs-orgmode@gnu.org; Sun, 01 Mar 2015 03:09:06 -0500 Content-Disposition: inline In-Reply-To: <54EF9CFC.4080605@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Scott Randby Cc: emacs-orgmode@gnu.org Mail von Scott Randby, Thu, 26 Feb 2015 at 17:23:56 -0500: Hello, > I know this isn't exactly a question about org, but it affects org, > so I'm hoping someone on this list might be willing to help me. > > The -remote command line option has been removed from Firefox 36: I ran in the same problem on linux. > I can't get the patch to work with Emacs 24.3 or 24.2. This could be > due to my very poor knowledge of elisp or that the patch isn't > compatible with those versions of Emacs. I worked around it with a little elisp: #+BEGIN_SRC elisp (use-package browse-url :if running-linux :init (progn (let ((str (shell-command-to-string "firefox -v"))) (when (and (string-match "Mozilla Firefox \\([0-9]+\\)\\.[0-9]+" str) (>= (string-to-number (match-string 1 str)) 36)) (advice-add 'browse-url-firefox :around 'browse-url-firefox-version-36) (message "Advice added for `browse-url-firefox' to call firefox >= v36") )) ) :config (progn (defun browse-url-firefox-version-36 (orig-fun url &optional new-window) "Linux version of firefox (>=v36.0) does not know the command \"-remote openURL(...)\". So act in linux as on windows and give just the requested URL as command line parameter." (let ((system-type 'windows-nt)) (apply orig-fun url new-window))) ) ) #+END_SRC If you're not using "use-package" then the following minimal code will suffice: #+BEGIN_SRC elisp (require 'browse-url) (advice-add 'browse-url-firefox :around 'browse-url-firefox-version-36) (defun browse-url-firefox-version-36 (orig-fun url &optional new-window) "Linux version of firefox (>=v36.0) does not know the command \"-remote openURL(...)\". So act in linux as on windows and give just the requested URL as command line parameter." (let ((system-type 'windows-nt)) (apply orig-fun url new-window))) #+END_SRC With kinde regards, Stefan -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple.