Skip to content

Commit

Permalink
Fix expensive paragraph-separate regexp
Browse files Browse the repository at this point in the history
Searching over a line with, say, 30 spaces at the beginning ties up my
emacs for many seconds due to the nested *.
  • Loading branch information
glasser committed Dec 5, 2013
1 parent 9b3f881 commit 05580fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -4603,7 +4603,7 @@ if ARG is omitted or nil."
(set (make-local-variable 'paragraph-start)
"\f\\|[ \t]*$\\|[ \t]*[*+-] \\|[ \t]*[0-9]+\\.[ \t]\\|[ \t]*: ")
(set (make-local-variable 'paragraph-separate)
"\\(?:[ \t\f]\\|.* \\)*$")
"\\(?:[ \t\f]*\\|.* \\)$")
(set (make-local-variable 'adaptive-fill-first-line-regexp)
"\\`[ \t]*>[ \t]*?\\'")
(set (make-local-variable 'adaptive-fill-function)
Expand Down

0 comments on commit 05580fc

Please sign in to comment.