all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: RE: bytecomp.el: issue warning when `mapcar' is called for effect
Date: Tue, 19 Jun 2007 09:59:51 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMAELMDCAA.drew.adams@oracle.com> (raw)
In-Reply-To: <86myyvdh8w.fsf@gmx.at>

> This makes the byte-compiler mention `mapc' and `dolist' where one of
> them is preferable over `mapcar'.
>
> +      "`mapcar' called for effect; use `mapc' or `dolist' instead"))

How about "consider using" instead of "use"? This is, after all, a warning,
not an error.

Some libraries aim for use with multiple Emacs versions, and some Emacs
versions don't have `mapc' or `dolist' (and a library might not have
required `cl' at compile time). When users see such warnings, they can freak
out, submit bug reports to the library maintainers, etc.

If the message length is a problem, drop "instead" -

 "`mapcar' called for effect; consider using `mapc' or `dolist'"
is not much longer than
 "`mapcar' called for effect; use `mapc' or `dolist' instead"

  reply	other threads:[~2007-06-19 16:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 16:46 bytecomp.el: issue warning when `mapcar' is called for effect Markus Triska
2007-06-19 16:59 ` Drew Adams [this message]
2007-06-20 13:28 ` Richard Stallman

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=EIENLHALHGIMHGDOLMIMAELMDCAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /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.