]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix search error in woman.el
authorThierry Volpiatto <thievol@posteo.net>
Wed, 31 Jan 2024 13:54:16 +0000 (13:54 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 4 Feb 2024 11:00:58 +0000 (12:00 +0100)
* lisp/woman.el (woman-if-body): Avoid signaling an error
if "el }" is not found.  (Bug#68852)

(cherry picked from commit d0766c0999e1e78b2f63e1d97881e926e5e6f905)

lisp/woman.el

index a9af46fa387f2bbff036fe41d87df35f056efe2f..2357ba6b132153fe848d2ab6f4ecbaa3e55f7a9e 100644 (file)
@@ -2566,7 +2566,8 @@ If DELETE is non-nil then delete from point."
                       ;; "\\(\\\\{\\)\\|\\(\n[.']\\)?[ \t]*\\\\}[ \t]*"
                       ;; Interpret bogus `el \}' as `el \{',
                       ;; especially for Tcl/Tk man pages:
-                      "\\(\\\\{\\|el[ \t]*\\\\}\\)\\|\\(\n[.']\\)?[ \t]*\\\\}[ \t]*")
+                      "\\(\\\\{\\|el[ \t]*\\\\}\\)\\|\\(\n[.']\\)?[ \t]*\\\\}[ \t]*"
+                       nil t)
                      (match-beginning 1))
               (re-search-forward "\\\\}"))
             (delete-region (if delete from (match-beginning 0)) (point))