From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18265: 24.3.92; lisp-completion-at-point should return nil in comments, unless after ` Date: Fri, 19 Sep 2014 07:56:12 +0400 Message-ID: <541BA95C.30400@yandex.ru> References: <86egwjgtju.fsf@yandex.ru> <53ED7AC0.1050607@yandex.ru> <53EEAD9D.5010500@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1411099180 11142 80.91.229.3 (19 Sep 2014 03:59:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 03:59:40 +0000 (UTC) Cc: 18265-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 05:59:34 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XUpM5-0004oc-Kf for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 05:59:33 +0200 Original-Received: from localhost ([::1]:55826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUpM5-0004m7-0c for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 23:59:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUpJr-0001KP-4S for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 23:57:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUpJk-0002vV-9y for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 23:57:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUpJk-0002v1-32 for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 23:57:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUpJe-00067R-HS for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 23:57:02 -0400 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Sep 2014 03:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18265 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 18265@debbugs.gnu.org, dgutov@yandex.ru, dgutov@yandex.ru Original-Received: via spool by 18265-done@debbugs.gnu.org id=D18265.141109898423437 (code D ref 18265); Fri, 19 Sep 2014 03:57:01 +0000 Original-Received: (at 18265-done) by debbugs.gnu.org; 19 Sep 2014 03:56:24 +0000 Original-Received: from localhost ([127.0.0.1]:45042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUpJ2-00065w-6o for submit@debbugs.gnu.org; Thu, 18 Sep 2014 23:56:24 -0400 Original-Received: from mail-la0-f48.google.com ([209.85.215.48]:50336) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUpIz-00065a-Uy for 18265-done@debbugs.gnu.org; Thu, 18 Sep 2014 23:56:22 -0400 Original-Received: by mail-la0-f48.google.com with SMTP id ty20so2353380lab.21 for <18265-done@debbugs.gnu.org>; Thu, 18 Sep 2014 20:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=hkyCQO4l0EjN6KS0RPnpw6XRjbeASbzhPkoV/qD2pqk=; b=I2h+XoL3L8cYlpCeyHfV0hgL1CClh97SQuMeHuXEBp0bp5yTOy6LrNY7S8n6WmW/t5 s8xRgXHV+AIJOov9GhzGvWTqeohsy8k5MAFRRahnauAFHwHlfNjHSpfDr55D5xE46xtL fgfI/oZ+GcGPhmtqMgta/IoevXazpNS1ctbdWU8ByORlUGYeppHwB8LAbevHh5UQbxFg GUlQjSCluZseDWNCPiiwIhwVf4wfJPBrArhGXUQ7BSMYCFLKcfH/kqVVJsuRtETEndHS ScH9tWKBxNo1JPrChytaL0kuhgcANbU2NeZwxrHvVtq1FVlza9TGtzWzf/IjkTyQfxrW 07fA== X-Received: by 10.112.54.135 with SMTP id j7mr3503087lbp.51.1411098975613; Thu, 18 Sep 2014 20:56:15 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id k3sm175920lam.41.2014.09.18.20.56.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Sep 2014 20:56:14 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93497 Archived-At: Version: 24.5 On 08/16/2014 10:00 PM, Stefan Monnier wrote: > While it's "counter to the c-a-p-f interface", the need to combine > several backends is sufficiently common that we need to support it somehow. > > I hope a "merge" solution can use a less hackish solution than the > current ":exclusive no". I'm not convinced with this approach. At least, AFAICS, different users prefer to merge different backends together. For instance, some https://github.com/iquiw/company-ghc users like to merge its results with the plain company-dabbrev-code. Some, I believe, don't. If the completion function gets to decide that, it would be harder for users to customize. >> And anyway, it doesn't seem to help with the distinction between manual and >> idle completion, > > Indeed, it's a largely orthogonal issue. I've installed the in-string-or-comment piece of logic that's been missing compared to company-elisp, so this bug should be settled. The distinction between manual and idle completion doesn't seem to be very useful here, so let's leave that until there's a definite demand for it.