]> git.eshelyaron.com Git - emacs.git/commit
Allow user control on what starts and ends a paragraph for bidi
authorEli Zaretskii <eliz@gnu.org>
Mon, 17 Jul 2017 14:50:37 +0000 (17:50 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 17 Jul 2017 14:50:37 +0000 (17:50 +0300)
commitd7f7fef1c1cdef206860a7075873de7d6c521d8d
treeabc7489210594cfdd4324404f1fe8155dfd58953
parent5e2ae74df54d4090c591c79ab13e7713c6654b9c
Allow user control on what starts and ends a paragraph for bidi

* src/buffer.h (struct buffer): New members
bidi_paragraph_separate_re_ and bidi_paragraph_start_re_.
* src/buffer.c (bset_bidi_paragraph_start_re)
(bset_bidi_paragraph_separate_re): New setters/
(Fbuffer_swap_text): Swap the values of bidi-paragraph-start-re and
bidi-paragraph-separate-re.
(init_buffer_once): Init the values of bidi-paragraph-start-re and
bidi-paragraph-separate-re.
(syms_of_buffer) <bidi-paragraph-start-re, bidi-paragraph-separate-re>:
New per-buffer variables.
* src/bidi.c (bidi_at_paragraph_end, bidi_find_paragraph_start):
Support bidi-paragraph-start-re and bidi-paragraph-separate-re.
(bidi_move_to_visually_next): Handle correctly the case when the
separator matches an empty string.  (Bug#27526)

* doc/emacs/mule.texi (Bidirectional Editing):
* doc/lispref/display.texi (Bidirectional Display): Document
bidi-paragraph-start-re and bidi-paragraph-separate-re.

* etc/NEWS: Mention bidi-paragraph-start-re and
bidi-paragraph-separate-re.
doc/emacs/mule.texi
doc/lispref/display.texi
etc/NEWS
src/bidi.c
src/buffer.c
src/buffer.h