From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Glacier Newsgroups: gmane.emacs.help Subject: Re: Is there a way to configure word separator for partial completion style? Date: Wed, 15 Mar 2023 01:20:39 -0400 Message-ID: References: <87ttymn0g3.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25705"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.14; emacs 28.2 Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 15 06:38:23 2023 Return-path: 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 ) id 1pcJqB-0006Th-LD for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Mar 2023 06:38:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcJpc-0004xP-Ii; Wed, 15 Mar 2023 01:37:48 -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 1pcJpa-0004vn-GV for help-gnu-emacs@gnu.org; Wed, 15 Mar 2023 01:37:46 -0400 Original-Received: from sender4-op-o12.zoho.com ([136.143.188.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcJpY-0001wE-IZ for help-gnu-emacs@gnu.org; Wed, 15 Mar 2023 01:37:46 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1678858661; cv=none; d=zohomail.com; s=zohoarc; b=f0cMi4NqtD5eXojO+5Sa3fHb8Npmq+ZC0w4ANnMl0O4UXP5JB/q/jWu/xV6x+ObyJpkerqX3fNBfkYwOHq8zEfzeWAicA4ls7fGBmUT0j17PJFpQzdKJJCaNdX8V0NQakiCdU5210WSbVxNsba3+jQkiXnaelD0ecf3rmbTEdmo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678858661; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=R4Ye+CHL9wejvEB1vQQr/psLZKE5hoZxe1OGCwo3BEU=; b=KjcCWzHQeifFtcemNhOmGmYcEOktGprvxI82pgrQidnaUh5aV+IdkYTAICIPYevw9fPdeFea3wPALmRey9Y1EoVnqB7gzOUnLD9pbiDa9JkcuVnQ2w7OIHRULoZDq1lX3tAq6/3IdT7anamUodw1jwBs+XdBNjhr0Smz+hvbEWw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=milanglacier.com; spf=pass smtp.mailfrom=news@milanglacier.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1678858661; s=zoho; d=milanglacier.com; i=news@milanglacier.com; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=R4Ye+CHL9wejvEB1vQQr/psLZKE5hoZxe1OGCwo3BEU=; b=WJAMgYboCnkY3nowZ8cumUfY6xlPMsHed9BK4wpNFDCI2UfenhMEFMrdyjpEo7EF Bo+Ut1XTlTejPposqQ0mFeAfxnn5hpvtUAT5G1f/QK09/Yri3GQfOXF19qPwyzRtBQH JI54riltNP9mDWQCkQJEscDTtf/LkTavYoLR9Jlc= Original-Received: from localhost (c-68-33-25-105.hsd1.md.comcast.net [68.33.25.105]) by mx.zohomail.com with SMTPS id 1678858660863906.4584920934539; Tue, 14 Mar 2023 22:37:40 -0700 (PDT) In-reply-to: <87ttymn0g3.fsf@web.de> X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.12; envelope-from=news@milanglacier.com; helo=sender4-op-o12.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:143023 Archived-At: Michael Heerdegen writes: > Milan Glacier 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"?