unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Milan Glacier <news@milanglacier.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Is there a way to configure word separator for partial completion style?
Date: Wed, 15 Mar 2023 01:20:39 -0400	[thread overview]
Message-ID: <m2ilf2ziak.fsf@milanglacier.com> (raw)
In-Reply-To: <87ttymn0g3.fsf@web.de>


Michael Heerdegen <michael_heerdegen@web.de> writes:

> 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.

Thanks for your reply!

Yes, I think I am "not even wrong"...

What I actually want is to let "company-dabbrev-code" behave the same
like the completion in emacs-lisp-mode (which in turns is
"elisp-completion-at-point" via "company-capf").

So my actual question is indeed: how to let company-dabbrev-code works
like "partial-completion"?



      reply	other threads:[~2023-03-15  5:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15  3:02 Is there a way to configure word separator for partial completion style? Milan Glacier
2023-03-15  3:43 ` Michael Heerdegen
2023-03-15  5:20   ` Milan Glacier [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=m2ilf2ziak.fsf@milanglacier.com \
    --to=news@milanglacier.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).