From: Nick Gunn <nick@ausimian.net>
To: emacs-orgmode@gnu.org
Cc: Nick Gunn <nick@ausimian.net>
Subject: [PATCH] lisp/ox-publish.el: Handle includes with searches
Date: Sat, 14 Nov 2015 13:56:13 -0800 [thread overview]
Message-ID: <1447538173-45139-1-git-send-email-nick@ausimian.net> (raw)
* 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
next reply other threads:[~2015-11-14 21:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-14 21:56 Nick Gunn [this message]
2015-11-23 11:11 ` [PATCH] lisp/ox-publish.el: Handle includes with searches 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447538173-45139-1-git-send-email-nick@ausimian.net \
--to=nick@ausimian.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.