From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Difference between company-dabbrev and company-dabbrev-code Date: Sat, 07 Dec 2024 09:48:43 +0100 Message-ID: <87plm3ubdg.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4084"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.7; emacs 31.0.50 Cc: Heime To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 09:48:57 2024 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 1tJqUj-0000tU-Ai for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 09:48:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJqUZ-0006Ac-OO; Sat, 07 Dec 2024 03:48:47 -0500 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 1tJqUY-0006A5-UG for help-gnu-emacs@gnu.org; Sat, 07 Dec 2024 03:48:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJqUY-0001KM-KY; Sat, 07 Dec 2024 03:48:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=6UlP2fVR9eQgbTOUoQ5KPNAhHZGZqIGXMx6m40uVzps=; b=acO1b/WpS1Eg017lC0yE 9YPOA3O8d2vewOp4wqXhk6aH6dkhjsS6fof4kOGEFzzpTX01U+YS/t16m1pCHIgQZYoK5rScvVMko 4n3jN/0UYg/1ZrS5WoWvNvZIu7PQ+FYQqZFbf7YUQnQk5R7pDWvpZpcV3KSjNlaFu0AdBIMplqRI8 5QCd1SuQ69kRDGdXRIT7+La3WzcghjP/0so5mUpewpmiC6X3Z/ZIF1s3Cc3/tsiE+h4HuX2i+jPQU zMvxPHlDr/Ym1XNK5DNH6g/ipfkArV0bhSn9tY8+ayusLsQfXL9QjqIVeqaPkgnak3/xaGEKxhclk hYEcWOpMwjuruw==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrjedtgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehhvghimhgvsghorhhgihgrsehprhhothhonhhmrghilhdrtghomhdprhgtphhtthhope hhvghlphdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: (Heime via Users list for the's message of "Fri, 06 Dec 2024 19:37:07 +0000") 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:148646 Archived-At: Heime via Users list for the GNU Emacs text editor writes: > I have a problem understanding the difference between company-dabbrev > and company-dabbrev-code. They both shom completion candidates inside > contents of open buffers. How can I see a difference between the two? I guess the difference is documented in their docstrings. I don't use them but most probably company-dabbrev uses any text as possible completion candidates whereas company-dabbrev-code uses only the words occurring in code, i.e., not comment text. For example, assume you have ;; This is my nice function. (defun foo (bar) (+1 bar)) then company-dabbrev will also complete to This, is, my, nice, and function whereas company-dabbrev-code will not (unless those words also occur in code, e.g., as function or variable names). Bye, Tassilo