mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Try to speed-up display of many all-blank lines
* src/bidi.c (bidi_initialize): Use anchored regexps for paragraph start and paragraph separator sequences. (Bug#23457)
This commit is contained in:
parent
26171e0277
commit
fa6a6edd1d
1 changed files with 2 additions and 8 deletions
10
src/bidi.c
10
src/bidi.c
|
|
@ -1107,15 +1107,9 @@ bidi_initialize (void)
|
|||
emacs_abort ();
|
||||
staticpro (&bidi_brackets_table);
|
||||
|
||||
DEFSYM (Qparagraph_start, "paragraph-start");
|
||||
paragraph_start_re = Fsymbol_value (Qparagraph_start);
|
||||
if (!STRINGP (paragraph_start_re))
|
||||
paragraph_start_re = build_string ("\f\\|[ \t]*$");
|
||||
paragraph_start_re = build_string ("^\\(\f\\|[ \t]*\\)$");
|
||||
staticpro (¶graph_start_re);
|
||||
DEFSYM (Qparagraph_separate, "paragraph-separate");
|
||||
paragraph_separate_re = Fsymbol_value (Qparagraph_separate);
|
||||
if (!STRINGP (paragraph_separate_re))
|
||||
paragraph_separate_re = build_string ("[ \t\f]*$");
|
||||
paragraph_separate_re = build_string ("^[ \t\f]*$");
|
||||
staticpro (¶graph_separate_re);
|
||||
|
||||
bidi_cache_sp = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue