all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 36664@debbugs.gnu.org
Subject: bug#36664: 27.0.50; definition of string-trim causes warning
Date: Mon, 15 Jul 2019 11:26:29 -0400	[thread overview]
Message-ID: <85muhfl3oa.fsf@gmail.com> (raw)
In-Reply-To: <cfd04dd2-e93c-c73b-3f6b-80a515095256@easy-emacs.de> ("Andreas \=\?iso-8859-1\?Q\?R\=F6hler\=22's\?\= message of "Mon, 15 Jul 2019 16:33:05 +0200")

Andreas Röhler <andreas.roehler@easy-emacs.de> 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.






  reply	other threads:[~2019-07-15 15:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-15 12:20 bug#36664: 27.0.50; definition of string-trim causes warning Andreas Röhler
2019-07-15 12:24 ` Lars Ingebrigtsen
2019-07-15 14:24   ` Andreas Röhler
2019-07-15 14:33     ` Andreas Röhler
2019-07-15 15:26       ` Noam Postavsky [this message]
2019-07-15 15:16     ` Lars Ingebrigtsen
2019-07-15 15:18     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85muhfl3oa.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=36664@debbugs.gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.