]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify regexp in last change to woman.el
authorBasil L. Contovounesios <contovob@tcd.ie>
Tue, 20 Oct 2020 16:35:29 +0000 (17:35 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 20 Oct 2020 16:36:21 +0000 (17:36 +0100)
* lisp/woman.el (woman-decode-region): Use simpler character
alternative instead of alternation.

lisp/woman.el

index 52f610b569f3b910f094e164527210147996fc1e..96ae7fe5794ded081c0fbb8724ed65c594fe28b0 100644 (file)
@@ -2292,7 +2292,7 @@ Currently set only from \\='\\\" t in the first line of the source file.")
     ;; Ignore the \, and \/ kerning operators.  See
     ;; https://www.gnu.org/software/groff/manual/groff.html#Ligatures-and-Kerning
     (goto-char (point-min))
-    (while (re-search-forward "\\\\,\\|\\\\/" nil t)
+    (while (re-search-forward "\\\\[,/]" nil t)
       (replace-match "" t t))
 
     ;; Hide unpaddable and digit-width spaces \(space) and \0: