emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] lisp/ox-publish.el: Handle includes with searches
@ 2015-11-14 21:56 Nick Gunn
  2015-11-23 11:11 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Nick Gunn @ 2015-11-14 21:56 UTC (permalink / raw)
  To: emacs-orgmode; +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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-30 23:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-14 21:56 [PATCH] lisp/ox-publish.el: Handle includes with searches Nick Gunn
2015-11-23 11:11 ` Nicolas Goaziou
2015-12-29  1:35   ` aman
2015-12-29 21:17     ` Nicolas Goaziou
2015-12-30  6:44       ` aman
2015-12-30  9:20         ` Nicolas Goaziou
2015-12-30 11:28           ` aman
2015-12-30 23:35             ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).