help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Screenshots, frame shots straight from Emacs


From: Stefan Monnier
Subject: Re: Screenshots, frame shots straight from Emacs
Date: Sun, 01 Aug 2021 10:19:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Tomas Hlavaty [2021-08-01 01:31:30] wrote:
> On Tue 20 Jul 2021 at 17:48, Stefan Monnier via Users list for the GNU Emacs
> text editor <help-gnu-emacs@gnu.org> wrote:
>> But it does require code changes (mostly adding `cl-` prefixes).
>
> is there a way to get a list of those cases in a compilation unit (el
> file), e.g. byte-compilation warnings which i could fix after switching
> from require 'cl to require 'cl-lib?

The byte-compiler should indeed warn you about functions "not known to
be defined", listing things like `case`, `incf`, `first`, `loop`, ...
Tho sometimes instead you'll get a compilation error because the code
uses a macro whose arguments don't have a valid shape when interpreted
as expressions (as in `(destructuring-bind (a . b) foo bar)`).
Also sometimes you'll get warnings about functions "not known to be
defined" which are indeed not functions (e.g. with `(case foo (:plop
bar))` which will complain that `:plop` is not a known function) or
you'll get warnings about unknown variables like `return` or `when`
which are really keywords of the `loop` macro.


        Stefan




reply via email to

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