summaryrefslogtreecommitdiff
path: root/lisp/textmodes/underline.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-03-14 21:27:41 +0000
committerKarl Heuer <kwzh@gnu.org>1994-03-14 21:27:41 +0000
commitaf2820894be368e6b75e339012805e8cd9054201 (patch)
treef9b398d020944f4903f32d46e433c97c3c102ad6 /lisp/textmodes/underline.el
parent3a6ade8ab3991522e92aa7457c43fd74efade861 (diff)
downloademacs-af2820894be368e6b75e339012805e8cd9054201.tar.gz
emacs-af2820894be368e6b75e339012805e8cd9054201.tar.bz2
emacs-af2820894be368e6b75e339012805e8cd9054201.zip
(underline-region, ununderline-region): Use printable escapes instead of
embedding literal control chars in the source.
Diffstat (limited to 'lisp/textmodes/underline.el')
-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."
(goto-char (min start end))
(while (< (point) end1)
(or (looking-at "[_\^@- ]")
- (insert "_"))
+ (insert "_\b"))
(forward-char 1)))))
;;;###autoload
@@ -56,7 +56,7 @@ which specify the range to operate on."
(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