From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#18643: 25.0.50; elisp--expect-function-p Date: Sat, 11 Oct 2014 08:16:33 +0800 Message-ID: References: <86oatmq7lc.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412986653 4240 80.91.229.3 (11 Oct 2014 00:17:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2014 00:17:33 +0000 (UTC) Cc: 18643@debbugs.gnu.org, Dmitry Gutov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 11 02:17:24 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 1XckN9-00048R-Pn for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Oct 2014 02:17:24 +0200 Original-Received: from localhost ([::1]:51731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XckN7-0001VL-BG for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Oct 2014 20:17:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XckMw-0001V2-LD for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 20:17:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XckMp-00078J-0v for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 20:17:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XckMo-00078C-Sj for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 20:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XckMo-0006vQ-3O for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 20:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Oct 2014 00:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18643 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18643-submit@debbugs.gnu.org id=B18643.141298660526590 (code B ref 18643); Sat, 11 Oct 2014 00:17:02 +0000 Original-Received: (at 18643) by debbugs.gnu.org; 11 Oct 2014 00:16:45 +0000 Original-Received: from localhost ([127.0.0.1]:40624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XckMW-0006ul-AH for submit@debbugs.gnu.org; Fri, 10 Oct 2014 20:16:44 -0400 Original-Received: from mail-pa0-f41.google.com ([209.85.220.41]:35965) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XckMT-0006uc-Ue for 18643@debbugs.gnu.org; Fri, 10 Oct 2014 20:16:42 -0400 Original-Received: by mail-pa0-f41.google.com with SMTP id eu11so2635919pac.28 for <18643@debbugs.gnu.org>; Fri, 10 Oct 2014 17:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=d4gRYFG0+zUnETS9jXMt5xqvMclTsiNuGwHfCKJ70f0=; b=DxXCRiCcjhd6gSuBRbHEIiBiKjw3Wgt0W3pMhhGMwswXzCdnRvpoV/jjKi70GC4Jwe ik3CtVBT6XwNn1BG2TIhR1muLajgnlungKaGudHxEKnNgCeZATQo68ZsTjTtbCcQMb9Q 2fZ8CkHn4+IH+M3lYNzYtStOBoAWUWEKPudZeswy2+/Dh4Ag3KxvxrhbMDL1d5E/JkuW dUv5d1uVmCagwjMpz9047sVbF6oUfAPeDphU7F3NFZoR32PgcuU9d6Yg5/u1SboACFli wb6gawER8f0s0o6kBLiX6sQTFmpo4Tro4eyKm+J37KKRfyarYjvTGrhICUsvUZVi0nHB Oh5Q== X-Received: by 10.68.252.230 with SMTP id zv6mr8744241pbc.13.1412986600312; Fri, 10 Oct 2014 17:16:40 -0700 (PDT) Original-Received: from fortuna ([114.248.243.105]) by mx.google.com with ESMTPSA id ra4sm4635290pab.33.2014.10.10.17.16.37 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 10 Oct 2014 17:16:39 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Fri, 10 Oct 2014 09:25:06 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (CentOS 6.5) 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:94399 On 2014-10-10 09:25 -0400, Stefan Monnier wrote: > I know, but there's really no way for Emacs to know what you intend to > complete here. I am fine with giving me anything from obarray. elisp names tend to be very long anything that you can give me help me save time. > So I think the right solution for this is to write > a completion-at-point-function which is designed specifically for > "completion in strings and comments" and which would probably rely on > something like dabbrev, complemented by a major-mode-supplied list of > additional candidates. > > WDYT? Is this a solution for elisp or all modes? I am only concerned about elisp mode though, which already has a good completion source ie obarray. For example, in common lisp I prefer the fuzzy completion (from slime) which basically gives me anything sorted by score (with a user settable cutoff). I haven't had any problem quickly getting the completion I have in mind. I don't understand why we work so hard to prevent completion in strings and comments. Sorry if this has been discussed. Thanks, Leo