From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-file-apps regex matching against path not link Date: Sat, 14 Apr 2018 09:42:59 +0200 Message-ID: <87bmemp724.fsf@nicolasgoaziou.fr> References: <87po34use0.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7Fq2-0005AS-PS for emacs-orgmode@gnu.org; Sat, 14 Apr 2018 03:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7Fpx-0007T1-U8 for emacs-orgmode@gnu.org; Sat, 14 Apr 2018 03:43:10 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:32859) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f7Fpx-0007Ry-N6 for emacs-orgmode@gnu.org; Sat, 14 Apr 2018 03:43:05 -0400 In-Reply-To: (Frankie Y. Liu's message of "Thu, 12 Apr 2018 15:41:04 -0700") 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: "Frankie Y. Liu" Cc: emacs-orgmode@gnu.org 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