From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: phs Newsgroups: gmane.emacs.bugs Subject: bug#35710: 26.1; incomplete mapconcat description string Date: Mon, 13 May 2019 10:43:48 +0200 Organization: CNRS & ENS Paris Saclay Message-ID: Reply-To: phs@lsv.fr Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9875"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 To: 35710@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 13 11:13:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQ71E-0002Rx-0j for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2019 11:13:12 +0200 Original-Received: from localhost ([127.0.0.1]:53736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQ71C-0007sE-Uq for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2019 05:13:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQ6oa-0007SS-Gd for bug-gnu-emacs@gnu.org; Mon, 13 May 2019 05:00:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQ6oV-00042b-F6 for bug-gnu-emacs@gnu.org; Mon, 13 May 2019 05:00:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQ6oV-00041h-9k for bug-gnu-emacs@gnu.org; Mon, 13 May 2019 05:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hQ6oV-0005u2-0o for bug-gnu-emacs@gnu.org; Mon, 13 May 2019 05:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: phs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2019 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35710 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155773799422638 (code B ref -1); Mon, 13 May 2019 09:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 May 2019 08:59:54 +0000 Original-Received: from localhost ([127.0.0.1]:44060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQ6oM-0005t3-6Q for submit@debbugs.gnu.org; Mon, 13 May 2019 04:59:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQ6oK-0005sq-E9 for submit@debbugs.gnu.org; Mon, 13 May 2019 04:59:52 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQ6oE-0003g4-Pe for submit@debbugs.gnu.org; Mon, 13 May 2019 04:59:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQ6oC-0006PK-UG for bug-gnu-emacs@gnu.org; Mon, 13 May 2019 04:59:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQ6Yq-00049s-IL for bug-gnu-emacs@gnu.org; Mon, 13 May 2019 04:43:53 -0400 Original-Received: from olive.lsv.fr ([138.231.81.248]:45256 helo=olive.lsv.ens-cachan.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQ6Yq-00049F-8m for bug-gnu-emacs@gnu.org; Mon, 13 May 2019 04:43:52 -0400 Original-Received: from brol.lsv.fr (brol.lsv.fr [138.231.81.57]) by olive.lsv.ens-cachan.fr (Postfix) with ESMTP id ADD204C01B7 for ; Mon, 13 May 2019 10:43:50 +0200 (CEST) Openpgp: preference=signencrypt Autocrypt: addr=phs@lsv.fr; prefer-encrypt=mutual; keydata= mQINBFBXOYABEADaoNODK+BwbRfymBJhplueXfR527vDCce7qWC8foYu/tSEjRy5Nplpfetm 1foD5I7sM/DwDIKXUg2jP4z8LTMZJovdHGFV4SXAAx4aeZF3awHPaaTPwL8SVy5mraAB1oa2 cPu9C1n0M+l9Hm2x2RosglOziXVDSXLXj0+OSglmbsFLF0t3iHYCXN2PrXUFS2ZJFGDHU5t2 6Pw92TmvJ93OvoSCueRXwx4YKC/ipx+66tmWyHXtYdgeVieSK2794SzDbEp+sdzHICK/uQPw eFbw5lSaP9LczSN9cwFtWea+ZACkfWLvaHDrR4nabS2xDhf3uo2DiHs80ZYcpjzE2915D+QE zSsKGJB4vdiMmRDkzqU8Fbc0rZmMSl0360lJlsfyEo94/thxvENBeWb2ysLgmPl1k9YCmOlN 4FoIoM8KT+jwK2XRiJvfCc1I4f+ei8okATEesI3V8jH+adBtwof0C3RH8ITUGBA04bOjk+RV KU2yRhrWh4na4WDJlFueOgsBizh9t8wv6c9GoZ3B+144rR7lyVXB1SAE0a+e+sE89VH8bw/6 su1RxUfFHpo3vYQtCdDMviC8L+BTKje9Sc3QmAy8E98/qlAQQRuI6otGNp8zx0uOkremy+d1 7st8iEKI1Z//OZe8XSaMoWEdCVWNNTGp8Cr5QlLBeKK1VQgoQQARAQABtCxQaGlsaXBwZSBT Y2hub2ViZWxlbiA8cGhzQGxzdi5lbnMtY2FjaGFuLmZyPokCPwQTAQIAKQUCUFc5gAIbAwUJ HDIEgAcLCQgHAwIBBhUIAgkKC Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159169 Archived-At: In my v26.1, the description string for mapconcat is mapconcat is a built-in function in =E2=80=98src/fns.c=E2=80=99. (mapconcat FUNCTION SEQUENCE SEPARATOR) Apply FUNCTION to each element of SEQUENCE, and concat the results as strings. In between each pair of results, stick in SEPARATOR. Thus, " " as SEPARATOR results in spaces between the values returned by FUNCTION. SEQUENCE may be a list, a vector, a bool-vector, or a string. The description does not say what is accepted for SEPARATOR, it only gives an example. By playing around a bit, it turns out that SEPARATOR can be a string (obviously), a list of chars, a vector of chars, the empty bool-vector but not any other bool-vector. It is not clear why these possibilities are offered while some are not (e.g., why not make SEPARATOR optional?). This is one more reason to make the description string explicit about what is allowed. --=20 Philippe SCHNOEBELEN, =09 "Algebraic symbols are used when you do not know what you are talking abo= ut"