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, 15 Jul 2016 22:46:42 +0300 Message-ID: <83y45265wd.fsf@gnu.org> References: <8760sgnvxh.fsf@gmail.com> <83lh1ci5x5.fsf@gnu.org> <87poqo6sud.fsf@gmail.com> <83a8hshxjs.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468630516 30939 80.91.229.3 (16 Jul 2016 00:55:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 00:55:16 +0000 (UTC) Cc: 23917@debbugs.gnu.org To: rpluim@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 16 02:55:00 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 1bODrL-0007pf-B4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2016 02:53:35 +0200 Original-Received: from localhost ([::1]:34717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO95o-0001ON-Ih for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2016 15:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO95i-0001OG-JK for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 15:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO95e-0007nX-Ca for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 15:48:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO95e-0007nT-8w; Fri, 15 Jul 2016 15:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bO95e-00089w-1g; Fri, 15 Jul 2016 15:48: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, 15 Jul 2016 19:48:01 +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.146861202531290 (code B ref 23917); Fri, 15 Jul 2016 19:48:01 +0000 Original-Received: (at 23917) by debbugs.gnu.org; 15 Jul 2016 19:47:05 +0000 Original-Received: from localhost ([127.0.0.1]:53308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO94i-00088c-UK for submit@debbugs.gnu.org; Fri, 15 Jul 2016 15:47:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO94i-000888-6Z for 23917@debbugs.gnu.org; Fri, 15 Jul 2016 15:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO94Z-0007bK-LC for 23917@debbugs.gnu.org; Fri, 15 Jul 2016 15:46:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO94Z-0007bD-I1; Fri, 15 Jul 2016 15:46:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3905 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bO94X-0001Bw-MA; Fri, 15 Jul 2016 15:46:54 -0400 In-reply-to: <83a8hshxjs.fsf@gnu.org> (message from Eli Zaretskii on Fri, 08 Jul 2016 20:03:35 +0300) 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:121129 Archived-At: > Date: Fri, 08 Jul 2016 20:03:35 +0300 > From: Eli Zaretskii > Cc: 23917@debbugs.gnu.org > > > 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". Actually, we might be looking in the wrong direction: since some of these functions do use save-match-data, the search registers might be legitimately changed and restored several times. So I think you need to type "continue" and see what other parts of code change the match data, all the way until the call to replace_range returns. Once we've seen all those changes, with backtraces for each of them, we will probably see the culprit. It is still advisable to load the involved files as *.el files, as the results of "xbacktrace" will then be more detailed. Thanks.