From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: probable caching bug? Date: Thu, 05 Dec 2013 09:00:10 +0700 Message-ID: <87pppcys45.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoPXc-00035F-Vp for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 22:24:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoPXV-0001cm-7r for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 22:23:52 -0500 Received: from plane.gmane.org ([80.91.229.3]:42902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoPXV-0001ch-0w for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 22:23:45 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VoPXT-0006hs-Ki for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 04:23:43 +0100 Received: from 223.204.248.3 ([223.204.248.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 04:23:43 +0100 Received: from eric by 223.204.248.3 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 04:23:43 +0100 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: emacs-orgmode@gnu.org While editing a plain list yesterday I noticed what I guess was a bug in the caching mechanism. The list item was wrapped to several lines, and I noticed that calling C-e while on the last line gave me "wrong-type-argument integer-or-marker-p nil". Trying to fill the item with M-q gave me "user-error: An element cannot be parsed line 635". I found that adding another item with M-RET allowed me to go back up to the previous item and fill it successfully. Later on, though, the same error cropped up with other items, and I wasn't always able to bang it back into shape. I was right in the middle of something and didn't have time for extensive debugging, but here's the text I was on, and the traceback for the wrong type argument below that: ****** Selected Quotes - Illness is a subtle negotiation [微调] between life and death. Like a never-ending course in philosophy, it has taught me some of the meaning of life, and of death. - One can only save the drowning when oneself is on the shore. - Night was falling. Carrying his large leather suitcase, Zhuang Zhidie arrived alone at the train station. After queuing for his ticket, <--- line 365 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) org-element-item-parser(27819 ((27512 0 "- " nil nil nil 27681) (27681 0 "- " nil nil nil 27744) (27744 0 "- " nil nil nil 27819)) t) org-element--current-element(27819 element item ((27512 0 "- " nil nil nil 27681) (27681 0 "- " nil nil nil 27744) (27744 0 "- " nil nil nil 27819))) byte-code("BYTE CODE HERE" [element special-flag type pos org-element-use-cache org-element--cache (item table-row) (plain-list table) 0 org-element--cache-sync gethash eql objects org-element--current-element derived-mode-p org-mode nil org-element-cache-reset puthash :parent org-add-props plist-put plain-text (item plain-list) :structure :end get-text-property plist-get throw exit :contents-begin :contents-end (plain-list table) (center-block drawer dynamic-block inlinetask property-drawer quote-block special-block) (item plain-list) plain-list item property-drawer node-property table table-row org-element--cache-status data cached end struct parent value property elem-end ...] 6) org-element-at-point() org-end-of-line(nil) call-interactively(org-end-of-line nil nil)