emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Handle output from Emacs byte-compilation properly


From: Jostein Kjønigsen
Subject: Re: [PATCH] Handle output from Emacs byte-compilation properly
Date: Tue, 15 Sep 2015 11:57:34 +0200

Trying to byte-compile csharp-mode I get a lot of different headers
which are
caught by the guile-file compilation-error-regexp-alist-alist entry.
(See attached
file)

It seems obvious to me now that I cannot patch every possible scenario
which
may incorrectly get picked up by guile-file as an error.

The fix for this problem must come from making guile-file more selective
and specific. Right now it's too wide and causing issues for other
languages.

Jan:
Would it be possible to fix that regexp to be more constrained? Maybe
only
trigger for certain extensions? I'm not deeply into Guile or Scheme, so
I'm
not which extensions are common and in use.

Would constraining it to *.scm be sufficient?

--
Jostein Kjønigsen
address@hidden / address@hidden


On Mon, Sep 14, 2015, at 10:24 PM, Jostein Kjønigsen wrote:
> The previous patch is not  a good one and there's an error in it. Please
> disregard
> the previous patch and consider the attached patch instead.
> 
> You'll have to take my word for it when I say I -did- test it before
> submitting. :)
> 
> --
> Jostein Kjønigsen
> address@hidden / address@hidden
> 
> 
> On Mon, Sep 14, 2015, at 10:14 PM, Jostein Kjønigsen wrote:
>> It's common for module-developers to run Emacs byte-compilation in
>> separate build-scripts.
>> 
>> When invoking byte-compile on Emacs-lisp files you often get the
>> following headers:
>> 
>> - In toplevel form:
>> - In end of data:
>> 
>> When these errors show up in the output of a build-script initiated
>> through M-x compile and show up in a compilation-mode buffer, these
>> lines gets treated as guile-errors for files which doesn't exist.
>> 
>> This is due to the following regexp, which is quite frankly extremely
>> wide:
>> 
>>     (guile-file "^In \\(.+\\):\n" 1)
>> 
>> This breaks prev-error and next-error based navigation because the
>> files "toplevel form" and "end of data" doesn't exist.
>> 
>> This patch ensures those lines are treated as information only before
>> getting to the guile-file regexp.
>> 
>> --
>> Jostein Kjønigsen
>> address@hidden / address@hidden
>> Email had 1 attachment:
> 
> 
>> * compilation-mode-emacs-lisp.patch
>>   2k (text/x-patch)
> Email had 1 attachment:


> * compilation-mode-emacs-lisp.patch
>   2k (text/x-patch)

Attachment: csharp-mode-compilation-output.txt
Description: Text document


reply via email to

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