All-
Attached are the updated patches for single cell movement in org tables.
Notes:
- Implemented all of Nicolas Goaziou's suggestions on this with some caveats described below
- Part of the logic of the code requires boundary checking. I used the (org-table-analyze) to set variables org-table-current-ncol and org-table-dlines which are the limits of the table. This eliminated an internal helper function in the original version.
- I made several of the functions internal with the naming convention `org-table--name' as per Nicolas' suggestion
- Checks for in-table and table alignment are in the top-level functions `org-table-move-single-cell-up' etc.; I kept alignment in as otherwise the table looks awful as cells move around
- Modified org.el to bind these to Shift-up and the like as per Carsten's suggestion
- Tests defined in testing/lisp/org-test-table.el and I've done a fair amount of interactive testing to ensure the behavior looks correct.
- Not sure if the patches will work exactly correctly due to the large gap in time between my initial work and completion; let me know if things don't look correct.
- Attempted to get close to a correctly formatted commit messages but do make any necessary formatting changes for compliance.
Cheers,
Chris Kauffman