Variable: bidi-paragraph-start-re

bidi-paragraph-start-re is a buffer-local variable defined in buffer.c.

Documentation

If non-nil, a regexp matching a line that starts OR separates paragraphs.

The value of nil means to use empty lines as lines that start and separate paragraphs.

When Emacs displays bidirectional text, it by default computes the base paragraph direction separately for each paragraph. Setting this variable changes the places where paragraph base direction is recomputed.

The regexp is always matched after a newline, so it is best to anchor it by beginning it with a "^".

If you change the value of this variable, be sure to change the value of bidi-paragraph-separate-re accordingly. For example, to have a single newline behave as a paragraph separator, set both these variables to "^".

See also bidi-paragraph-direction.

View in manual

Probably introduced at or before Emacs version 26.1.

Source Code

// Defined in /usr/src/emacs/src/buffer.c
  DEFVAR_PER_BUFFER ("bidi-paragraph-start-re",
		     &BVAR (current_buffer, bidi_paragraph_start_re), Qnil,
		     doc: /* If non-nil, a regexp matching a line that starts OR separates paragraphs.

The value of nil means to use empty lines as lines that start and
separate paragraphs.

When Emacs displays bidirectional text, it by default computes
the base paragraph direction separately for each paragraph.
Setting this variable changes the places where paragraph base
direction is recomputed.

The regexp is always matched after a newline, so it is best to
anchor it by beginning it with a "^".

If you change the value of this variable, be sure to change
the value of `bidi-paragraph-separate-re' accordingly.  For
example, to have a single newline behave as a paragraph separator,
set both these variables to "^".

See also `bidi-paragraph-direction'.  */);