From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: completing-read a list of keywords Date: Wed, 15 Apr 2020 20:41:39 +0200 Message-ID: <87d088pp5o.fsf@fastmail.fm> References: <935c7800-bdfa-4e9e-b903-2ce6f849c3cb@grinta.net> <39c30037-96dc-808e-2c59-6b0cffb4e652@grinta.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="65896"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.10; emacs 26.3 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 15 20:42:18 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 1jOmzJ-000H3i-6y for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 20:42:17 +0200 Original-Received: from localhost ([::1]:53892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmzI-0005jP-9W for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 14:42:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52479) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmym-0005Iy-G8 for emacs-devel@gnu.org; Wed, 15 Apr 2020 14:41:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOmyl-0001Fu-KX for emacs-devel@gnu.org; Wed, 15 Apr 2020 14:41:44 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37377) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jOmyl-0001Fj-E6 for emacs-devel@gnu.org; Wed, 15 Apr 2020 14:41:43 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 31A775C0047 for ; Wed, 15 Apr 2020 14:41:43 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 15 Apr 2020 14:41:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=Y4GD5MrvedN7e+53F7MpAM1tly JV9xa1kI4U7P2M0Qc=; b=kMS2Hmdo2FU2muv77gnSmc7WbmmhhWHK/MdBQwMQ2d 2bUcyyPDFzAKEJ4198wKVsGbnFF44ZWgE0RwO4WH0YJ1wsgaCABAWtt3tc8f4Oxx lHfjeV4wn9WZUA30GYEXR/Y4Lg1GbJyMESDYKywAVVGWY/+4atLCqEb2tZCuaYcy DAvWDOyoLgn3jFZFIZvcnyndodGFu+AN+n3XzUXHiFROTsVzuBbTnh91ZMfjH0s5 +VihOMaJebq+vGFd3pJukPu/tM/yzXg9qzcv3RPE0fWg9WQkMSQgnCTMBrcnj3Zt RosurEi3/aIUxb7mctFpYKrY0dIoIqVLJnqslw+EhzpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Y4GD5M rvedN7e+53F7MpAM1tlyJV9xa1kI4U7P2M0Qc=; b=Yd99IEMvWWRH1RjjVHIwWD vcgtb1rNp6VmP6P1jxF6wLCXj/VrJKLscf9pSlOe7AUUPe/e0epMqv92TJima8Nq ChP+lfN4aF/KRTRDFIG81Snb4OQXd/LRAua1Q+I46GNi+Yjd/QX+dE1GJBdhsFxF DAf1gUBUO4zrFwHfL8ZI5v9yRNa+SbzPCTEFQ4etHDtLPfKjpKeuog74/m5okK5g W9PCGg93iRmz8y6Ts2PTOEjW2INR/YKqOWHVNWslL0PfvbaRKJnXQ8UOr0Gfq/B3 pdxa8OfmHbOGFr39GZWrJiaSlRgk58yayA6ufB5gbkMm9IdPlqNhiodwzSOGwSVQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeefgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffujgffkfggtgesthdtre dttdertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghm vghrshesfhgrshhtmhgrihhlrdhfmheqnecukfhppeelhedrledtrddvtddurdeivdenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshht khhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ac93e.dynamic.kabel-deutschland.de [95.90.201.62]) by mail.messagingengine.com (Postfix) with ESMTPA id 9E607328005A for ; Wed, 15 Apr 2020 14:41:42 -0400 (EDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.27 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:247048 Archived-At: On Wed, Apr 15 2020, Noam Postavsky wrote: > On Wed, 15 Apr 2020 at 14:21, Daniele Nicolodi > wrote: > >> 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? > > (define-key crm-local-completion-map (kbd "SPC") > #'self-insert-command) Or if you don't want to stomp on anyone's keybindings: ``` (let ((crm-local-must-match-map (make-composed-keymap '(keymap (32)) crm-local-must-match-map))) (completing-read-multiple ...) ... ) ``` -- Joost Kremers Life has its moments