emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Documentation: Side effects of org-entry-properties and others
@ 2020-02-17 23:19 D
  2020-02-18  0:08 ` John Kitchin
  2020-02-18  0:53 ` Nicolas Goaziou
  0 siblings, 2 replies; 3+ messages in thread
From: D @ 2020-02-17 23:19 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

it seems a few functions meant to expose org internals to programmers
seem to cause undocumented side effects.  A particular example being
org-entry-properties.  When called, it changes the match-data.  This can
cause issues in cases where leaking match-data can cause font-lock to
behave inconsistently or throw errors.  I think it would be a good idea
to add a prominent warning to such interfacing functions, or document it
somewhere in the module.

The same is true for org-element-lineage, but I am not so sure whether
it is intended for hacking purposes as much as org-entry-properties.
Sadly, I have no overview over the scope of this issue, so I do not know
whether my suggestion is unrealistic (for example, because it would mean
adding warnings practically everywhere).

Regards,

D.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-18  0:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-17 23:19 Documentation: Side effects of org-entry-properties and others D
2020-02-18  0:08 ` John Kitchin
2020-02-18  0:53 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).