From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Martin Newsgroups: gmane.emacs.help Subject: open in browser Date: Fri, 27 Jan 2017 13:59:06 +0100 Message-ID: <877f5ghd5x.fsf@kaffanke.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1485529079 16467 195.159.176.226 (27 Jan 2017 14:57:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2017 14:57:59 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.1.1 To: "help-gnu-emacs\@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 27 15:57:55 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cX7yI-0003aq-5p for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jan 2017 15:57:50 +0100 Original-Received: from localhost ([::1]:45929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cX7yN-0006sm-Ju for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jan 2017 09:57:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cX67X-0005qw-Tx for help-gnu-emacs@gnu.org; Fri, 27 Jan 2017 07:59:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cX67T-0005kd-OY for help-gnu-emacs@gnu.org; Fri, 27 Jan 2017 07:59:16 -0500 Original-Received: from kaffanke.at ([91.228.52.116]:37727) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cX67T-0005kL-Dv for help-gnu-emacs@gnu.org; Fri, 27 Jan 2017 07:59:11 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by kaffanke.at (Postfix) with ESMTP id 4937D44F00ED for ; Fri, 27 Jan 2017 13:59:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at kaffanke.at Original-Received: from kaffanke.at ([127.0.0.1]) by localhost (vps1755.first-root.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rknRpgzshH0m for ; Fri, 27 Jan 2017 13:59:07 +0100 (CET) Original-Received: from martin-arch (194-118-76-105.adsl.highway.telekom.at [194.118.76.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by kaffanke.at (Postfix) with ESMTPSA id 9ADFF44F002D for ; Fri, 27 Jan 2017 13:59:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kaffanke.at; s=mail; t=1485521947; bh=Qwe0OjRdE0RL9hyDJunWm7T3OwgBP1IMUYfhGyypT2c=; h=From:To:Subject:Date:From; b=r9D/6l/wPAiE+vn5IgGKO5EVQjbGnMf7M3BWAde7agm1wHg/ehTUd1LiXB9GWdSRy N/toGrpkg2u1C0FEpLPh73ByAXMNUl3B32m5+jGC4iNREGRJeIDXDqqQGsioz99FNe GLUwqrgY3JipRrKsfqZwJHUOcjm95V9MZdUZ02Uc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 91.228.52.116 X-Mailman-Approved-At: Fri, 27 Jan 2017 09:54:48 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112174 Archived-At: Hi there, at the moment I'm using ;; (setq browse-url-browser-function 'browse-url-chromium) (setq browse-url-browser-function 'browse-url-firefox) to determine which browser to use within emacs. For some reasons I switch between firefox and chromium, and now I wonder if I could get emacs to use the browser I'm using at the moment. But I don't really know where to start maybe you can help me. I'm using arch linux with emacs 25.1.1 here. If firefox is running (we can see it in proc maybe get it with ps) I want emacs to open links in firefox and if chromium is running I want emacs to open links in chromium. And if both are running i would prefer chromium. How could a function for browse-url-browser-function look like for that purpose? Thanks, Martin -- L=C3=B6sungen statt Diagnosen