Matt Lundin <m...@imapmail.org> writes: > Bastien <b...@altern.org> writes: > >> Matt Lundin <m...@imapmail.org> writes: >> >>> 1) When an org-capture template is invoked with (a) an active region and >>> (b) an annotation (i.e., a link), the link is not inserted in the >>> capture buffer. >> >> This one must be fixed, thanks. > > Hmm. I see the change you made and it makes sense. But it seems now that > the annotations (i.e., links) do not appear at all in the capture, > regardless of whether there is an active region or not.
I think I've figured out why this doesn't work. See line 9492 of org.el. If ignore-region is t, org-store-link does not return a value, which org-capture expects. Rather org-store-link adds the link to org-stored-links. Matt