Skip to main content
3 events
when toggle format what by license comment
May 17, 2021 at 9:46 vote accept Erik Sjöstrand
May 17, 2021 at 9:44 comment added Erik Sjöstrand Rolling your own seems like a good solution. I made a small change which handles the error from org-table--move-cell and also restores the point a bit better than save-excursion. (defun org-table-collapse-cell () (interactive) (let ((pt (point))) (org-table-blank-field) (condition-case nil (while (org-table-check-inside-data-field) (org-table--move-cell 'down) (org-table-align)) (user-error nil)) (goto-char pt)))
May 16, 2021 at 3:01 history answered C11g CC BY-SA 4.0