Slava Barinov <raysl...@gmail.com> writes: > Yes, the block is cleaned but the #+TBLFM line is included into > `content-lines' > so it's duplicated unless removed manually. > > The solution with `save-excursion' looks more reliable but we can use just > `looking-back' in the end of block to check if the last line is a #+TBLFM. > Not sure if #+TBLFM can be placed in some other line though.
Maybe a simpler approach would be modifying (while (setq line (pop content-lines)) (when (string-match "^#" line) (insert "\n" line))) to skip inserting TBLFM lines when :tblfm parameter is provided. > And I'll check the ELPA rules and what should I do to prepare the correct > package for org-collector. The rules are in https://git.savannah.gnu.org/cgit/emacs/elpa.git/plain/README ("To add a package" section) But in the nutshell, you simply need to write to emacs-de...@gnu.org sharing your code repo and expressing your interest to get the package on ELPA. They will guide you along then. For org-collector specifically, please also CC me, so that I confirm that Org mode project is ok with the transfer. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>