unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: Fwd: Compilation mode does not properly 	handle MSFT
Date: Mon, 14 Jan 2008 10:41:55 -0500	[thread overview]
Message-ID: <jwv63xwe7o0.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1JEEdd-0005lV-2v@fencepost.gnu.org> (Richard Stallman's message of "Sun, 13 Jan 2008 21:01:21 -0500")

> 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

      reply	other threads:[~2008-01-14 15:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14  2:01 [jfinder@crypticstudios.com: Compilation mode does not properly handle MSFT] Richard Stallman
2008-01-14 15:41 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv63xwe7o0.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).