Subject: Re: bug#23933: 25.1.50; Run a buffer-local hook with mapc

From: Eli Zaretskii <[email-masked]>
Date: Sun, 10 Jul 2016 17:44:00 +0300

> From: Tino Calancha <[email-masked]>
> Date: Sun, 10 Jul 2016 19:18:33 +0900 (JST)
> Cc: [email-masked]
> 
> --- a/lisp/vc/ediff-util.el
> +++ b/lisp/vc/ediff-util.el
> @@ -2522,7 +2522,8 @@ ediff-really-quit
>   			    (frame-selected-window warp-frame))
>   			  2 1))
> 
> -  (mapc #'funcall after-quit-hook-internal)
> +  ;; after-quit-hook-internal is buffer-local; see 
> `ediff-filegroup-action'.
> +  (mapc (lambda (f) (or (eq f t) (funcall f))) after-quit-hook-internal)
>     ))

Thanks, but why do we use mapc to run hooks?  We used to have
run-hooks there.

Stefan, why did you make that change?  The log message says just "use
lexical-binding"; is something wrong with run-hooks and
lexical-binding living together?