emacs-devel
[Top][All Lists]
Advanced

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

Re: Fwd: Compilation mode does not properly handle MSFT


From: Stefan Monnier
Subject: Re: Fwd: Compilation mode does not properly handle MSFT
Date: Mon, 14 Jan 2008 10:41:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> 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 <address@hidden>
> To: "'address@hidden'" <address@hidden>
> Date: Sat, 12 Jan 2008 10:59:09 -0800
> Thread-Topic: Compilation mode does not properly handle MSFT
> Thread-Index: AchVTTnSfqHb5oqhRdKawj1ehYccSA==
> Message-ID: <address@hidden>
> 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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-devel




reply via email to

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