diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-07-17 17:50:37 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-07-17 17:50:37 +0300 |
commit | d7f7fef1c1cdef206860a7075873de7d6c521d8d (patch) | |
tree | abc7489210594cfdd4324404f1fe8155dfd58953 /lisp/emacs-lisp/elp.el | |
parent | 5e2ae74df54d4090c591c79ab13e7713c6654b9c (diff) | |
download | emacs-d7f7fef1c1cdef206860a7075873de7d6c521d8d.tar.gz emacs-d7f7fef1c1cdef206860a7075873de7d6c521d8d.tar.bz2 emacs-d7f7fef1c1cdef206860a7075873de7d6c521d8d.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/elp.el')
0 files changed, 0 insertions, 0 deletions