From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Pluim 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@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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9DC-0007Ku-0O for emacs-orgmode@gnu.org; Thu, 21 Jul 2016 04:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQ9D8-0007j4-Nl for emacs-orgmode@gnu.org; Thu, 21 Jul 2016 04:20:05 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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") 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" To: "N. Jackson" Cc: 23917@debbugs.gnu.org, Stefan Monnier , npostavs@users.sourceforge.net 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