Hi, Nick Dokos <nicholas.do...@hp.com> writes:
> D'oh^2: everything else is interpreted, so why not %? ? > > The problem seems to be in org-capture-place-plain-text: the insertion > of the text happens like this > > ,---- > | ... > | (setq beg (point)) > | (insert txt) > | (org-capture-empty-lines-after 1) > | (org-capture-position-for-last-stored beg) > | (setq end (point)) > | (org-capture-mark-kill-region beg (1- end)) > | (org-capture-narrow beg (1- end)) > | (if (re-search-forward "%\\?" end t) (replace-match "")))) > `---- > > but it seesm that just before the re-search-forward, point is at > end, not at beg, so the search is fruitless. We could search backwards > to beg instead (but what is the semantics of multiple %? markers in the > template?), or we could just (goto-char beg) before the search. There was indeed a problem here, I just fixed it. Thanks for the directions, -- Bastien