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 13:13:41 -0600 Message-ID: <4b815e3e-0ff5-66f8-b002-96e66c471a5a@grinta.net> References: <935c7800-bdfa-4e9e-b903-2ce6f849c3cb@grinta.net> <39c30037-96dc-808e-2c59-6b0cffb4e652@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="77471"; 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 21:14:23 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 1jOnUN-000K3n-DT for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 21:14:23 +0200 Original-Received: from localhost ([::1]:54236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOnUM-0002D6-GJ for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 15:14:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56541) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOnTm-0001mm-F5 for emacs-devel@gnu.org; Wed, 15 Apr 2020 15:13:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOnTl-0001MP-7v for emacs-devel@gnu.org; Wed, 15 Apr 2020 15:13:46 -0400 Original-Received: from zed.grinta.net ([109.74.203.128]:57560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOnTk-0001Lu-Ms for emacs-devel@gnu.org; Wed, 15 Apr 2020 15:13:45 -0400 Original-Received: from 688dnmac.campus.nist.gov (unknown [132.163.220.171]) (Authenticated sender: daniele) by zed.grinta.net (Postfix) with ESMTPSA id C7FD1E1050; Wed, 15 Apr 2020 19:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=mail; t=1586978023; bh=IgGoRHEFwmWERsJjw++hZVtefeApYhSlGjVq4hpX21M=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aQucXbzirMCT76WWvLbEGOzrOgpSqpuNOoZT91ntoEdY7JKtT+f67jnDl+SvvqZr5 PX4F0M7fHdLX6pl9Yd+xFHNprnbbs0iI687cfKTm6WqOWTJoOeLW5S4GGeAY/PaYPz c/8l++NGJLi0ag0EHMIBRYN2SGgOz4zmbxlWeG4g= 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:247051 Archived-At: On 15-04-2020 12:26, 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) > > Seems to do the trick. I will continue to display crass ignorance: wouldn't that change the keymap for all commands that uses completing-read-multiple and not only for the one I am implementing? Is there a convenient way to modify the keymap only around my invocation of completing-read-multiple? /me goes to read some documentation Thank you! Cheers, Dan