From bee50664ae33deba3fe2284748f1e5a1622a1bb6 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 17 Oct 2020 12:17:10 +0200 Subject: [PATCH] Make woman ignore the new groff kerning operators * lisp/woman.el (woman-decode-region): Ignore the new groff kerning operators (bug#42219). --- lisp/woman.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/woman.el b/lisp/woman.el index eeacceadc27..52f610b569f 100644 --- a/lisp/woman.el +++ b/lisp/woman.el @@ -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) -- 2.39.2