From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Gunn Subject: [PATCH] lisp/ox-publish.el: Handle includes with searches Date: Sat, 14 Nov 2015 13:56:13 -0800 Message-ID: <1447538173-45139-1-git-send-email-nick@ausimian.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxioQ-0004ma-An for emacs-orgmode@gnu.org; Sat, 14 Nov 2015 16:56:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxioM-0007kh-7z for emacs-orgmode@gnu.org; Sat, 14 Nov 2015 16:56:46 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:50601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxioM-0007kZ-2u for emacs-orgmode@gnu.org; Sat, 14 Nov 2015 16:56:42 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 600F020409 for ; Sat, 14 Nov 2015 16:56:40 -0500 (EST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Nick Gunn * lisp/ox-publish.el (org-publish-cache-file-needs-publishing): Ignore any link search suffix on an include so that the path represents a valid file during the publishing check. TINYCHANGE --- lisp/ox-publish.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index c7da953..7799d8b 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -1244,8 +1244,8 @@ the file including them will be republished as well." (let ((value (org-element-property :value element))) (and value (string-match "^\\(\".+?\"\\|\\S-+\\)" value) - (org-remove-double-quotes - (match-string 1 value))))))) + (car (split-string (org-remove-double-quotes + (match-string 1 value)) "::"))))))) (when included-file (push (org-publish-cache-ctime-of-src (expand-file-name included-file)) -- 2.5.2