From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Completion at point with empty prefix? Date: Fri, 30 Nov 2012 04:15:15 +0400 Message-ID: <874nk89ca4.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354234552 23913 80.91.229.3 (30 Nov 2012 00:15:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 00:15:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 01:16:05 2012 Return-path: Envelope-to: geh-help-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 1TeEGu-0001x6-CA for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 01:16:00 +0100 Original-Received: from localhost ([::1]:52933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeEGi-0001XI-SQ for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 19:15:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeEGd-0001X2-D1 for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 19:15:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeEGc-00062j-DE for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 19:15:43 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:53227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeEGc-00062d-3Z for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 19:15:42 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TeEGj-0001bL-0D for help-gnu-emacs@gnu.org; Fri, 30 Nov 2012 01:15:49 +0100 Original-Received: from 178.252.98.87 ([178.252.98.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Nov 2012 01:15:48 +0100 Original-Received: from dgutov by 178.252.98.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Nov 2012 01:15:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 178.252.98.87 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) Cancel-Lock: sha1:5+pWnTYI3rkZB23rqlNusTkeSuc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87960 Archived-At: In the mode I'm writing, in certain contexts, there can be only a limited set of completions when the function call has no sender. So I don't actually need a prefix to show the user the set of methods they can call at the point, and supporting that should increase the API discoverability. How do I set that up? I have a completion-at-point function working, but if START is the same as END in the returned list, `completion-at-point' just says "No symbol here". I tried inserting space after point and returning END = START + 1, made no difference. --Dmitry