bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tex-mode problem


From: Bas Michielsen
Subject: tex-mode problem
Date: Tue, 16 Jan 2001 01:46:54 +0100

Please note the following:

In GNU Emacs 20.7.1 (i386-suse-linux, X toolkit)
 of Sun Aug  6 2000 on Maclaurin.suse.de
configured using `configure  --with-gcc --with-pop --with-system-malloc
--prefix=/usr --exec-prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --sharedstatedir=/var/state
--libexecdir=/usr/lib --with-x --with-x-toolkit=lucid
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
i386-suse-linux'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

tex-buffer or tex-region results in the following error message:

Wrong type argument: integer-or-marker-p, "
\\end{document}
"

Apparently, write-region does not accept a string instead of the START
argument. The problem has been solved by changing the pertinent lines 
in tex-mode.el as shown below. 
;;      (if tex-trailer
;;          (write-region (concat "\n" tex-trailer) nil
;;                        tex-out-file t nil))
;; The above doesn't work, because write-region has been changed??
        (if tex-trailer
            (let ((trail tex-trailer))
              (with-temp-buffer (insert trail)
                                (write-region (point-min) (point-max)
                                              tex-out-file t nil))))))


Regards,

-- 
Bas Michielsen
14, avenue du Corail
31650 St. Orens de Gameville
France
++33 (0)5 61 00 25 64



reply via email to

[Prev in Thread] Current Thread [Next in Thread]