Ack. Modified patch attached.
Btw, do I still need =
to write explicit changelog entries or is that already done automatically?<=
br>
Artur Malabarba <
bruce.connor.am@gmail.com> schrieb am Do., 5. M=
=C3=A4rz 2015 um 22:45=C2=A0Uhr:
This sho=
uld probably do the same if the variable name ends with
"-functions" (since IIUC that's the correct way of naming a h=
ook where
the functions should take arguments).
2015-03-05 17:28 GMT-03:00 Philipp Stephani <p.stephani2@gmail.com>:
>
>
> Stefan Monnier <monnier@iro.umontreal.ca> schrieb am Mi., 25. Feb. 2015 =
um
> 03:56 Uhr:
>
>> > Is this something the byte compiler could warn about? At leas=
t 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.=C2=A0 Patch welcome,
>>
>>
>
> Added a patch.
--001a113464ac0560200510a3601c--
--001a113464ac0560260510a3601e
Content-Type: text/plain; charset=US-ASCII;
name="0001-Warn-if-a-hook-variable-is-given-a-non-nil-init-form.txt"
Content-Disposition: attachment;
filename="0001-Warn-if-a-hook-variable-is-given-a-non-nil-init-form.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: 14bf07acd3ff5e451d01
RnJvbSBlYTczNjFjMTBjNGRlYjEzYzI1ZmVmZWM3MDVhMDU0MDM1MDZiODYwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXBwIFN0ZXBoYW5pIDxwaHN0QGdvb2dsZS5jb20+CkRh
dGU6IFRodSwgNSBNYXIgMjAxNSAyMTowNjowNyArMDEwMApTdWJqZWN0OiBbUEFUQ0hdIFdhcm4g
aWYgYSBob29rIHZhcmlhYmxlIGlzIGdpdmVuIGEgbm9uLW5pbCBpbml0IGZvcm0KCi0tLQogbGlz
cC9lbWFjcy1saXNwL2J5dGVjb21wLmVsIHwgNCArKysrCiAxIGZpbGUgY2hhbmdlZCwgNCBpbnNl
cnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvbGlzcC9lbWFjcy1saX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