I want to modify csharp-mode.el so that it includes the appropriate error regex’s (regexi?) for the .NET csc.exe compiler.
How should a well-behaved progmode do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A well-behaved Emacs user should probably add the regexp to
compilation-error-regexp-alist-alistand provide the patch to Emacs so it’ll get used by all in subsequent releases.The variable defined in
compile.eland can be found viaI don’t think it makes sense for the csharp-mode major mode change the regexp. If anything, it should set the local value of
compilation-error-regexp-alistto contain the new symbol you added in the...-alist-alistvariable.That said, it could modify the
...-alist-alistvariable by just checking to see if the symbolc#(or whatever you add) is a part of the list already, and add it if not. Note: thecompilation-error-regexp-alistis defined apriori, so you’ll want to double check that variable’s contents to ensure it also contains thec#symbol.