From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Select completions from the minibuffer Date: Mon, 14 Mar 2022 23:28:24 +0100 Message-ID: <20220314222824.ikkctks46fdjimkb@Ergus> References: <87v8wl35wg.fsf@gnus.org> <86k0d06dik.fsf@mail.linkov.net> <87ee3714li.fsf@gnus.org> <86r1773sb4.fsf@mail.linkov.net> <87pmmquew4.fsf@gnus.org> <86ee357wob.fsf@mail.linkov.net> <20220314090826.gyc42227jpvh4efa@Ergus> <86bky8l82c.fsf@mail.linkov.net> <20220314194643.cuhh73gx7iqhsvmp@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37098"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , Lars Ingebrigtsen , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 14 23:31:15 2022 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 1nTtDf-0009WK-EO for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Mar 2022 23:31:15 +0100 Original-Received: from localhost ([::1]:56188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTtDe-0006cy-DR for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Mar 2022 18:31:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTtBi-0004y1-Cc for emacs-devel@gnu.org; Mon, 14 Mar 2022 18:29:14 -0400 Original-Received: from sonic302-3.consmr.mail.bf2.yahoo.com ([74.6.135.42]:33339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTtBf-0007nD-9N for emacs-devel@gnu.org; Mon, 14 Mar 2022 18:29:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1647296948; bh=yPSF1BJIYmeOrLQDvmeU+m5Pkr3lEqmNawGrIkV8Ysw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=RjY+c8u06PdhtvV8yxu0FjyVg3052UpcC6aNbZp5gqE9nqOAz/CPz2aOt0Dvs7MB/jWgpKXunxWU0CA6Wuarc6T8eepVvZ+wArGGyO92xwsq7yTlUTZR9UBOfwdav9DYtptc3l9y1KXx4cnzyyFwLo/tblPRldfJo0MvHHF8SJAv+IA3DDEV/LVuwpoCJmO9OzaNAHGaKJq4xgSorX5rBwBLeNtMKxi0eCXXfAZktRet3BEnGVjUQZZ8JSg9xlLD5ZU8r8tbsM9rj61CLG2iCG/KeWOukrOLLmXXnmF8t6OSDUNEH3kEYkKZU32R1aKtOWjzSXgHHNxxDCs7EQsPZw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1647296948; bh=tt2WqxJQMC5DeNBlF0Ni0fouk2lY1tUV8BeoDSxMK9K=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=e9nlnEKy45DKZYBCy+TOLVtiELhZV0lWImlbC3u7un2sr400x5GKkUskgetjE4ySSFeObJCCPcScBhPE0Ve5jigB9JFETy91V6c38n9YMXhWL0YknOI6xs7arH5/JZXHV0zJLLcXVIahphoy+s3srkXrejigxP1v6e2CoDU8CTFF96K8xQqVB8M1pm7k4xdNIs/NBYFcQqBs6ZuEENF9Bq1bhhUKVWiPlFOsJI6IGK/biEw1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Mar 2022 22:29:08 +0000 Original-Received: by kubenode500.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID c23b503d8a9013bca8c7631961b549ed; Mon, 14 Mar 2022 22:29:04 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.19878 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.42; envelope-from=spacibba@aol.com; helo=sonic302-3.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:287169 Archived-At: On Mon, Mar 14, 2022 at 04:58:27PM -0400, Stefan Monnier wrote: >> Currently in my code only the "symbol" alternative is supported. Adding >> string is simple to implement, but I suppose there is some API I am not >> aware of to support the other cases and I don't want to reinvent the >> wheel. > >There's no real API for it, AFAIK. Just put that value on the >`face` property and that's that. > > > Stefan > > Hi Stefan: I tried some of those approached and that didn't work for me... I'm pretty sure I did something wrong, but any way I don't have plenty time to do that now... Do we have at least some function to validate the value? I mean like facep but that checks it is a valid face name, a correct plist or a cons with a valid car? How the other functions around validate that the values received are valid??