[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Byte-compiler warnings
From: |
Marcin Borkowski |
Subject: |
Byte-compiler warnings |
Date: |
Wed, 24 Jun 2015 11:29:27 +0200 |
Hi all,
I remember someone somewhere writing that Emacs byte-compiler is useful
even if you don't want the compiled code, since it issues various
warnings about bad Elisp constructs. I didn't find much about it in the
manual, which referred to the docstring of the variable
`byte-compile-warnings'. That docstring gave a list of symbols denoting
various categories of warnings; the most interesting were probably
`mapcar' and `suspicious'. Grepping the `bytecomp.el' source (GNU Emacs
25.0.50.1) seems to imply that currently the only case where 'suspicious
is used is a combination of `save-excursion' and `set-buffer'. Am
I right?
Are there other tools that assist in writing good Elisp code? I know
about checkdoc, is there anything else?
TIA,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
- Byte-compiler warnings,
Marcin Borkowski <=