From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New consult-denote package Date: Thu, 09 May 2024 08:20:50 +0000 Message-ID: <87cypvz999.fsf@posteo.net> References: <871q6cwnb5.fsf@protesilaos.com> <87h6f8xlu0.fsf@posteo.net> <87ttj7skhf.fsf@protesilaos.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27250"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Protesilaos Stavrou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 09 10:21:48 2024 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 1s4z2A-0006or-0o for ged-emacs-devel@m.gmane-mx.org; Thu, 09 May 2024 10:21:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4z1N-0002wW-Uj; Thu, 09 May 2024 04:20:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4z1L-0002w7-S2 for emacs-devel@gnu.org; Thu, 09 May 2024 04:20:56 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4z1J-0002yp-W5 for emacs-devel@gnu.org; Thu, 09 May 2024 04:20:55 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F3180240028 for ; Thu, 9 May 2024 10:20:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715242851; bh=O0eTb0+3tottFtoGas2SC5bLrK2eETHIFz16YjY5Zso=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=TtJRrR9ed+b+K+LA39ud9tNdbyWeov4UmJAxZkc12GRobfzzFWIXTqDebTCZIOlvH +uXjMXb5fgtlNcyjzDP5LlH1BdDzfimrsEhpurO+WktgOlLMhZnS+bsmClayRklodl UEmiVazJtTvZxeu6cQMViVlKB6W/R/OCPB3uUO+2JbCZNs+MfaJ0T5/r5wPBluApZd gYjPrY8XMLB3DDEh9qe0H1dufNU5o3R4BnUaxCYBPzSQAt5TFvU8Kxlxs6Gxvforqh lpCvm9gXUo4swPmTOrUDo+2tL3Oelyp7aWR+diXF6IkkzIU/nT7RdTvrAuqE86APN6 Y2sgUpvRwJHWw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VZlMQ3VS7z6tvl; Thu, 9 May 2024 10:20:50 +0200 (CEST) In-Reply-To: <87ttj7skhf.fsf@protesilaos.com> (Protesilaos Stavrou's message of "Thu, 09 May 2024 07:00:12 +0300") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319053 Archived-At: Protesilaos Stavrou writes: > Thank you Philip! > >> From: Philip Kaludercic >> Date: Wed, 8 May 2024 17:19:51 +0000 > >> [... 74 lines elided] > >> - ;; FIXME 2024-05-08: Is there some elegant way to do this? >> + ;; FIXME 2024-05-08: Is there some elegant way to do this? what is "this" >> (filename (with-temp-buffer >> (insert input) >> (completion-in-region (point-min) (point-max) new-collection) > >> [... 22 lines elided] > > The FIXME there is about the following use of the temp buffer to do a > completion-in-region in. Basically, I was looking for a function that > would complete a string against the list of candidates. What I have > there works, of course, but feels I am missing something. Isn't that the same as (try-completion input new-collection) or am I missing something? -- Philip Kaludercic on peregrine