Hi Nicolas, Excellent comments. Thanks a lot! Nicolas Goaziou writes: > In this case, I suggest to change `org-koma-letter--special-headline' > into `org-koma-letter--special-tag' I agree. > Eventually, since you're only interested in the first special tag > encountered, it may be cleaner to exit early, e.g., Good idea. I did it slightly differently with a funcall, but perhaps it's slower (I have no idea). >> + (format "\\opening{%s}\n\n" >> + (org-export-data >> + (or (org-string-nw-p (plist-get info :opening)) >> + (when (plist-get info :with-headline-opening) >> + (org-element-map (org-element-parse-buffer) 'headline > ^^^^^^^^^^^^^^^^^^^^^^^^^ > (plist-get info :parse-tree) Thanks. I *knew* it was fishy. —Rasmus -- Hooray!