From: Mattias EngdegÄrd Date: Sat, 27 Jan 2024 11:36:15 +0000 (+0100) Subject: ; * lisp/visual-wrap.el: use regexp-unmatchable X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d24beb7fb2c1b00df646f9467c44f15535baf701;p=emacs.git ; * lisp/visual-wrap.el: use regexp-unmatchable (cherry picked from commit 85faf907618798eb09f34ba49527827b0e4026bc) --- diff --git a/lisp/visual-wrap.el b/lisp/visual-wrap.el index 1cb49538eae..c23a886801d 100644 --- a/lisp/visual-wrap.el +++ b/lisp/visual-wrap.el @@ -123,7 +123,7 @@ by `visual-wrap-extra-indent'." ;; actually modify the buffer, so this restriction doesn't ;; make much sense (and is positively harmful in ;; taskpaper-mode where paragraph-start matches everything). - (or (let ((paragraph-start "\\`\\'a")) + (or (let ((paragraph-start regexp-unmatchable)) (fill-context-prefix beg end)) ;; Note: fill-context-prefix may return nil; See: ;; http://article.gmane.org/gmane.emacs.devel/156285