summaryrefslogtreecommitdiff
path: root/lisp/woman.el
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2020-10-20 17:35:29 +0100
committerBasil L. Contovounesios <contovob@tcd.ie>2020-10-20 17:36:21 +0100
commit1841b13282473b0ed8c591974e89bd781026180d (patch)
treeccd3c778a3eeb00b8a27218563e99c87adb2ef73 /lisp/woman.el
parentec4f2723c13321f2abe6aa57035146d80b640db6 (diff)
downloademacs-1841b13282473b0ed8c591974e89bd781026180d.tar.gz
Simplify regexp in last change to woman.el
* lisp/woman.el (woman-decode-region): Use simpler character alternative instead of alternation.
Diffstat (limited to 'lisp/woman.el')
-rw-r--r--lisp/woman.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/woman.el b/lisp/woman.el
index 52f610b569f..96ae7fe5794 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -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: