unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Standard error output in Emacs
@ 2007-09-07 14:14 Milind Ganjoo
  2007-09-07 18:33 ` Eli Zaretskii
  2007-09-08  7:01 ` Richard Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: Milind Ganjoo @ 2007-09-07 14:14 UTC (permalink / raw)
  To: bug-gnu-emacs@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 3874 bytes --]

The standard error output from programs like DJGPP's gcc is not
captured by Emacs. When compiling a C++ source file using gpp in
Emacs, a compile error results in an abnormal exit code of 2, but the
*Compilation* buffer does not show the exact errors. A similar issue
occurs when the `shell' is accessed; standard error output from GNU
programs is not visible. When the same compilation is carried out
using the Windows Command Prompt, the compilation errors do appear.

The operating system in use is Microsoft Windows Vista Business Edition.


In GNU Emacs 22.1.1 (i386-mingw-nt6.0.6000)
 of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 6.0.6000
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Outline

Minor modes in effect:
  shell-dirtrack-mode: t
  show-paren-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  view-mode: t

Recent input:
<help-echo> <f11> g p p <return> g p p <backspace>
<backspace> <backspace> r e d i r SPC - e <backspace>
<backspace> <backspace> SPC - - h e l p <return> h
<backspace> g p p SPC - - h e l p <return> r e d i
r SPC <backspace> <return> r e d i r SPC <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<lwindow> g p p SPC + <backspace> | SPC r e d i r SPC
- e SPC t e s t . t x t <return> <up> <down> r e d
i r SPC - e SPC t e s t . t s t <backspace> <backspace>
x t SPC g p p <return> <help-echo> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <help-echo> <down-mouse-1> <mouse-1>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<emacs-problems> C-s s t a n d a r d SPC e r r <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> e r r o r <f3> <f3> <f3> C-g
C-s e r r o r C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Loading outline...done
View mode: type C-h for help, h for commands, q to quit.
Mark saved where search started
Loading kmacro...done
Defining kbd macro...
kmacro-start-macro-or-insert-counter: Buffer is read-only: #<buffer
PROBLEMS>
Defining kbd macro...
Quit
Mark saved where search started
Loading emacsbug...done

[-- Attachment #1.2: Type: text/html, Size: 5335 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs

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

* Re: Standard error output in Emacs
  2007-09-07 14:14 Standard error output in Emacs Milind Ganjoo
@ 2007-09-07 18:33 ` Eli Zaretskii
  2007-09-08  7:01 ` Richard Stallman
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2007-09-07 18:33 UTC (permalink / raw)
  To: Milind Ganjoo; +Cc: bug-gnu-emacs

> Date: Fri, 7 Sep 2007 19:44:04 +0530
> From: "Milind Ganjoo" <milganz@gmail.com>
> 
> The standard error output from programs like DJGPP's gcc is not
> captured by Emacs. When compiling a C++ source file using gpp in
> Emacs, a compile error results in an abnormal exit code of 2, but the
> *Compilation* buffer does not show the exact errors.

I cannot reproduce this with the latest DJGPP binaries from
www.delorie.com.  Do you have the same problem in "emacs -Q"?  If the
problem goes away with "emacs -Q", maybe something in your .emacs
causes this problem.

If "emacs -Q" does not help, maybe you have set things so that Emacs
invokes the DJGPP commands though some non-standard shell.  My system
is set up to invoke cmdproxy, which is the default on Windows.

Also, I see that you tried to use the `redir' command to redirect
stderr.  If that's the way you invoked GCC, please try to invoke it
without `redir', as the "M-x compile" normally redirects stderr to the
"*Compilation*" buffer automatically, so `redir' should not be needed.

Finally, if nothing helps or gives a clue, these could be problems
specific to Windows Vista (I use XP SP2).

In general, I'd suggest to use DJGPP programs only with the DJGPP
build of Emacs (Emacs 22.1 should build with DJGPP just fine).  If you
want to use the Windows version of Emacs, I suggest to install MinGW
GCC and development tools and use that instead.

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

* Re: Standard error output in Emacs
  2007-09-07 14:14 Standard error output in Emacs Milind Ganjoo
  2007-09-07 18:33 ` Eli Zaretskii
@ 2007-09-08  7:01 ` Richard Stallman
  2007-09-08  8:24   ` Milind Ganjoo
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2007-09-08  7:01 UTC (permalink / raw)
  To: Milind Ganjoo; +Cc: bug-gnu-emacs

    The standard error output from programs like DJGPP's gcc is not
    captured by Emacs. When compiling a C++ source file using gpp in
    Emacs, a compile error results in an abnormal exit code of 2, but the
    *Compilation* buffer does not show the exact errors.

We do not use DJGPP.
Please show us the precise error messages that are not recognized.

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

* Re: Standard error output in Emacs
  2007-09-08  7:01 ` Richard Stallman
@ 2007-09-08  8:24   ` Milind Ganjoo
  2007-09-08  9:19     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Milind Ganjoo @ 2007-09-08  8:24 UTC (permalink / raw)
  To: rms; +Cc: bug-gnu-emacs

>     The standard error output from programs like DJGPP's gcc is not
>     captured by Emacs. When compiling a C++ source file using gpp in
>     Emacs, a compile error results in an abnormal exit code of 2, but the
>     *Compilation* buffer does not show the exact errors.
>
> We do not use DJGPP.
> Please show us the precise error messages that are not recognized.
>

The `exact errors' that I am referring to are simply syntax error
messages. For example, say I compile a C++ source file, containing syntax
errors, with `M-x compile' and `gpp -o test.exe test.cc', the
*compilation* buffer does not show the syntax errors; it merely
indicates that `compilation exited abnormally'. A similar thing
happens with all DJGPP programs that I run through the Emacs shell:
the standard error output is not displayed.

On Mr Zaretskii's advice, I tried using the MinGW compiler through
Emacs to compile my source file, and it is presenting all the
syntax errors and other error messages. It seems as if Emacs is not
receiving standard error output from DOS programs like DJGPP.

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

* Re: Standard error output in Emacs
  2007-09-08  8:24   ` Milind Ganjoo
@ 2007-09-08  9:19     ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2007-09-08  9:19 UTC (permalink / raw)
  To: Milind Ganjoo; +Cc: bug-gnu-emacs, rms

> Date: Sat, 8 Sep 2007 13:54:08 +0530
> From: "Milind Ganjoo" <milganz@gmail.com>
> Cc: bug-gnu-emacs@gnu.org
> 
> It seems as if Emacs is not receiving standard error output from DOS
> programs like DJGPP.

For the record, this does not happen on my Windows XP machine, so it
could be a Windows Vista only problem.

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

end of thread, other threads:[~2007-09-08  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-07 14:14 Standard error output in Emacs Milind Ganjoo
2007-09-07 18:33 ` Eli Zaretskii
2007-09-08  7:01 ` Richard Stallman
2007-09-08  8:24   ` Milind Ganjoo
2007-09-08  9:19     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).