From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: How to get ido-find-file to open DOIs in browser (like URLs)? Date: Wed, 19 Jun 2013 11:07:09 +0200 Message-ID: References: <8761xalbiv.fsf@zerg32.ncl.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1371632891 6761 80.91.229.3 (19 Jun 2013 09:08:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2013 09:08:11 +0000 (UTC) Cc: Emacs help To: Phillip Lord Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 19 11:08:13 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 1UpEN9-0003bS-8F for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jun 2013 11:08:11 +0200 Original-Received: from localhost ([::1]:42476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpEN8-0000Dd-9C for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jun 2013 05:08:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpEMu-0000DJ-Oa for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 05:07:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpEMo-0001y3-Iv for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 05:07:56 -0400 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:46144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpEMo-0001xz-CP for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 05:07:50 -0400 Original-Received: by mail-pa0-f49.google.com with SMTP id ld11so4915987pab.22 for ; Wed, 19 Jun 2013 02:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=BGeahrp609JgC/Cj7fqaJXgvYPFCuHtYfmw7JwKi+Yg=; b=qhmzLnbYrLSi/Xagcxwi5zNvAmaKDZiUjXz1IUcx/M5WOHMRWUxx4vvw1frYYJkMIb 3Qk6M8Tk+rqTuNRDqNfxXX6I5d1Ye4jl4utJoG7Dy3eSL81dAKvbeRfDbfrKrEYr76PB GxwG5U8hptKPuk+RfvotHpzkkEU6BiVti8cZOydBv1OMefk1848FdkfNwMB9hV9xrbJO s4JaAbTa861JHIlu63MBrG7uqyd4A5sTmlavcZJZTLt/I9nJyKbBEvyTBw4RD1iyRYFx lBIeMFcsHcAZdYzGx0nFOP8nEXIz5LOmzqGrsNDoq9wu8mMCf83ooX1dqJXOoePd1/0w ADvA== X-Received: by 10.66.102.70 with SMTP id fm6mr5744779pab.78.1371632869681; Wed, 19 Jun 2013 02:07:49 -0700 (PDT) Original-Received: by 10.68.31.135 with HTTP; Wed, 19 Jun 2013 02:07:09 -0700 (PDT) In-Reply-To: <8761xalbiv.fsf@zerg32.ncl.ac.uk> X-Google-Sender-Auth: UmkDxVxYWg1sD0BeN7T-8ZTZdDg X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::231 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:91602 Archived-At: Hi Phillip, that's of course a nice workaround. Thanks & cheers, Marius On Wed, Jun 19, 2013 at 11:01 AM, Phillip Lord wrote: > > > 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