From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#23917: 25.0.95; commit 3a9d6296b35e5317c497674d5725eb52699bd3b8 causing org-capture to error out Date: Thu, 21 Jul 2016 10:19:43 +0200 Message-ID: <874m7js8rk.fsf__20375.957262195$1469089307$gmane$org@gmail.com> References: <87vb066ejv.fsf@linaro.org> <87mvlhmv0x.fsf_-_@moondust.awandering> <837fcl5zs9.fsf@gnu.org> <87a8hgkwcb.fsf@linaro.org> <8360s42mcb.fsf@gnu.org> <87eg6rgmlg.fsf@gmail.com> <83lh0y24y6.fsf@gnu.org> <83eg6q1hbo.fsf@gnu.org> <83a8hd1vzi.fsf@gnu.org> <834m7l1u8u.fsf@gnu.org> <83shv4z7e8.fsf@gnu.org> <83inw0yw9q.fsf@gnu.org> <87bn1rdd1f.fsf@users.sourceforge.net> <87a8hb2zgt.fsf_-___1286.15575745261$1469088239$gmane$org@moondust.awandering> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1469089307 10420 80.91.229.3 (21 Jul 2016 08:21:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2016 08:21:47 +0000 (UTC) Cc: 23917@debbugs.gnu.org, Stefan Monnier , npostavs@users.sourceforge.net To: nljlistbox2@gmail.com (N. Jackson) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 10:21:36 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 1bQ9Ed-0004Mt-Rp for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2016 10:21:36 +0200 Original-Received: from localhost ([::1]:38937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9EZ-00081X-TO for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2016 04:21:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9DE-0007LO-IV for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:20:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQ9DD-0007jp-Am for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:20:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9D8-0007j0-K5; Thu, 21 Jul 2016 04:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bQ9D8-00067t-6g; Thu, 21 Jul 2016 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Thu, 21 Jul 2016 08:20: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.146908919223529 (code B ref 23917); Thu, 21 Jul 2016 08:20:02 +0000 Original-Received: (at 23917) by debbugs.gnu.org; 21 Jul 2016 08:19:52 +0000 Original-Received: from localhost ([127.0.0.1]:59270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQ9Cy-00067R-BK for submit@debbugs.gnu.org; Thu, 21 Jul 2016 04:19:52 -0400 Original-Received: from mail-wm0-f66.google.com ([74.125.82.66]:33105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQ9Cw-00067E-AU for 23917@debbugs.gnu.org; Thu, 21 Jul 2016 04:19:50 -0400 Original-Received: by mail-wm0-f66.google.com with SMTP id o80so1651295wme.0 for <23917@debbugs.gnu.org>; Thu, 21 Jul 2016 01:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Y7XZ2CHJ0JJxUaRyZzjRBJ85ReB7NqyxHMyPFOKkDBA=; b=oOT6lpJ8744ftadhYujWGlbA0iIbNgleuJibVj240eM/Q/CGIjAuhue4mmVjf3cWB6 S1P4HcPDVvQyrA4bvbMlD8F+sD5cP8MB/ijvx8sq0kG9VxU0i3wr4ZnOFD55cwhajaUW DylOh1zX76A6Gu083qLnVZOxw5rV3mHT5QioFD2Aa8ujjucOHnMuCoeIrd81LYnyv8nx DIzRsY/8UaYmjc5iSXB42fWvViLGgXjvkKHL2ALkahnpcNK/71w5GXEkFnwq/6ZmUfFm 0uMjKdoYhNWbA1lz99ipcO0EkJdLNuVS0uQObeREYJ+dK2hcZx2O7vlMPtqhYk3N2tKH 0NQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=Y7XZ2CHJ0JJxUaRyZzjRBJ85ReB7NqyxHMyPFOKkDBA=; b=cJOnhmHOYlE7lmsDZdtgYLD9vjm5yRgR/vYoU5FSqYOqY1KBqdC/AQPPU+fRxRelq1 UkZEEEkzz1q1h0yMB2FmHB69K3hxpjON2omqajPkrTYBLLczahTmZ2J8Rpba4xVEK/v7 YXEldhc0KRdKNS3fQGV+PJ3WP4ayVyYStxKYbDEHslSh0TNRllj0R23cYXspWHx0c29u ynOfOpuandXtpCrG8todLsv2P5yilFRUyaBPJbcf9YwXweDQLsvlkhYlAg6qsKjhYFqK 1jQoHY46jh1+GmjOqVIXeYBqeQ35GghJkcfye6tyGkUL5MzQElxWtXZvmQtyc2G6ofrw 7WPA== X-Gm-Message-State: ALyK8tJvG1E2+YEjqrVuZY+Gk7QBZ63cMjsbFC9Totr/2qKijLsEmrEpY10XRA8M7DPakg== X-Received: by 10.28.175.16 with SMTP id y16mr6958015wme.64.1469089184782; Thu, 21 Jul 2016 01:19:44 -0700 (PDT) Original-Received: from rpluim-XPS-15-9530 ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id r13sm2103638wmf.12.2016.07.21.01.19.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 01:19:44 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <87a8hb2zgt.fsf_-___1286.15575745261$1469088239$gmane$org@moondust.awandering> (N. Jackson's message of "Thu, 21 Jul 2016 04:59:46 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) 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:121366 Archived-At: nljlistbox2@gmail.com (N. Jackson) writes: > At 20:56 -0400 on Wednesday 2016-07-20, npostavs@users.sourceforge.net wr= ote: >> >> From a8098080dff5f83f7cbcbec2bc263f9db3b45ad9 Mon Sep 17 00:00:00 2001 >> From: Noam Postavsky >> Date: Wed, 20 Jul 2016 20:15:14 -0400 >> Subject: [PATCH v1] Adjust match data before calling after-change-funs >> >> * src/insdel.c (replace_range): Add new parameter ADJUST_MATCH_DATA, if >> true. Update all callers except Freplace_match to pass 0 for the new >> parameter. >> * src/search.c (update_search_regs): New function, extracted from >> Freplace_match. >> (Freplace_match): Remove match data adjustment code, pass 1 for >> ADJUST_MATCH_DATA to replace_range instead. > FWIW on my system applying this patch only partially resolves the > org-capture issue. I'm testing with org-20160718 from GNU Elpa and > latest Emacs 25 branch from the git (Repository revision: > 4157159a37b43712440da91a45a6d5f71eb96e8a). > > The patch successfully eliminates the match-data-clobbered error/abort > during org-capture with all my capture templates when I have my entire > config loaded, but with a minimal recipe from emacs -Q the org-capture > match-data-clobbered error still occurs. > > The minimal recipe I'm testing with is similar to that posted by Robert > Pluim on 2016-07-18, specifically > > src/emacs -Q > > M-: (custom-set-variables '(package-selected-packages (quote (org-20160= 718)))) RET > M-x package-initialize RET > > C-x C-f ; find file. > C-S-backspace ; kill-whole-line. > ~/.notes RET ; Open the file expected by default capture template. > M-x org-mode RET ; put the buffer into Org Mode. > M-x org-capture RET t ; Run the default "Task" capture template bound t= o the t key. > > With your patch I still get the error:=20 > > org-capture: Capture template =E2=80=98t=E2=80=99: Match data clobbered= by buffer modification hooks > > . > > It puzzles me that your patch doesn't work for the emacs -Q recipe but > does work for my normal configuration, so much so that I suspected that > I had made a mistake, but I have reset and reapplied the patch three > times and I continue to see the same results. You're not alone: this patch doesn't fix the issue for me either with emacs -Q or with my normal capture templates. Regards Robert