Thanks, this clarifies the direction. For now, I have kept the current behavior unchanged and pushed the refactoring as three separate commits:
org-colview: Extract `org-columns--replace-columns-keyword' org-colview: Extract `org-columns--insert-columns-keyword' org-colview: Test COLUMNS keyword storage The last commit marks the current insertion behavior explicitly in a test. I also left the helper comment/FIXME noting that a better policy may be to insert after the initial block of file-level keywords. I will not change the insertion policy in this series. For now I will continue with the org-colview refactoring and leave this behavioral change for a follow-up. Best, -- Slawomir Grochowski
