From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: =?UTF-8?Q?Re=3A_org=2Dcapture=3A_Capture_template_=E2=80=98g=E2=80=99=3A_Match_dat?= =?UTF-8?Q?a_clobbered_by_buffer_modification_hooks?= Date: Fri, 15 Jul 2016 15:37:00 -0400 Message-ID: References: <87vb066ejv.fsf@linaro.org> <8360s67qcp.fsf@gnu.org> <87bn1yyaui.fsf@linaro.org> 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 1468630470 29023 80.91.229.3 (16 Jul 2016 00:54:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 00:54:30 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: =?UTF-8?B?QWxleCBCZW5uw6ll?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 16 02:54:29 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bODrP-0007pf-5q for ged-emacs-devel@m.gmane.org; Sat, 16 Jul 2016 02:53:39 +0200 Original-Received: from localhost ([::1]:34692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO8vn-0003CT-5i for ged-emacs-devel@m.gmane.org; Fri, 15 Jul 2016 15:37:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO8v4-0003CG-0a for emacs-devel@gnu.org; Fri, 15 Jul 2016 15:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO8v2-0004Z0-5O for emacs-devel@gnu.org; Fri, 15 Jul 2016 15:37:04 -0400 Original-Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:36727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO8uz-0004Y9-H9; Fri, 15 Jul 2016 15:37:01 -0400 Original-Received: by mail-oi0-x22a.google.com with SMTP id w18so177659169oiw.3; Fri, 15 Jul 2016 12:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=+nPy4PpM7G9tKQrN5+Y/JPFS8QMq9CsdngWcgOJzTos=; b=DiUtHMPoVi2C+L6sVlBbnwr6wf0qaWs33QPkGbuQFOhzgbK+hryE9en7fhuDB4Vmze h5uC9HSYv/E52rCCYO92zoiJmcjAu7w5x2I60RDHWmjWPWnSQTup+1vHt7LQZ1mQ1UO/ wOfegzYPt9slqT7iTSBWUODyrPsm/JqTr//mOjBmzijDpqx4ULvc5CzFnTVNoGOx9hSF 4SAQJOFuXT8301vJTOnLCy5vhNz62yWZ6up8georpvpIKZmqQxLIDvTd73n6np55e2tc wVFFQCF4/OyTPuHR//N/9LXXg2IfCSNlCKKb+1fhh/m3r0ux10pt8mQe/p04AgsdpRKc Ae6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=+nPy4PpM7G9tKQrN5+Y/JPFS8QMq9CsdngWcgOJzTos=; b=HxqXMwLITpyt+8WU9h/4nYDp9g8ZopsdhR5OG5wIj/Oy40l9DiFOE3/HfSgXxwC/77 xqUHYsDCPWe3NlvTtS5IF/YUjd1TMOpY9u8jDxyH/wibCRhURIHNKpuNGrwaulEshzYJ YbNPyl2l8Nar0FdHIMcdCVO779qN2EXTJvnG5c8a1ttjo9wwlmXsEBgWHpSWAm5f0XI5 8/jeozL9s9FMMGUxTme+8g+biNFvuIyeVzK4tkceDV3icQHcf6xmx87a6qnOe26zsrEh X2QrTk9W0CTXzyo0gDwKzYgZM/KgbxLixUr1Ze9zjVGwXFaLyuUMVvHeh4TosxSS1OzS UfRg== X-Gm-Message-State: ALyK8tKCzsUOTN2s0AqBmOTlQCaXALVYck+N1ASmmibiDIiV1radkmgu5Aq6f+102Zra20dXQHMcrejb1CCaUA== X-Received: by 10.202.86.15 with SMTP id k15mr9187406oib.178.1468611420984; Fri, 15 Jul 2016 12:37:00 -0700 (PDT) Original-Received: by 10.157.4.197 with HTTP; Fri, 15 Jul 2016 12:37:00 -0700 (PDT) In-Reply-To: <87bn1yyaui.fsf@linaro.org> X-Google-Sender-Auth: 2Tdd0bBJAtgCJ-Nrcx2f14B8U1E X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205743 Archived-At: On Fri, Jul 15, 2016 at 3:12 PM, Alex Benn=C3=A9e = wrote: > > Eli Zaretskii writes: > >>> From: Alex Benn=C3=A9e >>> Cc: Eli Zaretskii >>> Date: Fri, 15 Jul 2016 17:39:48 +0100 >>> >>> This seems to have been introduced by commit: >>> >>> 3a9d6296b35e5317c497674d5725eb52699bd3b8 > Wrapping the org-capture with save-match-data or even just clearing it: > > (defun my-org-maybe-capture-review-tag () > "Check buffer for DCO tags and if found queue a review comment." > (interactive) > (let ((tags (my-capture-review-tags))) > (when tags > (kill-new (mapconcat 'identity tags "\n")) > (set-match-data nil) > (org-capture nil "g")))) > > Had no effect. I'm guessing this must be something happening in org-mode = then.... See Bug #23917 "commit 3a9d6296b35e5317c497674d5725eb52699bd3b8 causing org-capture to error out"