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: Thu, 10 Jun 2021 01:13:29 +0200 (CEST) Message-ID: References: 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="31639"; mail-complaints-to="usenet@ciao.gmane.io" To: martin-kemp@brusseler.com, "Dmitry Gutov" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 10 01:14:01 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 1lr7Ob-0007z6-E0 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Jun 2021 01:14:01 +0200 Original-Received: from localhost ([::1]:41264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr7Oa-00072F-6S for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 19:14:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr7OF-00071t-1z for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 19:13:39 -0400 Original-Received: from ip-8.mailobj.net ([213.182.54.8]:39342 helo=msg-3.mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr7OC-0007qw-86 for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 19:13:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=brusseler.com; s=mailo; t=1623280410; bh=EqrI+wVcW5LiYi+V4f6iOfdr7NRUv193PQIB+o7pw0w=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: In-Reply-To:Content-Type; b=iW93JbSM4MgZQCzvqHFado57AnpQyI6xdwGinOlce8L56kdsDvVIuq+p6LbwOJYye JEXSpKR+HlsbxV5Gh30hLcP0LUfmM89EupZ9hnNlkUcdbB/7nQObXdP6zmqRt6vKSv oiut1MrdiwCom5ZWbsqUD7L2vL1eGTH65ZdqhUww= Original-Received: by www-7.mailo.com with http webmail; Thu, 10 Jun 2021 01:13:29 +0200 (CEST) X-EA-Auth: IP5IE0hG+JMRxBVyi12eX/TQBG7t4RYj+YGuiwApFb+atebIwwmjVBhzx5pLpwn0REYpeCnPqy2L5bagd5Eb4EBHi8fZ4yfP X-Priority: 3 X-Mailer: COMS/EA21.01/r20210601 In-Reply-To: Received-SPF: pass client-ip=213.182.54.8; envelope-from=martin-kemp@brusseler.com; helo=msg-3.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:130685 Archived-At: Currently I have set the following =C2=A0 (setq company-backends '(company-dabbrev-code company-dabbrev)) =C2=A0 (setq company-dabbrev-code-everywhere t) =C2=A0 (setq company-dabbrev-code-ignore-case t) =C2=A0 (setq company-dabbrev-code-other-buffers t) =C2=A0 (setq company-dabbrev-code-everywhere t) =C2=A0 (setq company-dabbrev-ignore-case t) =C2=A0 (setq company-dabbrev-other-buffers t) Does the company-backends sequence matter.=C2=A0 Would like to complete fo= r both text files and code (including from comments).=C2=A0 I could also make a keybind to c= omplete from code only or from everything.=C2=A0 What can one do for such keybind case? From: martin-kemp@brusseler.com To: Dmitry Gutov ; =C2=A0=C2=A0=C2=A0help-gnu-emacs@gnu.org Subject: complete from words in all opened buffers, not just code parts. Date: 09/06/2021 20:29:32 Europe/Paris Have set up things as follows ta allow completion from code buffers, every= where, 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'.