Menu

#1 Error messages no longer Xemacs-compliant

open
3
2006-05-23
2003-06-17
Keunwoo Lee
No

Gary's commit of 5/21 changes
org.multijava.util.compiler.TokenReference to produce error
messages in the following format:

File "Error.java", line 3, character 12 error: Variable "a" is
not defined in current context

This change makes mjc much less usable under the default
installation of XEmacs up to and including 21.4 (and
possibly later versions as well), which doesn't support this
alternative syntax for error messages.

I am attaching a patch that adds a command-line option to
force old-style formatting.

Discussion

  • Keunwoo Lee

    Keunwoo Lee - 2003-06-17

    patch adding command-line option for old-style messages

     
  • Gary T. Leavens

    Gary T. Leavens - 2003-06-17

    Logged In: YES
    user_id=633675

    It seems reasonable to have a command line option to
    generate a different format for error messages.

    Perhaps you can also add a .emacs file definition to do the
    right thing with the standard options also?

     
  • Gary T. Leavens

    Gary T. Leavens - 2003-06-17
    • milestone: 251539 --> 249591
    • priority: 5 --> 3
    • assigned_to: nobody --> klee
    • summary: error messages no longer emacs-compliant --> Error messages no longer Xemacs-compliant
     
  • Keunwoo Lee

    Keunwoo Lee - 2003-06-17

    Logged In: YES
    user_id=26937

    Here's a snippet of .emacs code that makes XEmacs recognize
    the new-style mjc error messages:

    (require 'compile)
    (set-variable 'compilation-error-regexp-alist-alist
    (cons
    '(all
    ("\\File \"\\(.*\\)\", line \\([0-9]+\\), character \\([0-9]+\\).*:"
    1 2 3))
    compilation-error-regexp-alist-alist))
    (compilation-build-compilation-error-regexp-alist)

    This still does not provide syntax highlighting of the compilation
    buffer, so I would still prefer the command-line option for
    old-style messages. You can probably make XEmacs do syntax
    highlighting too, but I haven't got the time to hack the elisp right
    now.

     
  • Keunwoo Lee

    Keunwoo Lee - 2003-06-17

    Logged In: YES
    user_id=26937

    Note: SourceForge "helpfully" word-wrapped my last comment.
    There should not be a newline in the string literal in the elisp
    code I posted.

     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-23

    Logged In: YES
    user_id=633675

    Are you still interested in making this patch? If not,
    you can close this, but if you are, change the code and
    commit it, please.

     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-23
    • milestone: 249591 -->
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-23
    • labels: --> mjc compiler
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.