all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gary Oberbrunner <garyo@genarts.com>
To: npostavs@users.sourceforge.net
Cc: 3418@debbugs.gnu.org, Andrew Hyatt <ahyatt@gmail.com>
Subject: bug#3418: Issue with compile.el and compilation-parse-errors-filename-function
Date: Thu, 10 Aug 2017 21:04:47 -0400	[thread overview]
Message-ID: <CAC9WR4rVMceVnUNZSaDRpj0w6kjQJiD1FVDC+=XoWyZb2S=5bg@mail.gmail.com> (raw)
In-Reply-To: <878tir2ai2.fsf@users.sourceforge.net>

[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

This sounds perfect to me.

On Thu, Aug 10, 2017 at 8:50 PM, <npostavs@users.sourceforge.net> wrote:

> Gary Oberbrunner <garyo@genarts.com> writes:
>
> > If a user (such as myself) has an implementation of this function in his
> .emacs today, like so:
> >
> > (defun process-error-filename (filename)
> >   ;;; do stuff with filename
> >   filename)
> > (setq compilation-parse-errors-filename-function
> 'process-error-filename)
> >
> > and we add a new argument that gets passed to that function, it'll throw
> an error. *Users* will have to add
> >   &optional spec-dir
> > to their implementations of it to avoid the error.
>
> 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)))
>



-- 
Gary Oberbrunner *--* CTO *--* Boris FX

[-- Attachment #2: Type: text/html, Size: 1633 bytes --]

  reply	other threads:[~2017-08-11  1:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 14:46 bug#3418: Issue with compile.el and compilation-parse-errors-filename-function Gary Oberbrunner
2016-01-26  5:21 ` Andrew Hyatt
2016-01-26 14:42   ` Eli Zaretskii
2016-01-26 15:15     ` Gary Oberbrunner
2016-01-26 16:08       ` Eli Zaretskii
2016-01-26 16:19         ` Gary Oberbrunner
2017-08-11  0:50           ` npostavs
2017-08-11  1:04             ` Gary Oberbrunner [this message]
2017-08-11  6:34             ` Eli Zaretskii
2017-08-12 15:42               ` npostavs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC9WR4rVMceVnUNZSaDRpj0w6kjQJiD1FVDC+=XoWyZb2S=5bg@mail.gmail.com' \
    --to=garyo@genarts.com \
    --cc=3418@debbugs.gnu.org \
    --cc=ahyatt@gmail.com \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.