]> git.eshelyaron.com Git - emacs.git/commitdiff
(texinfo-format-region, texinfo-format-buffer-1):
authorRichard M. Stallman <rms@gnu.org>
Thu, 29 Sep 1994 18:51:54 +0000 (18:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 29 Sep 1994 18:51:54 +0000 (18:51 +0000)
Search back for the @include.

lisp/textmodes/texinfmt.el

index fc079976c8b3ec5dc3fc25e937bf05ee808d7b23..83cf620826dd4b0bf4802b4ab76e0795e366bdcd 100644 (file)
@@ -202,7 +202,7 @@ converted to Info is stored in a temporary buffer."
       (setq texinfo-command-end (point))
       (let ((filename (concat input-directory
                               (texinfo-parse-line-arg))))
-        (beginning-of-line)
+        (re-search-backward "^@include")
         (delete-region (point) (save-excursion (forward-line 1) (point)))
         (message "Reading included file: %s" filename)
         (save-excursion
@@ -327,7 +327,7 @@ converted to Info is stored in a temporary buffer."
       (setq texinfo-command-end (point))
       (let ((filename (concat input-directory
                               (texinfo-parse-line-arg))))
-        (beginning-of-line)
+        (re-search-backward "^@include")
         (delete-region (point) (save-excursion (forward-line 1) (point)))
         (message "Reading included file: %s" filename)
         (save-excursion