emacs-devel
[Top][All Lists]
Advanced

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

Re: add-hook and defvar


From: Philipp Stephani
Subject: Re: add-hook and defvar
Date: Thu, 05 Mar 2015 20:28:08 +0000



Stefan Monnier <address@hidden> schrieb am Mi., 25. Feb. 2015 um 03:56 Uhr:
> 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,



Added a patch. 

Attachment: 0001-Warn-if-a-hook-variable-is-given-a-non-nil-init-form.txt
Description: Text document


reply via email to

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