help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Replace filename from compilation buffer errors


From: Robert Pluim
Subject: Re: Replace filename from compilation buffer errors
Date: Fri, 29 Nov 2024 12:14:54 +0100

>>>>> On Fri, 29 Nov 2024 12:01:51 +0100, Filippo Argiolas 
>>>>> <filippo.argiolas@gmail.com> said:

    Filippo> Hi I am working on a project that builds in a temporary workspace.
    Filippo> I'd like to take advantage of Emacs compilation mode, especially 
jumping
    Filippo> from an error to the locus inside the file.

    Filippo> Problem is it jumps in the file inside the temp workspace instead 
of the
    Filippo> one in the source tree.

    Filippo> Is there a way to achieve a simple string substitution in the file 
name
    Filippo> before jumping while keeping existing compilation regexps?

The following perhaps:

    compilation-transform-file-match-alist is a variable defined in 
`compile.el'.

    Its value is (("/bin/[a-z]*sh\\'" nil))

    Alist of regexp/replacements to alter file names in compilation errors.
    If the replacement is nil, the file will not be considered an
    error after all.  If not nil, it should be a regexp replacement
    string.

Robert
-- 



reply via email to

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