diff options
Diffstat (limited to 'lisp/allout.el')
-rw-r--r-- | lisp/allout.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/allout.el b/lisp/allout.el index 4a0aeeedf6a..e837f83ed38 100644 --- a/lisp/allout.el +++ b/lisp/allout.el @@ -4462,7 +4462,7 @@ Topic exposure is marked with text-properties, to be used by (if (and (/= (current-column) 0) (not (eobp))) (forward-char 1)) (if (not (eobp)) - (if (and (save-match-data (looking-at "\n")) + (if (and (= (following-char) ?\n) (or (save-excursion (or (not (allout-next-heading)) (= depth allout-recent-depth))) @@ -6278,8 +6278,7 @@ It must also have content." (setq got nil done t) (goto-char (setq got (match-beginning 0))) - (if (save-match-data (looking-at "\n")) - (forward-char 1)) + (when (= (following-char) ?\n) (forward-char 1)) (setq got (point))) (cond ((not got) |