From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18643: 25.0.50; elisp--expect-function-p Date: Fri, 10 Oct 2014 09:25:06 -0400 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 1412947589 30575 80.91.229.3 (10 Oct 2014 13:26:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2014 13:26:29 +0000 (UTC) Cc: 18643@debbugs.gnu.org, Dmitry Gutov To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 15:26:22 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 1XcaD7-00043I-V2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Oct 2014 15:26:22 +0200 Original-Received: from localhost ([::1]:48158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcaD7-0003ua-Cq for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Oct 2014 09:26:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcaCx-0003u8-L0 for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 09:26:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcaCp-0003bt-3z for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 09:26:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcaCp-0003bp-1j for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 09:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XcaCo-0001K2-62 for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2014 09:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Oct 2014 13:26:01 +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.14129475125005 (code B ref 18643); Fri, 10 Oct 2014 13:26:01 +0000 Original-Received: (at 18643) by debbugs.gnu.org; 10 Oct 2014 13:25:12 +0000 Original-Received: from localhost ([127.0.0.1]:39790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcaBy-0001Id-Tx for submit@debbugs.gnu.org; Fri, 10 Oct 2014 09:25:11 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:46846) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcaBv-0001IU-Cq for 18643@debbugs.gnu.org; Fri, 10 Oct 2014 09:25:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNFxKjo/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALDiYSFBgNJC6HVgjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArYGAIDvNVNFxKjo/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIxALDiYSFBgNJC6HVgjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="93799209" Original-Received: from 69-196-168-232.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Oct 2014 09:25:06 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A0CA985E6; Fri, 10 Oct 2014 09:25:06 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Fri, 10 Oct 2014 12:07:06 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:94381 >> We could provide a config option, but I'd rather we don't offer those >> completions by default. > For example, I need to add comment to a line with a bit of lisp form. I > already M-; and typed in a few words followed by `:': > ;; Another way: (average (compute-weight ....) ...) > Now I won't be able to complete anything while finishing the form. I > have to uncomment first then finish the form and comment again. I know, but there's really no way for Emacs to know what you intend to complete here. 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? Stefan