From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Daniele Nicolodi Newsgroups: gmane.emacs.devel Subject: Re: completing-read a list of keywords Date: Wed, 15 Apr 2020 12:21:17 -0600 Message-ID: <39c30037-96dc-808e-2c59-6b0cffb4e652@grinta.net> References: <935c7800-bdfa-4e9e-b903-2ce6f849c3cb@grinta.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112557"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 15 20:22:53 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOmgV-000TAK-4e for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 20:22:51 +0200 Original-Received: from localhost ([::1]:53708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmgU-0006IW-6O for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 14:22:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50277) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmfA-00054y-78 for emacs-devel@gnu.org; Wed, 15 Apr 2020 14:21:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOmf5-0003Ib-TU for emacs-devel@gnu.org; Wed, 15 Apr 2020 14:21:27 -0400 Original-Received: from zed.grinta.net ([109.74.203.128]:57404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOmf5-0003Ef-AM for emacs-devel@gnu.org; Wed, 15 Apr 2020 14:21:23 -0400 Original-Received: from 688dnmac.campus.nist.gov (unknown [132.163.220.171]) (Authenticated sender: daniele) by zed.grinta.net (Postfix) with ESMTPSA id F11A2E0D9E; Wed, 15 Apr 2020 18:21:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=mail; t=1586974880; bh=CQiALx14QbIGgjMnsTpOwG0CwgC+/Cq2yiktUCM2smA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=iRjtDa+VET8lJe0Ivneufx9NVrEfHY7/DdYuz7Nji3yc/rWrLmAPOAYgyICRX+KX/ cPlWexe5dai3y7kRwQxgJAIzwuTeTu7TIys3jNCoc210hDzhCn16lGreez5aJWR3a1 BNUODgta4LN3ptRxkiPunKrOEFPoz4cC8kyMSr00= In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 109.74.203.128 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247046 Archived-At: On 15-04-2020 11:33, Noam Postavsky wrote: > On Wed, 15 Apr 2020 at 13:30, Daniele Nicolodi wrote: > >> I am trying to come up with a solution to be able to use completing-read >> to prompt the user for a comma (or space) separated list of words. >> Unfortunately the completion framework is still rather impenetrable to >> me. Does anyone have pointers to relevant examples and documentation? > > I don't think completing-read supports this use-case. You might want > to look at completing-read-multiple. Thanks Noam! I didn't know about completing-read-multiple. It comes very close to do what I want. However, I am unable to make it work for elements separated by ", " as SPC is mapped to the complete action. Is there a way to customize this behavior? Thank you. Cheers, Dan