emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] “Match data clobbered by buffer modification hooks”


From: Nicolas Goaziou
Subject: Re: [O] “Match data clobbered by buffer modification hooks”
Date: Tue, 01 Nov 2016 15:30:58 +0100

Saša Janiška <address@hidden> writes:

> Not sure how I’m supposed to do it? Writing some custom function?
> Where?

Evaluate the following function (C-x C-e) and test again.

  (defun org--align-node-property ()
    "Align node property at point.
  Alignment is done according to `org-property-format', which see."
    (save-match-data
      (when (save-excursion
              (beginning-of-line)
              (looking-at org-property-re))
        (replace-match
         (concat (match-string 4)
                 (org-trim
                  (format org-property-format (match-string 1) (match-string 
3))))
         t t))))

Regards,



reply via email to

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