From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: completion of text using company-mode Date: Tue, 8 Jun 2021 22:17:18 +0300 Message-ID: <9d48acf5-0dcf-67ab-a95f-25750dd62eb6@yandex.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25303"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 To: martin-kemp@brusseler.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 08 21:18:06 2021 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 1lqhEk-0006Hi-6Q for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 21:18:06 +0200 Original-Received: from localhost ([::1]:59846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqhEi-0005hK-TM for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 15:18:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqhE4-0005dG-CP for help-gnu-emacs@gnu.org; Tue, 08 Jun 2021 15:17:24 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:45713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqhE2-0002Zw-Kf for help-gnu-emacs@gnu.org; Tue, 08 Jun 2021 15:17:24 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id z8so22728180wrp.12 for ; Tue, 08 Jun 2021 12:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BRIHUo8eCMpKBz4oalYJs5vs9+wt3HpBDe5eXfOlhm4=; b=ePYlhVpvI2bU1EaisYj9Q4sVafjv9IuR4dzO8h2BSLGHhDOcnZrVB0M6b9BxHn8f1i cWsJtmayYxa5wrnu8npExX/m8Kum4MdXhCOjsZEg1qqxg8JFuBxOdF1VTHPO1zNAyq35 0OuTgTpymfnQf5i91w4T9ZYSrsXfMJzikkPHvJ0gGq7QMzuNCy8n4GtUxyg4SUxFLP22 0nnbvZ/QL5aDppqwWvSy6T8EyBuMcTFYqrhM767ixtTdPYMkhOgzcBgfE7woSAoGOHcd 4h1Gy9ghS18JmoeR6uGRYpmUKZKETXGh3//rnkLzaKufKMopYK30Ek8gKdw/JmWzeFxk IF3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BRIHUo8eCMpKBz4oalYJs5vs9+wt3HpBDe5eXfOlhm4=; b=H0g7lqNs14Pego/EaNSbcNSQj+IUgk5kyP/xRXi26wElrNswNll8N/gWvF/ZtbgmvS FsYeW5iV0fxOigw01Nz5YtjS/nCaM6YGpdWgdjzrrMkXQlT2zjibYvvrBMbfeT0RoDz0 tX8PYbzEfJ3JTv2JVapKk/CfpCkjEhjd1HC8xIGqqA73kKzi4A2y74hmi148raxMqbr2 8DkQbNPptb62uT1b/TCZHMRI3xWe0OqengqzP93jypbQf5U3tYBRZMuUzSsCPxO6Xlv/ XNvwL99ZbPV9/aEUnC8D89XQqX6YzsgsOVL25Hq257oZZjMLlgTUsVvnH9Mxfwmraco8 IKaA== X-Gm-Message-State: AOAM5304CqrCHoiNSp4MELAV+j9fxVAa4g4P4tm0kPrKZazBskoopXvz rlwYUMPjvddHYsqEkbizWK1F3gu9HDI= X-Google-Smtp-Source: ABdhPJw5GXsasDEB1Iomf4WToRLpH0Fb7ts/cut6zhHJsIkQ2FXzBABjyl3rmMf00McowI0CCSWNLg== X-Received: by 2002:adf:9c93:: with SMTP id d19mr24090520wre.17.1623179840964; Tue, 08 Jun 2021 12:17:20 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id j14sm3834404wmi.32.2021.06.08.12.17.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Jun 2021 12:17:20 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=raaahh@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:130640 Archived-At: On 08.06.2021 22:11, martin-kemp@brusseler.com wrote: > (setq company-backends '(company-dabbrev-code)) Try this instead: (setq company-backends '(company-dabbrev-code company-dabbrev)) This will use the "code" backend for "code" buffers, and the other for the rest.