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#47665: elisp-completion-at-point doesn't work when no characters typed Date: Fri, 9 Apr 2021 02:53:29 +0300 Message-ID: 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="16663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cc: stefan monnier To: 47665@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 09 01:54:24 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 1lUeTf-0004FI-WA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Apr 2021 01:54:24 +0200 Original-Received: from localhost ([::1]:39016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUeTe-0008H8-RF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 19:54:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUeTK-0008Gv-64 for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 19:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUeTJ-0000Dn-Uo for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 19:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUeTJ-0006MF-SX; Thu, 08 Apr 2021 19:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2021 23:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47665 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: stefan monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.161792602024402 (code B ref -1); Thu, 08 Apr 2021 23:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2021 23:53:40 +0000 Original-Received: from localhost ([127.0.0.1]:48576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUeSx-0006LW-M4 for submit@debbugs.gnu.org; Thu, 08 Apr 2021 19:53:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUeSu-0006LM-2H for submit@debbugs.gnu.org; Thu, 08 Apr 2021 19:53:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUeSt-0008E6-Pm for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 19:53:35 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:39626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUeSr-0008LG-Mm for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 19:53:35 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id s7so3709818wru.6 for ; Thu, 08 Apr 2021 16:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=9MLV+FMqLcXpUEHQHUZvGZr0Jrx8B9BIvQGGO9siqBg=; b=JgEG5d9c1B6vxWwEFgoydUNLr65O3uymrn/PsI4S3fnPGtXQUXeO0ZDFS584PVmHa+ G7e2d6x5DlRbp+FypyrEXhVHZM9QEKUSQXWQOvgj8pTtCEcM3FERg4AA03U/zkFeU6ip 0aEuERx3ox/M5W+txpJQs6x7Lp+e2r3TcaW+iF9e1wW4E3YtEuxLdoJEi242vqphF1nm Czcc7xztFCyNoVPRa7iriRXxyf4ALT3JVX8eSP9JqDK/19nlh/7M0WMO1hQqMG4Li3/F DTaoQrBSCd+23VYnNrqB0wqxlon1LEMiw39vbq9yhbJe6KH9UqYvLl3XJnznkDRIdvet XhNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=9MLV+FMqLcXpUEHQHUZvGZr0Jrx8B9BIvQGGO9siqBg=; b=NFY4HpBo+XPkxV0aZPvrWXINUAukkP3iHKlfL1WjOBlfRf3BzGsU4YSE0X8eZV9Ynd xV7D/lbvhJASczKZQruBqn97ZTqCB6V0yFwC9Ddm8Q5dqIM+E2JodrTFMddR6AJQ457F nXXGRisN7wjjmDNcF8SR6U3tr/GVA0wFoOUlW0AYMl7kp8n4gzFKZ2ZqhjySdX4s8T8Q zkJJkwgMC1Z3Kw62STkYD0qI/QMgKGCNN1tAHZ9gZeHxkh3/IMuHsIjNyYMjyOd+NId4 C14DZijXQIBo+hof/jOdK1vIqb5AMYHR+xl33zW2/wOFRIQjsMfvU2UvDpKHEdh64tYT he3g== X-Gm-Message-State: AOAM532KdvXdI2qXZtwrsb7YaDwd2ULYMpf/ebN/rrdqwaIqLdRjtuGR vopI5PBPfCVZJ6BVMozFE3EHgFRBkdM= X-Google-Smtp-Source: ABdhPJx86Nom3M4wgRjLXM1HJatcy1aBvu4WDhva/nehj0FZm6EX+3AWlkbCan2heZAkehWmH8P10g== X-Received: by 2002:adf:d1cd:: with SMTP id b13mr14600802wrd.47.1617926011984; Thu, 08 Apr 2021 16:53:31 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id n6sm1154334wmd.27.2021.04.08.16.53.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 16:53:31 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=raaahh@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:203754 Archived-At: X-Debbugs-CC: Stefan Monnier Example: (|) press C-M-i -> nothing (a|) press C-M-i -> lots of completions That's not very conducive to API exploration via completion. Further, it triggers a problem when used with company: if I initiate completion when prefix is empty, it switches to the dabbrev-code backend. Then, even after I type some chars, the same backend continues to be used. Not company-capf, which I would want. This patch seems to fix it: diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 8ade718640..203712f45d 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -496,7 +496,7 @@ elisp-completion-at-point (end (unless (or (eq beg (point-max)) (member (char-syntax (char-after beg)) - '(?\s ?\" ?\( ?\)))) + '(?\" ?\())) (condition-case nil (save-excursion (goto-char beg) But I'm not sure why those elements were there in the first place.