emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 1841b13: Simplify regexp in last change to woman.el


From: Basil L. Contovounesios
Subject: master 1841b13: Simplify regexp in last change to woman.el
Date: Tue, 20 Oct 2020 12:40:35 -0400 (EDT)

branch: master
commit 1841b13282473b0ed8c591974e89bd781026180d
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Simplify regexp in last change to woman.el
    
    * lisp/woman.el (woman-decode-region): Use simpler character
    alternative instead of alternation.
---
 lisp/woman.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/woman.el b/lisp/woman.el
index 52f610b..96ae7fe 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:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]