|
From: | Philipp Stephani |
Subject: | Re: add-hook and defvar |
Date: | Thu, 05 Mar 2015 20:28:08 +0000 |
> Is this something the byte compiler could warn about? At least normal hooks
> by convention end in "-hook", so a warning could be emitted every time such
> a variable is defined that doesn't have nil as default.
Yes, we could do that. Patch welcome,
0001-Warn-if-a-hook-variable-is-given-a-non-nil-init-form.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |