changeset 6340:e9c46ef0a877

(underline-region, ununderline-region): Use printable escapes instead of embedding literal control chars in the source.
author Karl Heuer <kwzh@gnu.org>
date Mon, 14 Mar 1994 21:27:41 +0000
parents f0f62abb621b
children dfc758dd2b08
files lisp/textmodes/underline.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/underline.el	Mon Mar 14 21:27:13 1994 +0000
+++ b/lisp/textmodes/underline.el	Mon Mar 14 21:27:41 1994 +0000
@@ -43,7 +43,7 @@
      (goto-char (min start end))
      (while (< (point) end1)
        (or (looking-at "[_\^@- ]")
-	   (insert "_"))
+	   (insert "_\b"))
        (forward-char 1)))))
 
 ;;;###autoload
@@ -56,7 +56,7 @@
    (let ((end1 (make-marker)))
      (move-marker end1 (max start end))
      (goto-char (min start end))
-     (while (re-search-forward "_\\|_" end1 t)
+     (while (re-search-forward "_\b\\|\b_" end1 t)
        (delete-char -2)))))
 
 ;;; underline.el ends here