From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic <philipk@posteo.net> Newsgroups: gmane.emacs.help Subject: Re: Incorporating new things into completions Date: Sun, 04 Feb 2024 10:51:22 +0000 Message-ID: <87r0hs4i51.fsf@posteo.net> References: <CADQMGAS+JcWn4cPYAw7kNAppDDLJzJ7a6UfnBXMJWF+Jtz9UsA@mail.gmail.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="25975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Psionic K <psionik@positron.solutions> Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 04 11:52:06 2024 Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org> Envelope-to: geh-help-gnu-emacs@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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>) id 1rWa6Y-0006Ye-BC for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Feb 2024 11:52:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <help-gnu-emacs-bounces@gnu.org>) id 1rWa5w-0005lY-Ga; Sun, 04 Feb 2024 05:51:28 -0500 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 <philipk@posteo.net>) id 1rWa5u-0005jU-7A for help-gnu-emacs@gnu.org; Sun, 04 Feb 2024 05:51:26 -0500 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 <philipk@posteo.net>) id 1rWa5s-0004vl-Nh for help-gnu-emacs@gnu.org; Sun, 04 Feb 2024 05:51:25 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 53D0C240027 for <help-gnu-emacs@gnu.org>; Sun, 4 Feb 2024 11:51:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707043883; bh=0qgZ4hevTMY3xGKRyPI9CtpvZUUN5ZF5JyRm2V7K8pI=; h=From:To:Cc:Subject:Autocrypt:Date:Message-ID:MIME-Version: Content-Type:From; b=a+K48+QLB6W4Y5sTwztQ06g2YiXJMS9P7JDzjIQf0bTJN9YRicQDr2Tol3Fa231Ib /A1Ifnf5rsITL4pnLdGdA5ZR4bURJSPx0Wu/HlIRPXRbGjs1v2a0ZLzNmyH5EJcQQ8 go6TklzLVdOTuuMsvSEFbopnfoowpGZNXNqRFtxYVSgC3JZurwbPbQqeApzL23lqen lNzka/n7MxF2GhMyiPyedYk5fvYnFpTapptXw6odhO6ukrfppNGdZ/Xy2XfRhQx0M2 PaukSBmIi6beSqWpcTpuKX3pPL8mRKxwL3X/0tmoZkfkdtjvZacOD4KEP1CvoGGhA3 8KI3PjTdokffA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TSRBz04Cbz6tvl; Sun, 4 Feb 2024 11:51:22 +0100 (CET) In-Reply-To: <CADQMGAS+JcWn4cPYAw7kNAppDDLJzJ7a6UfnBXMJWF+Jtz9UsA@mail.gmail.com> (Psionic K.'s message of "Fri, 2 Feb 2024 14:57:36 +0900") X-Hashcash: 1:20:240204:psionik@positron.solutions::AzQ5o3xxSCZrBrUv:0nMR X-Hashcash: 1:20:240204:help-gnu-emacs@gnu.org::wypMUFqY/mFr/o9x:2re5 Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM 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_H4=0.001, RCVD_IN_MSPIKE_WL=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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145869 Archived-At: <http://permalink.gmane.org/gmane.emacs.help/145869> Psionic K <psionik@positron.solutions> writes: > I want to augment `switch-to-buffer' candidates to contain a list of > exotic fruits. Presumably the downstream handler for buffers has no > idea what to do with fruits, so I need to provide some alternative > handler. Is "exotic fruits" a metaphor, or do you really mean that you want the `read-buffer-to-switch' function to extend the completions with a literal list of exotic fruit names? What should `switch-to-buffer' do in that case? > Has this infrastructure been built into Emacs or is it exclusive to > completion packages at this time? If Emacs provides facilities for > this kind of thing, what vocabulary should I become familiar with? It would be helpful to clarify what infrastructure or functionality you are talking about here, perhaps with an illustrative example. -- Philip Kaludercic