From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin-kemp@brusseler.com Newsgroups: gmane.emacs.help Subject: complete from words in all opened buffers, not just code parts. Date: Wed, 9 Jun 2021 20:29:32 +0200 (CEST) Message-ID: References: <64c3f413-7fa9-0ddd-9433-5e889ee5111a@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5753"; mail-complaints-to="usenet@ciao.gmane.io" To: "Dmitry Gutov" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 09 20:30:34 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 1lr2yI-0001KZ-Hn for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 20:30:34 +0200 Original-Received: from localhost ([::1]:58620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr2yH-0000xR-Ju for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 14:30:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr2xS-0000Me-SW for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 14:29:42 -0400 Original-Received: from msg-1.mailo.com ([213.182.54.11]:32996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr2xQ-0007NA-GP for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 14:29:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=brusseler.com; s=mailo; t=1623263373; bh=UwcDo/9wxZZlP+MEEeJfA6Y7I1AD8N7yX2Plqhd8T3k=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: In-Reply-To:Content-Type; b=m93lqcM5e7LgHn978+rkJ1WVjWRkf76n/f7+BXEOMPLlVwY18VRPinOf3ZApgbvme UVh5v1SG67wa5r1AmQHFpQ+ERP2RpZben+lqvQgwj5JdgnVaE/Gbo6wd7UyZU54q/w EL2ePuRzCA305c2gKGgg6VKXG/wALbNY7HFhd/bI= Original-Received: by www-7.mailo.com with http webmail; Wed, 9 Jun 2021 20:29:32 +0200 (CEST) X-EA-Auth: ZBEItPLgcD9oTxsBCx7CmJnOZd0NJTr9gc3hXAVlAJWEaNcipPBn1cBGdwcwY5wSBtWKLjyh0QECu//zN75UlQlywxYZlCVo X-Priority: 3 X-Mailer: COMS/EA21.01/r20210601 In-Reply-To: <64c3f413-7fa9-0ddd-9433-5e889ee5111a@yandex.ru> Received-SPF: pass client-ip=213.182.54.11; envelope-from=martin-kemp@brusseler.com; helo=msg-1.mailo.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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:130683 Archived-At: Have set up things as follows ta allow completion from code buffers, everyw= here, ignoring letter case, and using all opened buffers.=20 =C2=A0 =C2=A0 (setq company-dabbrev-code-everywhere t) =C2=A0 (setq company-dabbrev-code-ignore-case) =C2=A0 (setq company-dabbrev-code-other-buffers t) I also want to complete from texinfo (.texi) files.=C2=A0 Last time you ha= d mentioned=C2=A0=20 =C2=A0 =C2=A0 (setq company-backends '(company-dabbrev-code company-dabbrev)) There are a loads of options and getting hesitant to what to keep and whic= h ones to discard. From: Dmitry Gutov To: martin-kemp@brusseler.com; =C2=A0=C2=A0=C2=A0help-gnu-emacs@gnu.org Subject: Re: complete from words in all opened buffers, not just code part= s. Date: 09/06/2021 18:51:46 Europe/Paris On 09.06.2021 19:47, martin-kemp@brusseler.com wrote: > But, in programming languages I cannot complete from all buffers includi= ng from comments in >=20 > opened code files. Try (setq company-dabbrev-code-everywhere t) In general, you can view the available options across the package using=20 'M-x customize-group company'.