help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to configure word separator for partial completion st


From: Michael Heerdegen
Subject: Re: Is there a way to configure word separator for partial completion style?
Date: Wed, 15 Mar 2023 04:43:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Milan Glacier <news@milanglacier.com> writes:

> The emacs documentation
> (https://www.gnu.org/software/emacs/manual/html_node/emacs/Completion-Styles.html)
> suggests that "partial-completion" uses hyphens or spaces as word
> separator. Is there a way to use other characters as the word separator?

`completion-pcm-word-delimiters'?

> This is very useful for other languages (say python, C) which usually
> uses underscore as the word separator. Say I want to complete `foo_bar`,
> then I may just type `f_m` to complete `foo_bar`.

Hmm - the underscore is already in that delimiters list, so what you
want should work out of the box, unless I'm missing something.  In Elisp
it works for me, I can e.g. complete (epg-K_CR) to
(epg--status-KEY_CREATED).

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]