From: Drew Adams <drew.adams@oracle.com>
To: tsugutomo.enami@jp.sony.com, Christoph <cschol2112@gmail.com>
Cc: 18253@debbugs.gnu.org
Subject: bug#18253: 24.4.50; doc string of `remq': correct it per the doc of `remove'
Date: Mon, 25 Aug 2014 15:37:27 -0700 (PDT) [thread overview]
Message-ID: <aad9e801-fe57-4690-a5f2-c034f02116c1@default> (raw)
In-Reply-To: <tkrmwasnrpx.fsf@sigxcpu.sm.sony.co.jp>
> > > Please explicitly say that `remq' returns a *copy* of LIST, just as we
> > > do in the doc string of `remove'. It does *not* "Return LIST with all
> > > occurrences of ELT removed."
>
> IMHO, describing remq to return a copy of list is also confusing. Since
> it does not return a copy on some cases.
Good point. Perhaps it should say that it returns either a copy or a
tail of the list. It could say something like this, for example:
If the only elements in LIST that are `eq' to ELT occur before any
other elements then a copy is not made: the tail after the last such
occurrence is returned.
Whatever language we choose, it should be precise wrt what the behavior
is.
next prev parent reply other threads:[~2014-08-25 22:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 14:59 bug#18253: 24.4.50; doc string of `remq': correct it per the doc of `remove' Drew Adams
2014-08-25 3:19 ` Christoph
2014-08-25 22:12 ` tsugutomo.enami
2014-08-25 22:37 ` Drew Adams [this message]
2014-08-26 18:34 ` Stefan Monnier
2014-08-26 18:57 ` Drew Adams
2014-08-27 3:18 ` Stefan Monnier
2014-08-27 4:55 ` Drew Adams
2014-08-27 5:31 ` tsugutomo.enami
2014-08-27 14:06 ` Drew Adams
2014-08-27 23:49 ` tsugutomo.enami
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aad9e801-fe57-4690-a5f2-c034f02116c1@default \
--to=drew.adams@oracle.com \
--cc=18253@debbugs.gnu.org \
--cc=cschol2112@gmail.com \
--cc=tsugutomo.enami@jp.sony.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).