> I'm now using commit "fdc673d". The problem I experienced 2 days ago happened
> again. The direct operations I did was that I programmatically deleted a few
> table line in one table and inserted them in another table which is in the
> subtree immediately following the current table. But I ended up having more
> lines in the new table, most of them were duplicated. Here is roughly the
> snippet of the command I used:
>
> (defun yhj-drop-something ()
>   (interactive)
>   (save-excursion
>     (let* ((beg (line-beginning-position))
>            (end (1+ (line-end-position)))
>            (line (buffer-substring beg end)))
>       (kill-region beg end)
>       (unless (re-search-forward "^\\*+[ \t]+Newtable[ \t]*$"
>                                  (save-excursion
>                                    (org-end-of-subtree t)) t)
>         (error "Incompatible contents format"))
>       (forward-line 4)
>       (unless (org-at-table-p 'any)
>         (error "Incompatible contents format"))
>       (beginning-of-line)
>       (insert line)
>       (org-table-align)
>       (org-table-sort-lines nil ?a))))

I just noticed these errors in my "*messages*" buffer:

user-error: Not in table data field
2 lines sorted, based on column 1
Starting "egrep" process...
3 lines sorted, based on column 1
4 lines sorted, based on column 1
After 0 kbd macro iterations: let: Wrong type argument: number-or-marker-p, nil
Error in post-command-hook (zfill-post-command-function): (user-error
"An element cannot be parsed line 76823")
Error in pre-command-hook (zfill-pre-command-function): (user-error
"An element cannot be parsed line 76823")
6 lines sorted, based on column 1

I'm not sure if the `(user-error "An element cannot be parsed line 76823")' can
be of any help. Line 76823 was the last line in the table where the table lines
were being moved to (the "Destination Table"). This table looks like thin:

*** Source Table
|---------+---------+---------+---------+---|
| COL1    | COL2    | COL3    | COL4    |   |
|---------+---------+---------+---------+---|
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
|---------+---------+---------+---------+---|

**** Destination Table
|---------+---------+---------+---------+---|
| COL1    | COL2    | COL3    | COL4    |   |
|---------+---------+---------+---------+---|
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
| Content | Content | Content | Content | A |
|---------+---------+---------+---------+---|

Reply via email to