emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-capture: Capture template ‘g’: Match data clobbered by buffer mo


From: Alex Bennée
Subject: Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks
Date: Fri, 15 Jul 2016 22:56:15 +0100
User-agent: mu4e 0.9.17; emacs 25.0.95.10

Noam Postavsky <address@hidden> writes:

> On Fri, Jul 15, 2016 at 3:12 PM, Alex Bennée <address@hidden> wrote:
>>
>> Eli Zaretskii <address@hidden> writes:
>>
>>>> From: Alex Bennée <address@hidden>
>>>> Cc: Eli Zaretskii <address@hidden>
>>>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]