emacs-diffs
[Top][All Lists]
Advanced

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

master bee5066: Make woman ignore the new groff kerning operators


From: Lars Ingebrigtsen
Subject: master bee5066: Make woman ignore the new groff kerning operators
Date: Sat, 17 Oct 2020 06:17:21 -0400 (EDT)

branch: master
commit bee50664ae33deba3fe2284748f1e5a1622a1bb6
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 eeaccea..52f610b 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)



reply via email to

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