unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* tex-region bug?
@ 2003-11-26 22:06 Jay Gopalakrishnan
  2003-11-27  1:03 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Gopalakrishnan @ 2003-11-26 22:06 UTC (permalink / raw)



In GNU emacs 21.2.1, the command M-x tex-region creates a temporary file
to tex the marked region, but in the temporary file the marked region is
written in between
"\begin{document}"   and
"\end\s-*{document}".
The last line should be "\end{document}". Is this a known bug?

Is there a quick fix? (E.g., can I edit something in system file
"tex-mode.elc" to fix this?)

Thanks
Jay

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tex-region bug?
  2003-11-26 22:06 tex-region bug? Jay Gopalakrishnan
@ 2003-11-27  1:03 ` Stefan Monnier
  2003-11-27 15:44   ` Jay Gopalakrishnan
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2003-11-27  1:03 UTC (permalink / raw)


> written in between
> "\begin{document}"   and
> "\end\s-*{document}".
> The last line should be "\end{document}". Is this a known bug?

Nope.  It's a bug I probably introduced in Emacs-21.

> Is there a quick fix? (E.g., can I edit something in system file
> "tex-mode.elc" to fix this?)

Sure, just look for the string and remove the \s-*.
But maybe it'll corrupt the tex-mode.elc file, so you're better off
modifying the tex-mode.el file and re-byte-compiling it.


        Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tex-region bug?
  2003-11-27  1:03 ` Stefan Monnier
@ 2003-11-27 15:44   ` Jay Gopalakrishnan
  0 siblings, 0 replies; 3+ messages in thread
From: Jay Gopalakrishnan @ 2003-11-27 15:44 UTC (permalink / raw)


Stefan Monnier wrote:
>>written in between
>>"\begin{document}"   and
>>"\end\s-*{document}".
>>The last line should be "\end{document}". Is this a known bug?
> 
> 
> Nope.  It's a bug I probably introduced in Emacs-21.
> 
> 
>>Is there a quick fix? (E.g., can I edit something in system file
>>"tex-mode.elc" to fix this?)
> 
> 
> Sure, just look for the string and remove the \s-*.
> But maybe it'll corrupt the tex-mode.elc file, so you're better off
> modifying the tex-mode.el file and re-byte-compiling it.


Thank you for the quick clarification.
Modifying the .elc file seems to work fine for me.

Jay

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-27 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-26 22:06 tex-region bug? Jay Gopalakrishnan
2003-11-27  1:03 ` Stefan Monnier
2003-11-27 15:44   ` Jay Gopalakrishnan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).