squeeze-bidi-context
squeeze-bidi-context is a compiled Lisp function in `simple.el
'.
(squeeze-bidi-context FROM TO)
Replace characters between FROM and TO while keeping bidi context.
This function replaces the region of text with as few characters
as possible, while preserving the effect that region will have on
bidirectional display before and after the region.