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: Noam Postavsky
Subject: Re: org-capture: Capture template ‘g’: Match data clobbered by buffer modification hooks
Date: Fri, 15 Jul 2016 15:37:00 -0400

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"



reply via email to

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