]> git.eshelyaron.com Git - emacs.git/commitdiff
Make woman ignore the new groff kerning operators
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 17 Oct 2020 10:17:10 +0000 (12:17 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 17 Oct 2020 10:17:10 +0000 (12:17 +0200)
* lisp/woman.el (woman-decode-region): Ignore the new groff
kerning operators (bug#42219).

lisp/woman.el

index eeacceadc27aab522e71199b4e3417d769c80f07..52f610b569f3b910f094e164527210147996fc1e 100644 (file)
@@ -2289,6 +2289,12 @@ Currently set only from \\='\\\" t in the first line of the source file.")
     (setq fill-column woman-fill-column
          tab-width woman-tab-width)
 
+    ;; 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)
+      (replace-match "" t t))
+
     ;; Hide unpaddable and digit-width spaces \(space) and \0:
     (goto-char from)
     (while (re-search-forward "\\\\[ 0]" nil t)