aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/underline.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/underline.el b/lisp/textmodes/underline.el
index 269acd01b93..78c7d8b9e9b 100644
--- a/lisp/textmodes/underline.el
+++ b/lisp/textmodes/underline.el
@@ -43,7 +43,7 @@ which specify the range to operate on."
43 (goto-char (min start end)) 43 (goto-char (min start end))
44 (while (< (point) end1) 44 (while (< (point) end1)
45 (or (looking-at "[_\^@- ]") 45 (or (looking-at "[_\^@- ]")
46 (insert "_")) 46 (insert "_\b"))
47 (forward-char 1))))) 47 (forward-char 1)))))
48 48
49;;;###autoload 49;;;###autoload
@@ -56,7 +56,7 @@ which specify the range to operate on."
56 (let ((end1 (make-marker))) 56 (let ((end1 (make-marker)))
57 (move-marker end1 (max start end)) 57 (move-marker end1 (max start end))
58 (goto-char (min start end)) 58 (goto-char (min start end))
59 (while (re-search-forward "_\\|_" end1 t) 59 (while (re-search-forward "_\b\\|\b_" end1 t)
60 (delete-char -2))))) 60 (delete-char -2)))))
61 61
62;;; underline.el ends here 62;;; underline.el ends here