]> git.eshelyaron.com Git - emacs.git/commitdiff
(texinfo-append-refill): Check @c correctly.
authorKenichi Handa <handa@m17n.org>
Mon, 8 Mar 1999 00:26:16 +0000 (00:26 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 8 Mar 1999 00:26:16 +0000 (00:26 +0000)
lisp/textmodes/texinfmt.el

index 9ba0055e19bfb704df681f92e07341f192dec529..b1653ffa366fd821089ba1add38c8d6ae9d15f08 100644 (file)
@@ -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))))))