From: Kenichi Handa Date: Mon, 8 Mar 1999 00:26:16 +0000 (+0000) Subject: (texinfo-append-refill): Check @c correctly. X-Git-Tag: emacs-20.4~496 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec81e97abceba8b3b56100ffe7380473feaa61f4;p=emacs.git (texinfo-append-refill): Check @c correctly. --- diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 9ba0055e19b..b1653ffa366 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el @@ -623,7 +623,9 @@ Do not append @refill to paragraphs containing @w{TEXT} or @*." (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))))))