From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: How to get ido-find-file to open DOIs in browser (like URLs)? Date: Wed, 19 Jun 2013 10:01:28 +0100 Message-ID: <8761xalbiv.fsf@zerg32.ncl.ac.uk> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371632542 3396 80.91.229.3 (19 Jun 2013 09:02:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2013 09:02:22 +0000 (UTC) Cc: Emacs help To: Marius Hofert Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 19 11:02:24 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UpEHX-0000VN-6p for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jun 2013 11:02:23 +0200 Original-Received: from localhost ([::1]:38688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpEHW-00055U-S1 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jun 2013 05:02:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpEGo-0004EQ-3o for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 05:01:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpEGk-0008Bk-9t for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 05:01:38 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:40814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpEGk-0008AT-4i for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 05:01:34 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129]) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1UpEGf-0001eu-EV; Wed, 19 Jun 2013 10:01:29 +0100 Original-Received: from localhost (zerg32.ncl.ac.uk [10.66.65.18]) (authenticated bits=0) by smtpauth-vm.ncl.ac.uk (8.13.8/8.13.8) with ESMTP id r5J91SI6017465 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 19 Jun 2013 10:01:28 +0100 In-Reply-To: (Marius Hofert's message of "Wed, 19 Jun 2013 09:37:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91601 Archived-At: The standard display guidelines for DOIs now state that the URL form should always be used. So, the best solution to this is fix the DOI first. Then use ffap which plugs into ido, if I remember correctly! Phil Marius Hofert writes: > I often use C-x C-f (ido-find-file) to open links/URLs in the browser. > I am wondering how one could get the same behavior when the point is > on DOIs (digital object identifier). This is of the form > 10.1016/j.csda.2008.05.019, for example, and should open > http://dx.doi.org/10.1016/j.csda.2008.05.019. There are some regular > expressions posted on stackoverflow to match (a larger number) of > DOIs. > > Cheers, > > Marius > > > -- Phillip Lord, Phone: +44 (0) 191 222 7827 Lecturer in Bioinformatics, Email: phillip.lord@newcastle.ac.uk School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord Room 914 Claremont Tower, skype: russet_apples Newcastle University, twitter: phillord NE1 7RU