[Top][All Lists]

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

compilation-finish-functions is not run as a hook

From: Lennart Borgman (gmail)
Subject: compilation-finish-functions is not run as a hook
Date: Thu, 10 May 2007 01:32:50 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070326 Thunderbird/ Mnenhy/

The variable compilation-finish-functions is said to be a hook. However using add-hook to make a local value results later in an error:

  (add-hook 'compilation-finish-functions 'my-fun nil t)

This gives the hook variables the value '(my-fun t). compilation-handle-exit tries to run t as a function then.

Should not run-hook-with-args be used there?

BTW the doc string for run-hook-with-args does not mention the special handling of t.

In GNU Emacs (i386-mingw-nt5.1.2600)
 of 2007-05-06

reply via email to

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