org-mode/lisp
Carsten Dominik 0448121f00 Avoid infinite loop when replacing escapes
Patch by David Maus, who writes:

> Org enters an infinite loop when `org-replace-escapes' is called with
> a table containing a replace string that contains the escape sequence
> it should be replaced with.
>
> Example:
> ,----
> | (org-replace-escapes "%m" '(("%m" . "87zl0qq1f3.wl%maus.david@gmail.com")))
> `----
>
> I stumpled upon when I tried to store a link to a internet message
> whose message id contained the sequence "%m" (perfectly valid for a
> message id) while using "%m" as message description.
>
> Attached patch fixes this by
>
>  1. detecting such 'self reference' and replacing the offending
>     sequence in the replace string by a string with a text property
>     that contains the original sequence
>
>  2. replacing occurences of substrings with this text property by the
>     original sequence.
2010-05-08 07:20:54 +02:00
..
ChangeLog Avoid infinite loop when replacing escapes 2010-05-08 07:20:54 +02:00
ChangeLog.01 Move the older ChangeLog entries 2010-04-14 10:31:18 +02:00
org-agenda.el Agenda: Speed-up comparing entries when sorting 2010-04-30 07:54:18 +02:00
org-archive.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-ascii.el Implement list starter cookies also in Org-mode, and for ASCII export 2010-04-26 16:35:23 +02:00
org-attach.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-bbdb.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-beamer.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-bibtex.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-clock.el Fix permissions 2010-05-01 21:57:50 +02:00
org-colview-xemacs.el Overlay changes for org-colview-xemacs.el 2010-04-18 16:50:12 +02:00
org-colview.el More work on simplifying compatibility code 2010-04-21 09:18:12 +02:00
org-compat.el Use (featurep 'xemacs) to help the byte compiler 2010-04-22 15:30:12 +02:00
org-crypt.el Use symmetric encryption when no key is set. 2010-05-08 07:09:16 +02:00
org-ctags.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-datetree.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-docbook.el Docbook export: Implement ordered lists with offset 2010-04-27 06:58:48 +02:00
org-docview.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-entities.el Fix more typos 2010-05-01 06:30:02 +02:00
org-exp-blocks.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-exp.el Automatically remove lines with formatting cookies when exporting tables 2010-04-28 08:49:35 +02:00
org-faces.el Some docstring typos 2010-04-30 22:35:50 -04:00
org-feed.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-footnote.el Fix typos and add customization group for footnotes 2010-04-27 08:11:16 +02:00
org-freemind.el Silence compiler about called-interactively 2010-04-18 16:49:36 +02:00
org-gnus.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-habit.el Require calendar already on top level in org.el 2010-04-18 16:50:13 +02:00
org-html.el HTML export: Fix alignment bug 2010-04-29 15:01:10 +02:00
org-icalendar.el Add a description attribute to an exported iCal file. 2010-04-28 17:00:40 +02:00
org-id.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-indent.el Turn off indent-tabs-mode when org-indent-mode is on 2010-04-26 06:58:21 +02:00
org-info.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-inlinetask.el Fix typo 2010-04-21 09:18:20 +02:00
org-irc.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-jsinfo.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-latex.el LaTeX export: Fix bug with export of x^{(0)} 2010-04-28 17:21:41 +02:00
org-list.el Fix a bug with item demotion 2010-04-27 07:57:22 +02:00
org-mac-message.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-macs.el Redefine the functions where XEmacs invisibility has to be turned off 2010-04-18 19:58:24 +02:00
org-mew.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-mhe.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-mobile.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-mouse.el Simplify XEmacs key bindings 2010-04-21 08:38:09 +02:00
org-plot.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-protocol.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-publish.el Fix typos 2010-04-24 02:17:07 +02:00
org-remember.el Fix some typos 2010-04-16 08:17:57 +02:00
org-rmail.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-src.el Correct free variable error in org-src.el 2010-05-02 00:57:30 -04:00
org-table.el Add commands to recalculate and iterate all tables in a buffer 2010-05-07 09:45:34 +02:00
org-timer.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-vm.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-w3m.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-wl.el Get rid of some compiler warnings 2010-04-18 16:49:58 +02:00
org-xoxo.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org.el Avoid infinite loop when replacing escapes 2010-05-08 07:20:54 +02:00