From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mark A. Hershberger" Subject: Bug: Time called when org-element--cache-sync-keys is nil [8.3.3 (8.3.3-elpa @ /home/mah/.emacs.d/elpa/org-20160108/)] Date: Tue, 12 Jan 2016 14:26:21 -0500 Message-ID: <8760yyfvky.fsf@flynn.nichework.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ4aV-0004ff-Ct for emacs-orgmode@gnu.org; Tue, 12 Jan 2016 14:26:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJ4aS-00041x-5L for emacs-orgmode@gnu.org; Tue, 12 Jan 2016 14:26:39 -0500 Received: from nospam.nichework.com ([206.71.169.33]:45844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ4aR-00041g-S1 for emacs-orgmode@gnu.org; Tue, 12 Jan 2016 14:26:36 -0500 Received: from localhost (localhost.localdmain [127.0.0.1]) by nospam.nichework.com (Postfix) with ESMTP id 6295F5E5A4 for ; Tue, 12 Jan 2016 14:26:34 -0500 (EST) Received: from nospam.nichework.com ([127.0.0.1]) by localhost (nospam.nichework.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 04524-01 for ; Tue, 12 Jan 2016 14:26:28 -0500 (EST) Received: from mail.nichework.com (mail.nichework.com [206.71.169.32]) by nospam.nichework.com (Postfix) with ESMTP id 5F8325E544 for ; Tue, 12 Jan 2016 14:26:28 -0500 (EST) Received: from mail.nichework.com (localhost [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id 5A66120C054 for ; Tue, 12 Jan 2016 14:26:28 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id 4EFEF20C053 for ; Tue, 12 Jan 2016 14:26:28 -0500 (EST) Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id L9lYcJSQ3z1w for ; Tue, 12 Jan 2016 14:26:28 -0500 (EST) Received: from flynn.nichework.com.everybody.org (localhost [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTPS id B805F20C046 for ; Tue, 12 Jan 2016 14:26:26 -0500 (EST) 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 When I open begin to write an email using mu4e, I get an error complaining that clrhash wants a hash-table and got nil. Patch that fixes this: diff --git a/lisp/org-element.el b/lisp/org-element.el index f407578..0941468 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -5055,7 +5055,8 @@ updated before current modification are actually submitted." ;; Otherwise, reset keys. (if org-element--cache-sync-requests (org-element--cache-set-timer buffer) - (clrhash org-element--cache-sync-keys)))))) + (when org-element--cache-sync-keys + (clrhash org-element--cache-sync-keys))))))) (defun org-element--cache-process-request (request next threshold time-limit future-change) Partial backtrace: Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil) clrhash(nil) (if org-element--cache-sync-requests (org-element--cache-set-timer buffer) (clrhash org-element--cache-sync-keys)) (let ((inhibit-quit t) request next) (if org-element--cache-sync-timer (progn (cancel-timer org-element--cache-sync-timer))) (catch (quote interrupt) (while org-element--cache-sync-requests (setq request (car org-element--cache-sync-requests) next (nth 1 org-element--cache-sync-requests)) (org-element--cache-process-request request (and next (aref next 0)) threshold (and (not threshold) (time-add (current-time) org-element-cache-sync-duration)) future-change) (if next (progn (let* ((v next)) (aset v 3 (+ ... ...))) (aset next 2 (aref request 2)))) (setq org-element--cache-sync-requests (cdr org-element--cache-sync-requests)))) (if org-element--cache-sync-requests (org-element--cache-set-timer buffer) (clrhash org-element--cache-sync-keys))) (save-current-buffer (set-buffer buffer) (let ((inhibit-quit t) request next) (if org-element--cache-sync-timer (progn (cancel-timer org-element--cache-sync-timer))) (catch (quote interrupt) (while org-element--cache-sync-requests (setq request (car org-element--cache-sync-requests) next (nth 1 org-element--cache-sync-requests)) (org-element--cache-process-request request (and next (aref next 0)) threshold (and (not threshold) (time-add (current-time) org-element-cache-sync-duration)) future-change) (if next (progn (let* (...) (aset v 3 ...)) (aset next 2 (aref request 2)))) (setq org-element--cache-sync-requests (cdr org-element--cache-sync-requests)))) (if org-element--cache-sync-requests (org-element--cache-set-timer buffer) (clrhash org-element--cache-sync-keys)))) (progn (save-current-buffer (set-buffer buffer) (let ((inhibit-quit t) request next) (if org-element--cache-sync-timer (progn (cancel-timer org-element--cache-sync-timer))) (catch (quote interrupt) (while org-element--cache-sync-requests (setq request (car org-element--cache-sync-requests) next (nth 1 org-element--cache-sync-requests)) (org-element--cache-process-request request (and next (aref next 0)) threshold (and (not threshold) (time-add ... org-element-cache-sync-duration)) future-change) (if next (progn (let* ... ...) (aset next 2 ...))) (setq org-element--cache-sync-requests (cdr org-element--cache-sync-requests)))) (if org-element--cache-sync-requests (org-element--cache-set-timer buffer) (clrhash org-element--cache-sync-keys))))) (if (buffer-live-p buffer) (progn (save-current-buffer (set-buffer buffer) (let ((inhibit-quit t) request next) (if org-element--cache-sync-timer (progn (cancel-timer org-element--cache-sync-timer))) (catch (quote interrupt) (while org-element--cache-sync-requests (setq request (car org-element--cache-sync-requests) next (nth 1 org-element--cache-sync-requests)) (org-element--cache-process-request request (and next ...) threshold (and ... ...) future-change) (if next (progn ... ...)) (setq org-element--cache-sync-requests (cdr org-element--cache-sync-requests)))) (if org-element--cache-sync-requests (org-element--cache-set-timer buffer) (clrhash org-element--cache-sync-keys)))))) org-element--cache-sync(#) Emacs : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-01-10 on flynn, modified by Debian Package: Org-mode version 8.3.3 (8.3.3-elpa @ /home/mah/.emacs.d/elpa/org-20160108/)