changeset 24453:3b8991c22dcd

(texinfo-append-refill): Check @c correctly.
author Kenichi Handa <handa@m17n.org>
date Mon, 08 Mar 1999 00:26:16 +0000
parents 3f25405e6e70
children fe0089dd2d2f
files lisp/textmodes/texinfmt.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/texinfmt.el	Sun Mar 07 17:10:24 1999 +0000
+++ b/lisp/textmodes/texinfmt.el	Mon Mar 08 00:26:16 1999 +0000
@@ -623,7 +623,9 @@
 	    (delete-region
 	     (point)
 	     (save-excursion (skip-chars-backward " \t") (point)))
-	    (search-backward "@c" line-beg t)
+	    (forward-char 1)
+	    (unless (re-search-backward "@c[ \t\n]\\|@comment[ \t\n]" line-beg t)
+	      (forward-char -1))
 	    (unless (re-search-backward "@refill\\|@bye" line-beg t)
 	      (insert "@refill")))
           (forward-line 1))))))