Rainer M Krug wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 >On 07/09/10 16:40, Bastien wrote: >> Rainer M Krug <[email protected]> writes: >> >>> On 07/09/10 16:16, Erik Iverson wrote: >>>> Did you recently start using MobileOrg? >>> >>> No - I only inserted a link, and around that time the :ID:s appeared. I >>> deleted them all manually, but they came back. >> >> I suspect you need this: >> >> (set org-link-to-org-use-id nil)
>That sounds like the most likely solution - thanks.
>Now I just have to find an easy way to delete all the :PROPERTIES blocks.
This one should do the trick:
(defun dmj:org:remove-empty-propert-drawers ()
"*Remove all empty property drawers in current file."
(interactive)
(unless (eq major-mode 'org-mode)
(error "You need to turn on Org mode for this function."))
(save-excursion
(goto-char (point-min))
(while (re-search-forward ":PROPERTIES:" nil t)
(save-excursion
(org-remove-empty-drawer-at "PROPERTIES" (match-beginning 0))))))
If called interactively in an Org mode buffer it searches for the
string ":PROPERTIES:" and tells Org to remove the drawer if it is
empty. Just used it to get rid of empty CLOCK drawers -- but beware:
It is a very stupid function, i.e. it does not check if the
string :PROPERTIES: is actually a property drawer or not.
HTH,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... [email protected]
Email..... [email protected]
pgpQr3jT4WO4z.pgp
Description: PGP signature
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. [email protected] http://lists.gnu.org/mailman/listinfo/emacs-orgmode
