<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>12</bug_id>
          
          <creation_ts>2001-09-29 17:42:22 +0400</creation_ts>
          <short_desc>Emacs Compile + colorgcc don\&apos;t work well</short_desc>
          <delta_ts>2003-08-25 15:18:23 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>emacs-common</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter &apos;Nidd&apos; Novodvorsky">nidd</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>sbolshakov</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10</commentid>
    <comment_count>0</comment_count>
    <who name="Peter &apos;Nidd&apos; Novodvorsky">nidd</who>
    <bug_when>2001-09-29 17:42:22 +0400</bug_when>
    <thetext>Compile function (called by menu item Tools-&amp;gt;Compile) doesn\&apos;t
care about TERM environment variable, so the compiler process gets it
inherited from the Emacs process (and, for example, if Emacs is called
from an Xterm, then TERM=xterm for the compiler process). But actually
the  output of the compiler process goes to Emacs buffer through a
virtual terminal, and TERM doesn\&apos;t correspond to the type of the
actual terminal. As a consequence, some junk (escape sequences) may
appear in the buffer. Moreover, the output is parsed by Emacs, and
because of the escape-sequences in it the parsing fails.

This bad thing about the Compile function can be observed when you
have colorgcc installed in your system (and when it is chosen by
update-alternatives).
---
 Make sure colorgcc is used when you call gcc. Then start Emacs
from an Xterm (where TERM=xterm) and open a C-source file (foo.c) from a
directory with a Makefile (so that foo.c is compiled with gcc when you
call make). Make an error in foo.c. Go to the menu Tools and run
Compile. `make -k\&apos; will be executed. In the buffer `*compilation\&apos; you
will see some junk and the output will not be highlighted
correctly. You won\&apos;t be able to use Next error function.

To see that the there is a problem with TERM, you can add a statement like `echo
 
---
I suggest a fix that sets TERM=dumb in the environment of the compiler
process when calling it. I am not sure whether such solution is good
enough. 

The patch can be found in basalt:/raid/imz/OUT/READY/emacs/

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2640</commentid>
    <comment_count>1</comment_count>
    <who name="Peter &apos;Nidd&apos; Novodvorsky">nidd</who>
    <bug_when>2001-09-30 12:39:26 +0400</bug_when>
    <thetext>Isn\&apos;t closed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6005</commentid>
    <comment_count>2</comment_count>
    <who name="Peter &apos;Nidd&apos; Novodvorsky">nidd</who>
    <bug_when>2001-09-30 12:39:26 +0400</bug_when>
    <thetext>Isn\&apos;t closed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2641</commentid>
    <comment_count>3</comment_count>
    <who name="Peter &apos;Nidd&apos; Novodvorsky">nidd</who>
    <bug_when>2001-09-30 12:40:43 +0400</bug_when>
    <thetext>Closed in 20.7-alt1. Package is in incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6006</commentid>
    <comment_count>4</comment_count>
    <who name="Peter &apos;Nidd&apos; Novodvorsky">nidd</who>
    <bug_when>2001-09-30 12:40:43 +0400</bug_when>
    <thetext>Closed in 20.7-alt1. Package is in incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2642</commentid>
    <comment_count>5</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2001-10-03 20:34:58 +0400</bug_when>
    <thetext>I can\&apos;t find the new package where this is fixed. (About the release numbre: is it OK to call it \&apos;alt1\&apos; after \&apos;ipl9mdk\&apos;: rpm will think alt1 is older.)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6007</commentid>
    <comment_count>6</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2001-10-03 20:34:58 +0400</bug_when>
    <thetext>I can\&apos;t find the new package where this is fixed. (About the release numbre: is it OK to call it \&apos;alt1\&apos; after \&apos;ipl9mdk\&apos;: rpm will think alt1 is older.)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2643</commentid>
    <comment_count>7</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2001-12-26 18:56:02 +0300</bug_when>
    <thetext>The patch is applied in emacs-21.1-alt6, that is being built right now.
If it works, will close the bug.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6008</commentid>
    <comment_count>8</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2001-12-26 18:56:02 +0300</bug_when>
    <thetext>The patch is applied in emacs-21.1-alt6, that is being built right now.
If it works, will close the bug.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2644</commentid>
    <comment_count>9</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-01-01 22:45:02 +0300</bug_when>
    <thetext> Really fixed only in emacs-common-21.1-alt8. Patch supplied to gnu.org.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6009</commentid>
    <comment_count>10</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-01-01 22:45:02 +0300</bug_when>
    <thetext> Really fixed only in emacs-common-21.1-alt8. Patch supplied to gnu.org.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>