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.bugs Subject: bug#48775: Making company mode with completion from opened files Date: Tue, 1 Jun 2021 23:42:30 +0300 Message-ID: <5c75a8f4-6bc2-9c06-0ac3-6327041880dc@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="26987"; 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: ludvig-faddeev@gmx.com, 48775@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 22:43:13 2021 Return-path: Envelope-to: geb-bug-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 1loBEG-0006qa-LZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 22:43:12 +0200 Original-Received: from localhost ([::1]:42066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loBEF-0002Jx-Mw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 16:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loBE6-0002Gs-TD for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 16:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loBE6-0004mE-LI for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 16:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loBE6-0007Xp-Ft for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jun 2021 20:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48775 X-GNU-PR-Package: emacs Original-Received: via spool by 48775-submit@debbugs.gnu.org id=B48775.162258015928971 (code B ref 48775); Tue, 01 Jun 2021 20:43:02 +0000 Original-Received: (at 48775) by debbugs.gnu.org; 1 Jun 2021 20:42:39 +0000 Original-Received: from localhost ([127.0.0.1]:37992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loBDj-0007XD-Hm for submit@debbugs.gnu.org; Tue, 01 Jun 2021 16:42:39 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:54908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loBDi-0007X1-G4 for 48775@debbugs.gnu.org; Tue, 01 Jun 2021 16:42:39 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id o127so8979394wmo.4 for <48775@debbugs.gnu.org>; Tue, 01 Jun 2021 13:42:38 -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=izFF3hKCIQkqYGWnV0OlzN37HVDOXwVdEr10lMrDksw=; b=rUuUpCRISonOod50mYQHQ4mrW1Flp15ZlvF24XeIDGk/WBJiIk1NpQcufd1KdjhgkV xhtUn7Ps9vnf5ieoIFo49QxS2uWQtdp5Ve3MuXcxemOImiwqqJ4eIppj/bZi981dRAIM Ba4/+Mt8+wZkZbjkH7hKw698Gl9Pq3EWy5Cjsj9rXQGAts7bVtVT1BQSHKzzQ6oJ8wwp Go1yrvAL2NyZ/pGjLWXHIYecMqgSl8ANuRVje6i8w0+v+7XHJzvlzv7mqn1zsiNz0eA6 Yw8IVHhUNzUcbeZEgwQ5zq9SYWisJTTB0/NUMqkylfxbVeGruX9Qcc4BnLMFEOULYLY5 GViw== 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=izFF3hKCIQkqYGWnV0OlzN37HVDOXwVdEr10lMrDksw=; b=lec4GBDWjWwfTvIdcHQ8xamNit99+1gjc4UWg8V98RPIBJUU4LiA1Vq/92iprG3kYw HBP/ImkIBX8v8rcEUCzOWp8ayKOh+CIhI9J+GKxAuEdV1Et6Fe+aZTdq8+tZuD+2wKq2 HbgGUwt5VlNdEUJbcf8bqP2Xg27hBOfQJKubsitCWtDCKW5ivPay4DSBFTMZ8XjXsec/ O1AiW+RCEU2Jbt6oLPYzoXsz+Ce4QHbS+nAQM4zfwFTJ6aB7ctth9c5Nyn/lYplDZODj ZNmXGGxmfic6jM47bwfHQ1fBdfUuQCV0zHmAmT/m0yUvd071O24z5LZevwNdnAAOc4E0 4b8g== X-Gm-Message-State: AOAM533aQkm/5IIq4jFbTmUtdnv3AYqiPZ5COKHG9oCfhwEHuKSakT61 jHvzYfsrs2RQiezgMUGqdQOeOq1Ama0= X-Google-Smtp-Source: ABdhPJy9FZqDEP8aBXClawEtw3jIi10eshKrvXbDfvpXB6+ShIhLbuedwOYIcR4d3AifLxZKiaqwkQ== X-Received: by 2002:a7b:c5d3:: with SMTP id n19mr29130425wmk.68.1622580152578; Tue, 01 Jun 2021 13:42:32 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id 6sm514537wmg.17.2021.06.01.13.42.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jun 2021 13:42:31 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207803 Archived-At: On 01.06.2021 14:01, ludvig-faddeev@gmx.com wrote: > Am currently working on a fortran project with company mode for completion. > Although I get emacs specific commands, I would like to get completion on words > for opened files. Sounds like you're looking for the backend `company-dabbrev-code`. You can see which backend is used in a given buffer (at the current position) with 'M-x company-diag'. You can change the backend priorities by customizing `company-backends`.