From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#19854: 25.0.50; completion-extra-properties in emacs-25 Date: Mon, 27 Jun 2016 00:15:06 -0400 Message-ID: References: <87h9updcci.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467010067 21847 80.91.229.3 (27 Jun 2016 06:47:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 06:47:47 +0000 (UTC) Cc: 19854@debbugs.gnu.org, Thierry Volpiatto To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 06:16:14 2016 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 1bHNy2-0001xA-Hq for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 06:16:14 +0200 Original-Received: from localhost ([::1]:56337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHNy1-00065Z-Cn for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 00:16:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHNxw-00065R-1h for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 00:16:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHNxp-0005Rl-Un for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 00:16:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHNxp-0005Rg-Ro for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 00:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bHNxp-0000yR-LB for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 00:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2016 04:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19854-submit@debbugs.gnu.org id=B19854.14670009143584 (code B ref 19854); Mon, 27 Jun 2016 04:16:01 +0000 Original-Received: (at 19854) by debbugs.gnu.org; 27 Jun 2016 04:15:14 +0000 Original-Received: from localhost ([127.0.0.1]:57309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHNx4-0000vk-G2 for submit@debbugs.gnu.org; Mon, 27 Jun 2016 00:15:14 -0400 Original-Received: from mail-oi0-f44.google.com ([209.85.218.44]:33578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHNx2-0000vN-8P for 19854@debbugs.gnu.org; Mon, 27 Jun 2016 00:15:12 -0400 Original-Received: by mail-oi0-f44.google.com with SMTP id u201so185103286oie.0 for <19854@debbugs.gnu.org>; Sun, 26 Jun 2016 21:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ysg2LhygRHBXSmutz5uTTuiP5RPSLbwpuaWK8CavCAo=; b=UttyVGUSYdbC1oJ3Un5EtzE0aVW7gcTnHwPngN+5cZciU8YSUaBXcK71PhRpsRcIGB G/qSb8SAySjMBYDffV4kipBV4jwlwBDbErqaQ5I2sSYkLEogTwXB2Sf9Q1NZ24Z7Cg3E voBDoRdM8rOYSCKdO8uRtL/ksCoLaDsVtP4OAdp8fXOl5YMMbV69DJlkh5ytmB7gUC2G ar3dH/BHQPT3zNe6p6DYOS90JbzRPGQV77Uf9Y8w3SVX5RW5fXjiv3+GVoX4B6eQfqQD P6zPUMBx7bde2Rbl26uMY59Ep4lYuqHeMTiBiQjrxjCkj4a8DoIdmvTcXpVjQf4A6eMo GytQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ysg2LhygRHBXSmutz5uTTuiP5RPSLbwpuaWK8CavCAo=; b=SaDyZ7QtLjIMHTr6QMwzn0RQ1pZ2qZlQMZLYEpSqIQip+dHdKOjZS9kzpDXHgtKPo8 aZlssvr9l/o4rw83brvEUwrcpCn8Q9L4jlB2+BbIDQltcFp7D74vdxnOwAoTDr0M2TDG V79sX8gmTIiFqLZqXYuEoQ/imNTw1/9NEDboCelvH5v0QizQybOcXweb9hxbOCx5QgJ2 whhQ3kDHjT/CAbgPKKHir7LmQayGbrGnnEUCOkI/RWHaMpC6pRSGeNArxTNSdmHue9IP iqSvx8q6fX5UqFvZrn1SQJy0XpDhqx/vJaS6R/pmnGRlmCI4h/X+xAnsSCk0Bn2XyAX9 TgcA== X-Gm-Message-State: ALyK8tKXNSg0Cjy/uuPFC2ktip8OmwRIv4EuYeMxMSkBhvcsVYSAr75ng4/j1fCqc9Y1/pbq84Vic1HTCeUepA== X-Received: by 10.202.181.137 with SMTP id e131mr1056283oif.144.1467000906699; Sun, 26 Jun 2016 21:15:06 -0700 (PDT) Original-Received: by 10.157.52.238 with HTTP; Sun, 26 Jun 2016 21:15:06 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 6NfgjNAiVTtH0mVVdr2Xyj6FiPI X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:120136 On Sun, Jun 26, 2016 at 9:28 PM, Dmitry Gutov wrote: > To be thorough, though, AFAIK "function position" means something specific > to a Lisp programmer: the first element of a list. > > Whereas we also look at whether the whole form is quoted (and if so, offer > all kinds of symbols as completions anyway), and we can also offer > function-only completions in a non-function position if the function > position contains one of the known macros (such as cl-callf or > declare-function). Okay, maybe using the word "context" instead of "position" works better? (trying not to get overly specific in the docstring) (defun elisp-completion-at-point () "Function used for `completion-at-point-functions' in `emacs-lisp-mode'. If the context at point allows only a certain category of symbols (e.g. functions, or variables) then the returned completions are restricted to that category. In contexts where any symbol is possible (following a quote, for example), functions are annotated with \"\" via the `:annotation-function' property."