unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Psionic K <psionik@positron.solutions>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Incorporating new things into completions
Date: Sun, 04 Feb 2024 10:51:22 +0000	[thread overview]
Message-ID: <87r0hs4i51.fsf@posteo.net> (raw)
In-Reply-To: <CADQMGAS+JcWn4cPYAw7kNAppDDLJzJ7a6UfnBXMJWF+Jtz9UsA@mail.gmail.com> (Psionic K.'s message of "Fri, 2 Feb 2024 14:57:36 +0900")

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



      parent reply	other threads:[~2024-02-04 10:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-02  5:57 Incorporating new things into completions Psionic K
2024-02-02  6:48 ` Emanuel Berg
2024-02-04 10:51 ` Philip Kaludercic [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0hs4i51.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=psionik@positron.solutions \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).