Matt <m...@excalamus.com> writes: > How far does backwards compatibility extend with regard to Org itself? > For the next version, for all time, or something else?
Usually, until next major release (we should have major releases more frequently in future). However, we often keep compat code in place even much later if it does not stay on the way of maintenance or implementing new features. > The rule I infer from your comment is, "renamed symbols must be > aliased." This implies that any arguments associated with the symbol > are the same after the name change. How do we handle changes in > function APIs? I'm thinking of something like > =org-babel-execute:shell= and =org-babel-sh-evaluate= where it would > make sense to refactor the =stdin= and =cmdline= parameters. 1. When we need to add new arguments, we usually add them as optional arguments at the end. 2. When we need to remove arguments, we just keep the relevant arglist names as _ (indicating that the argument is unused). 3. When API is changing more significantly, we obsolete the old function code and keep it in org-compat. Then, we implement a completely new function with a new name, and use it throughout Org mode. -- Ihor Radchenko // yantar92, Org mode contributor, 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>