From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Frankie Y. Liu" Subject: Re: org-file-apps regex matching against path not link Date: Sat, 14 Apr 2018 07:05:54 -0700 Message-ID: References: <87po34use0.fsf@nicolasgoaziou.fr> <87bmemp724.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045c20b8b0ae3b0569cf7c38" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7LoT-0005so-7N for emacs-orgmode@gnu.org; Sat, 14 Apr 2018 10:05:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7LoS-0002Zs-9F for emacs-orgmode@gnu.org; Sat, 14 Apr 2018 10:05:57 -0400 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:41968) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f7LoS-0002Yu-1T for emacs-orgmode@gnu.org; Sat, 14 Apr 2018 10:05:56 -0400 Received: by mail-wr0-x22f.google.com with SMTP id s12so14686276wrc.8 for ; Sat, 14 Apr 2018 07:05:55 -0700 (PDT) In-Reply-To: <87bmemp724.fsf@nicolasgoaziou.fr> 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" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --f403045c20b8b0ae3b0569cf7c38 Content-Type: text/plain; charset="UTF-8" Hi Nicolas, Sorry I mistyped in the message, I did have two colons when trying it out. I will look into the function you pointed out. When you said you cannot reproduce it, does that mean it works/matches for you? I am using Emacs 25.3.5 and org-20180226 -f On Sat, Apr 14, 2018 at 12:42 AM, Nicolas Goaziou wrote: > Hello, > > "Frankie Y. Liu" writes: > > > For: > > > > \\.pdf:\\([0-9]+\\)\\' > > You forgot a colon. > > > [0-9]+ vs \d+ same issue, since the path not the link is being > > matched. > > > > Example: > > file:foo.pdf::1 will be matching on file:foo.pdf and the ::1 is > > dropped. > > > I cannot reproduce it here. The function > `org-file-apps-entry-match-against-dlink-p' is responsible for deciding > if a link needs to be matched in full, or not. > > Regards, > > -- > Nicolas Goaziou 0x80A93738 > --f403045c20b8b0ae3b0569cf7c38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

Sorry I mistyped in the mes= sage, I did have two colons when trying it out.=C2=A0 I will look into the<= /div>
function you pointed out.

When you said = you cannot reproduce it, does that mean it works/matches for you?

I am using Emacs 25.3.5 and org-20180226

-f

On Sat, Apr 14, 2018 at 12:42 AM, Nicolas Goaziou <= ;mail@nicolasgo= aziou.fr> wrote:
Hello,

"Frankie Y. Liu" <f= rankie.y.liu@gmail.com> writes:

> For:
>
> \\.pdf:\\([0-9]+\\)\\'

You forgot a colon.

> [0-9]+ vs \d+ same issue, since the path not the link is being
> matched.
>
> Example:
> file:foo.pdf::1 will be matching on file:foo.pdf and the ::1 is
> dropped.


I cannot reproduce it here. The function
`org-file-apps-entry-match-against-dlink-p' is responsible for dec= iding
if a link needs to be matched in full, or not.

Regards,

--
Nicolas Goaziou=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x80A93738

--f403045c20b8b0ae3b0569cf7c38--