GNU bug report logs - #3418
Issue with compile.el and compilation-parse-errors-filename-function

Previous Next

Package: emacs;

Reported by: Gary Oberbrunner <garyo <at> genarts.com>

Date: Fri, 29 May 2009 14:55:06 UTC

Severity: normal

Full log


View this message in rfc822 format

From: npostavs <at> users.sourceforge.net
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: ahyatt <at> gmail.com, 3418 <at> debbugs.gnu.org, garyo <at> genarts.com
Subject: bug#3418: Issue with compile.el and compilation-parse-errors-filename-function
Date: Sat, 12 Aug 2017 11:42:05 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> We could do something like
>> 
>>     (condition-case err
>>         (funcall compilation-parse-errors-filename-function filename spec-dir)
>>       (wrong-number-of-arguments
>>        ;; Try again with single arg for backwards compatibility.
>>        (funcall compilation-parse-errors-filename-function filename)))
>
> Or use func-arity?

I think func-arity could fail in case the function is advised or created
with `apply-partially'.  On the other hand the condition-case trick can
cause problems if there is an unrelated wrong arguments error inside the
function (perhaps this can be migitated by checking the error
information).  Doesn't really matter too much either way I guess, it's
all minor corner cases.





This bug report was last modified 7 years and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.