From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Zhao Subject: Re: still seeing semi-regular lockups Date: Thu, 3 Jul 2014 11:55:00 -0400 Message-ID: References: <87siocrbyb.fsf@ericabrahamsen.net> <87siobtn1i.fsf@bzg.ath.cx> <87ha4r1j91.fsf@tanger.home> <87k39hdf2o.fsf@tanger.home> <87ppj86elt.fsf@ericabrahamsen.net> <874n0kde2y.fsf@tanger.home> <87bnus4s5n.fsf@ericabrahamsen.net> <87egye7kx3.fsf@nicolasgoaziou.fr> <87a992mleu.fsf@ericabrahamsen.net> <87ha3425s3.fsf@ericabrahamsen.net> <87r428v4hn.fsf@ericabrahamsen.net> <87y4wdwmsy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2jLi-0006zC-Uz for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 11:55:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2jLh-0004TJ-U6 for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 11:55:02 -0400 Received: from mail-vc0-x22e.google.com ([2607:f8b0:400c:c03::22e]:46090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2jLh-0004T2-Pa for emacs-orgmode@gnu.org; Thu, 03 Jul 2014 11:55:01 -0400 Received: by mail-vc0-f174.google.com with SMTP id hy4so419281vcb.5 for ; Thu, 03 Jul 2014 08:55:01 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: York Zhao , Eric Abrahamsen , emacs-orgmode > 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 | |---------+---------+---------+---------+---|