]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/visual-wrap.el: use regexp-unmatchable
authorMattias EngdegÄrd <mattiase@acm.org>
Sat, 27 Jan 2024 11:36:15 +0000 (12:36 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 31 Jan 2024 20:08:34 +0000 (21:08 +0100)
(cherry picked from commit 85faf907618798eb09f34ba49527827b0e4026bc)

lisp/visual-wrap.el

index 1cb49538eaea99ce364e66552c05acfdda6e6395..c23a886801df8dc88be8ba1d43fd821822ab50df 100644 (file)
@@ -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