From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23917: 25.0.95; commit 3a9d6296b35e5317c497674d5725eb52699bd3b8 causing org-capture to error out Date: Fri, 08 Jul 2016 20:03:35 +0300 Message-ID: <83a8hshxjs.fsf@gnu.org> References: <8760sgnvxh.fsf@gmail.com> <83lh1ci5x5.fsf@gnu.org> <87poqo6sud.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467997470 10464 80.91.229.3 (8 Jul 2016 17:04:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2016 17:04:30 +0000 (UTC) Cc: 23917@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 08 19:04:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLZCI-0001s4-Qx for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jul 2016 19:04:14 +0200 Original-Received: from localhost ([::1]:46839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLZCH-0006jR-ED for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jul 2016 13:04:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLZCB-0006jL-L3 for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 13:04:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLZC6-0005JJ-FU for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2016 13:04:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLZC6-0005JF-Bk; Fri, 08 Jul 2016 13:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLZC6-0008Rc-40; Fri, 08 Jul 2016 13:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Fri, 08 Jul 2016 17:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23917 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 23917-submit@debbugs.gnu.org id=B23917.146799743832450 (code B ref 23917); Fri, 08 Jul 2016 17:04:02 +0000 Original-Received: (at 23917) by debbugs.gnu.org; 8 Jul 2016 17:03:58 +0000 Original-Received: from localhost ([127.0.0.1]:42877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLZC2-0008RK-G4 for submit@debbugs.gnu.org; Fri, 08 Jul 2016 13:03:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLZC0-0008R4-9y for 23917@debbugs.gnu.org; Fri, 08 Jul 2016 13:03:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLZBq-0005Hl-TL for 23917@debbugs.gnu.org; Fri, 08 Jul 2016 13:03:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLZBq-0005Hf-QL; Fri, 08 Jul 2016 13:03:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3478 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bLZBp-0003q1-EN; Fri, 08 Jul 2016 13:03:46 -0400 In-reply-to: <87poqo6sud.fsf@gmail.com> (message from Robert Pluim on Fri, 08 Jul 2016 17:40:42 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120636 Archived-At: > From: Robert Pluim > Cc: 23917@debbugs.gnu.org > Date: Fri, 08 Jul 2016 17:40:42 +0200 > > org-element--cache-after-change is: > > (defun org-element--cache-after-change (beg end pre) > "Update buffer modifications for current buffer. > BEG and END are the beginning and end of the range of changed > text, and the length in bytes of the pre-change text replaced by > that range. See `after-change-functions' for more information." > (when (org-element--cache-active-p) > (org-with-wide-buffer > (goto-char beg) > (beginning-of-line) > (save-match-data > (let ((top (point)) > (bottom (save-excursion (goto-char end) (line-end-position)))) > ;; Determine if modified area needs to be extended, according > ;; to both previous and current state. We make a special > ;; case for headline editing: if a headline is modified but > ;; not removed, do not extend. > (when (case org-element--cache-change-warning > ((t) t) > (headline > (not (and (org-with-limited-levels (org-at-heading-p)) > (= (line-end-position) bottom)))) > (otherwise > (let ((case-fold-search t)) > (re-search-forward > org-element--cache-sensitive-re bottom t)))) > ;; Effectively extend modified area. > (org-with-limited-levels > (setq top (progn (goto-char top) > (when (outline-previous-heading) (forward-line)) > (point))) > (setq bottom (progn (goto-char bottom) > (if (outline-next-heading) (1- (point)) > (point)))))) > ;; Store synchronization request. > (let ((offset (- end beg pre))) > (org-element--cache-submit-request top (- bottom offset) offset))))) > ;; Activate a timer to process the request during idle time. > (org-element--cache-set-timer (current-buffer)))) > > which already does save-match-data. If I globally disable the org > element cache by (setq org-element-use-cache nil) the issue > disappears, so now I'm confused as to what's going on. Load the file where this function lives as a .el file, and when the watchpoint triggers, show the results of "xbacktrace".