emacs-devel
[Top][All Lists]
Advanced

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

Re: compile.el error properties: buffer as filename not working


From: Stefan Monnier
Subject: Re: compile.el error properties: buffer as filename not working
Date: Sat, 12 Feb 2022 17:42:15 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> 1. In `compilation-error-properties’,
>    `compilation-transform-file-match-alist’ is matched against a nil
>    filename, since the definition of that filename looks like (note
>    the bufferp):
>
> (let ((file-name
>              (and (consp file)
>                   (not (bufferp (car file)))
>                   (if (cdr file)
>                       (expand-file-name (car file) (cdr file))
>                     (car file)))))
>
> This seems to have been fixed using a when-let in the Emacs 28 branch 
> (unconfirmed).

> 2. `compilation-get-file-structure’ is called with the file list, but
>    this function does not expect a (buffer), and calls (e.g.)
>    file-name-absolute-p(#<buffer boo.py>), resulting in an error.

Any chance you can provide a recipe or a backtrace?
Also it might be useful to provide some context, such as which package
uses this ability to return a buffer.


        Stefan




reply via email to

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