diff options
| author | Eli Zaretskii | 2016-05-07 11:00:36 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-05-07 11:00:36 +0300 |
| commit | fa6a6edd1d670e2826186ee943ae7ca083771801 (patch) | |
| tree | fbbcd09f289a0326390fcb1d23945819b229059d | |
| parent | 26171e02773b9b2383f412dd79d241385d2d20df (diff) | |
| download | emacs-fa6a6edd1d670e2826186ee943ae7ca083771801.tar.gz emacs-fa6a6edd1d670e2826186ee943ae7ca083771801.zip | |
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)
| -rw-r--r-- | src/bidi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/bidi.c b/src/bidi.c index 573e513469d..6ea84d9c0c4 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -1107,15 +1107,9 @@ bidi_initialize (void) | |||
| 1107 | emacs_abort (); | 1107 | emacs_abort (); |
| 1108 | staticpro (&bidi_brackets_table); | 1108 | staticpro (&bidi_brackets_table); |
| 1109 | 1109 | ||
| 1110 | DEFSYM (Qparagraph_start, "paragraph-start"); | 1110 | paragraph_start_re = build_string ("^\\(\f\\|[ \t]*\\)$"); |
| 1111 | paragraph_start_re = Fsymbol_value (Qparagraph_start); | ||
| 1112 | if (!STRINGP (paragraph_start_re)) | ||
| 1113 | paragraph_start_re = build_string ("\f\\|[ \t]*$"); | ||
| 1114 | staticpro (¶graph_start_re); | 1111 | staticpro (¶graph_start_re); |
| 1115 | DEFSYM (Qparagraph_separate, "paragraph-separate"); | 1112 | paragraph_separate_re = build_string ("^[ \t\f]*$"); |
| 1116 | paragraph_separate_re = Fsymbol_value (Qparagraph_separate); | ||
| 1117 | if (!STRINGP (paragraph_separate_re)) | ||
| 1118 | paragraph_separate_re = build_string ("[ \t\f]*$"); | ||
| 1119 | staticpro (¶graph_separate_re); | 1113 | staticpro (¶graph_separate_re); |
| 1120 | 1114 | ||
| 1121 | bidi_cache_sp = 0; | 1115 | bidi_cache_sp = 0; |