From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.devel Subject: Re: org-capture: Capture template =?utf-8?B?4oCYZ+KAmTo=?= Match data clobbered by buffer modification hooks Date: Fri, 15 Jul 2016 22:56:15 +0100 Message-ID: <87bn1ywoow.fsf@linaro.org> 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: 8bit X-Trace: ger.gmane.org 1468630454 28439 80.91.229.3 (16 Jul 2016 00:54:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 00:54:14 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 16 02:54:09 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 1bODqk-0007pf-Vz for ged-emacs-devel@m.gmane.org; Sat, 16 Jul 2016 02:52:59 +0200 Original-Received: from localhost ([::1]:35084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOB5r-0002no-B2 for ged-emacs-devel@m.gmane.org; Fri, 15 Jul 2016 17:56:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOB5m-0002nR-0w for emacs-devel@gnu.org; Fri, 15 Jul 2016 17:56:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOB5j-0005rE-1j for emacs-devel@gnu.org; Fri, 15 Jul 2016 17:56:18 -0400 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:37942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOB5i-0005q2-3R for emacs-devel@gnu.org; Fri, 15 Jul 2016 17:56:14 -0400 Original-Received: by mail-wm0-x229.google.com with SMTP id o80so46273947wme.1 for ; Fri, 15 Jul 2016 14:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=T/+0ybngwOQgYtRBMuvACBJouxF7mLGF/VaUNzRlc9Y=; b=T9kQa5VZmCX3zpTxZFV+O7X2X6laXduKEzrSkL07qn2YO40ClziZ/VfQvoezd9v9uR ueKjFfWey+gtBO4MxreA+lQiIwf7Z9AEoMBcluSMZtpZtD1lVP38Ubv/89I9D3n2f7fC kjzrhHs8Lvb2yAt9+Z15z6Hp2jOtzuJlMoBFQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=T/+0ybngwOQgYtRBMuvACBJouxF7mLGF/VaUNzRlc9Y=; b=e+noj3Aj3pb5nHfKrz/O+yjsh58T2+3vxpUYO4CTN7vWC0cZHV5+d0+m+8adJgQRw3 vwIh6u000RE8oMeOoGxNNo5BFBIjF13NmedNLn54/cP/i8G3G39sy/A5fwgsOEl3LE71 wVDYa8uGSkUeEQduTHhmwFtgzlJ7BS70KsJhoiYqlNO3q2mQvhSYAX9a5jszVW6Gdtgi 4oOy1Sm8skS/mxFCKlbwQmsI0D9EFyPzRXiyM9bYGf7BGtGS8LLtykbmenW2k99p8SVC QIW7a8zDP8qAPujMHFf458Evu3ScJI3DNv4SMFhPyE/TWO+dUnLmu0ObQefTz4e5XUcG p8Sw== X-Gm-Message-State: ALyK8tJPCNJ973ebhwj5Kxj23Mu9ARtx5LvMVt5rSc6HGwlEArkYBrnddI6IyT4WbSMdmo29 X-Received: by 10.28.229.19 with SMTP id c19mr13624597wmh.0.1468619773374; Fri, 15 Jul 2016 14:56:13 -0700 (PDT) Original-Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p126sm7855115wmp.13.2016.07.15.14.56.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 14:56:12 -0700 (PDT) Original-Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 9E3BE3E02E2; Fri, 15 Jul 2016 22:56:15 +0100 (BST) User-agent: mu4e 0.9.17; emacs 25.0.95.10 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::229 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:205741 Archived-At: Noam Postavsky writes: > On Fri, Jul 15, 2016 at 3:12 PM, Alex Bennée wrote: >> >> Eli Zaretskii writes: >> >>>> From: Alex Bennée >>>> 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" OK thanks, will watch the bug and see if I can diagnose. -- Alex Bennée