all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [jfinder@crypticstudios.com: Compilation mode does not properly handle MSFT]
@ 2008-01-14  2:01 Richard Stallman
  2008-01-14 15:41 ` Fwd: Compilation mode does not properly handle MSFT Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2008-01-14  2:01 UTC (permalink / raw)
  To: emacs-devel

Would someone please DTRT?

------- Start of forwarded message -------
From: Jared Finder <jfinder@crypticstudios.com>
To: "'bug-gnu-emacs@gnu.org'" <bug-gnu-emacs@gnu.org>
Date: Sat, 12 Jan 2008 10:59:09 -0800
Thread-Topic: Compilation mode does not properly handle MSFT
Thread-Index: AchVTTnSfqHb5oqhRdKawj1ehYccSA==
Message-ID: <C73CE12E0E2E6D4AA8C97475050023A608C53BC798@proserpine.paragon.crypticstudios.com>
Accept-Language: en-US
Content-Language: en-US
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Subject: Compilation mode does not properly handle MSFT

Fatal compilation errors as reported by the Microsoft compiler are not
properly recognized by compilation mode.  The regexp for Microsoft
should have "\\(?:fatal )?" added before error, resulting in something
l be something like:

"^\\([0-9]+>\\)?\\(\\(?:[a-zA-Z]:\\)?[^:(       \n]+\\)(\\([0-9]+\\)) :\\(?:\\(?:fatal \\)?error\\|warnin\\(g\\)\\) C[0-9]+:"

  -- MJF

In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)  of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
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: Emacs-Lisp/lw Minor modes in effect:   global-reveal-mode:
t   reveal-mode: t   eldoc-mode: t   global-balanced-mode: t
balanced-mode: t   global-hi-lock-mode: t   hi-lock-mode: t
c-subword-mode: t   show-paren-mode: t   recentf-mode: t
global-c-subword-mode: t   shell-dirtrack-mode: t   cua-mode: t
encoded-kbd-mode: t   tooltip-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 Recent input: i l a t i o n SPC e r r <tab>
<tab> <tab> SPC r e g  <tab> <return> <next> <prior> C-h v <up> <end>
- - a  <tab> <return> C-x o C-s e r r <up> C-s f a t a l SPC  e r r <up>
<C-home> 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-r C-r
<left> <left> <left> <down>  <S-home> <S-up> <S-home> C-c <timeout>
<down> C-x b  c C-g C-x b c o m p i l a t i o n C-s <return> <apps>  f
u n d <tab> <return> <up> <C-home> <C-end> C-r e  r o <up> <apps> r e
SPC b u <tab> <return> C-v <S-up>  <S-end> <S-left> <S-left> <S-left>
<S-left> <S-left>  <S-left> <S-left> <S-left> <S-left> <delete> <home>
<right> <right> <right> <right> <right> <right> <right>  <right>
<right> <left> <S-home> <S-right> <delete>  <right> <right> <right>
<right> <end> <left> <left>  <C-left> <C-left> <C-left> <C-left>
<C-left> <C-left>  <C-left> <C-right> <C-right> <C-right> <C-left>
<right>  <right> <right> <right> <right> <right> <right> <right>
<right> <left> <left> <right> <left> <left> <left>  <left> <left>
<left> <left> <left> <left> <left> <left>  <left> <left> <left> <left>
<left> <left> <right> \  \ ( ? : f a t a l SPC \ \ ) ? SPC <backspace>
<left>  <left> <left> <left> <left> <help-echo> <select-window>
<help-echo> <select-window> <help-echo> <select-window>  <help-echo>
<down-mouse-1> <mouse-1> <down-mouse-1>  <mouse-1> <select-window>
<help-echo> <select-window>  <down-mouse-1> <mouse-1> <end> <S-home>
C-c <timeout>  C-c C-q C-x o C-x b c o m p i l a t i o n . e l
<return>  <return> ( s e t f SPC <end> <S-up> <down> <up> <down>  C-x
o C-x b C-g C-x b c o m p i <return> C-x o <apps>  r e p o r t SPC e m
a c s SPC b <tab> <return> Recent messages: 200 matches (limit
reached) Mark set No matches [4 times] 1 match [3 times] No matches 1
match Show the value of this option. mouse-1: select (drag to resize),
mouse-2 = C-x 1, mouse-3 = C-x 0 [4 times] Quit Loading
emacsbug...done
------- End of forwarded message -------

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

* Re: Fwd: Compilation mode does not properly  handle MSFT
  2008-01-14  2:01 [jfinder@crypticstudios.com: Compilation mode does not properly handle MSFT] Richard Stallman
@ 2008-01-14 15:41 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-01-14 15:41 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

> Would someone please DTRT?

I installed the following patch,


        Stefan

--- compile.el.~1.450.~	2008-01-08 21:08:55.000000000 -0500
+++ compile.el	2008-01-14 10:39:20.000000000 -0500
@@ -272,8 +272,9 @@
      " in \\([^()\n ]+\\)(\\([0-9]+\\))$" 1 2)
 
     (msft
+     ;; AFAWK, The message may be a "warning", "error", or "fatal error".
      "^\\([0-9]+>\\)?\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)) \
-: \\(?:error\\|warnin\\(g\\)\\) C[0-9]+:" 2 3 nil (4))
+: \\(?:warnin\\(g\\)\\|[a-z ]+\\) C[0-9]+:" 2 3 nil (4))
 
     (oracle
      "^\\(?:Semantic error\\|Error\\|PCC-[0-9]+:\\).* line \\([0-9]+\\)\




> ------- Start of forwarded message -------
> From: Jared Finder <jfinder@crypticstudios.com>
> To: "'bug-gnu-emacs@gnu.org'" <bug-gnu-emacs@gnu.org>
> Date: Sat, 12 Jan 2008 10:59:09 -0800
> Thread-Topic: Compilation mode does not properly handle MSFT
> Thread-Index: AchVTTnSfqHb5oqhRdKawj1ehYccSA==
> Message-ID: <C73CE12E0E2E6D4AA8C97475050023A608C53BC798@proserpine.paragon.crypticstudios.com>
> Accept-Language: en-US
> Content-Language: en-US
> acceptlanguage: en-US
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Subject: Compilation mode does not properly handle MSFT

> Fatal compilation errors as reported by the Microsoft compiler are not
> properly recognized by compilation mode.  The regexp for Microsoft
> should have "\\(?:fatal )?" added before error, resulting in something
> l be something like:

> "^\\([0-9]+>\\)?\\(\\(?:[a-zA-Z]:\\)?[^:(       \n]+\\)(\\([0-9]+\\)) :\\(?:\\(?:fatal \\)?error\\|warnin\\(g\\)\\) C[0-9]+:"

>   -- MJF

> In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)  of 2007-06-02 on RELEASE
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> 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: Emacs-Lisp/lw Minor modes in effect:   global-reveal-mode:
> t   reveal-mode: t   eldoc-mode: t   global-balanced-mode: t
> balanced-mode: t   global-hi-lock-mode: t   hi-lock-mode: t
> c-subword-mode: t   show-paren-mode: t   recentf-mode: t
> global-c-subword-mode: t   shell-dirtrack-mode: t   cua-mode: t
> encoded-kbd-mode: t   tooltip-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 Recent input: i l a t i o n SPC e r r <tab>
> <tab> <tab> SPC r e g  <tab> <return> <next> <prior> C-h v <up> <end>
> - - a  <tab> <return> C-x o C-s e r r <up> C-s f a t a l SPC  e r r <up>
> <C-home> 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-r C-r
> <left> <left> <left> <down>  <S-home> <S-up> <S-home> C-c <timeout>
> <down> C-x b  c C-g C-x b c o m p i l a t i o n C-s <return> <apps>  f
> u n d <tab> <return> <up> <C-home> <C-end> C-r e  r o <up> <apps> r e
> SPC b u <tab> <return> C-v <S-up>  <S-end> <S-left> <S-left> <S-left>
> <S-left> <S-left>  <S-left> <S-left> <S-left> <S-left> <delete> <home>
> <right> <right> <right> <right> <right> <right> <right>  <right>
> <right> <left> <S-home> <S-right> <delete>  <right> <right> <right>
> <right> <end> <left> <left>  <C-left> <C-left> <C-left> <C-left>
> <C-left> <C-left>  <C-left> <C-right> <C-right> <C-right> <C-left>
> <right>  <right> <right> <right> <right> <right> <right> <right>
> <right> <left> <left> <right> <left> <left> <left>  <left> <left>
> <left> <left> <left> <left> <left> <left>  <left> <left> <left> <left>
> <left> <left> <right> \  \ ( ? : f a t a l SPC \ \ ) ? SPC <backspace>
> <left>  <left> <left> <left> <left> <help-echo> <select-window>
> <help-echo> <select-window> <help-echo> <select-window>  <help-echo>
> <down-mouse-1> <mouse-1> <down-mouse-1>  <mouse-1> <select-window>
> <help-echo> <select-window>  <down-mouse-1> <mouse-1> <end> <S-home>
> C-c <timeout>  C-c C-q C-x o C-x b c o m p i l a t i o n . e l
> <return>  <return> ( s e t f SPC <end> <S-up> <down> <up> <down>  C-x
> o C-x b C-g C-x b c o m p i <return> C-x o <apps>  r e p o r t SPC e m
> a c s SPC b <tab> <return> Recent messages: 200 matches (limit
> reached) Mark set No matches [4 times] 1 match [3 times] No matches 1
> match Show the value of this option. mouse-1: select (drag to resize),
> mouse-2 = C-x 1, mouse-3 = C-x 0 [4 times] Quit Loading
> emacsbug...done
> ------- End of forwarded message -------


> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel

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

end of thread, other threads:[~2008-01-14 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-14  2:01 [jfinder@crypticstudios.com: Compilation mode does not properly handle MSFT] Richard Stallman
2008-01-14 15:41 ` Fwd: Compilation mode does not properly handle MSFT Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.