Subject: Re: bug#36664: 27.0.50; definition of string-trim causes warning

From: Noam Postavsky <[email-masked]>
Date: Mon, 15 Jul 2019 11:26:29 -0400

Andreas Röhler <[email-masked]> writes:

>>>> When byte-compiling a file with def of trim-string inside, get a
>>>> warning: Lexical argument shadows the dynamic variable
>>>>      string

> Hmm, also can't reproduce with emacs -Q, only from my config - see
> attachment.
>
> Beside of this IMO the warning is reasonable - commonly used symbols
> should not appear as plain argument names.

I think the bug is somewhere in your config, there is something like

    (defvar string "foo")

Which makes 'string' into a global special variable.