From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.help Subject: using icicle to complete evil ex arguments? Date: Sun, 09 Nov 2014 12:14:36 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1415531738 14570 80.91.229.3 (9 Nov 2014 11:15:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2014 11:15:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 09 12:15:31 2014 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 1XnQSw-0007Mr-MW for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Nov 2014 12:15:30 +0100 Original-Received: from localhost ([::1]:38439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQSw-0008Mz-4T for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Nov 2014 06:15:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQSZ-0008Ko-Ex for help-gnu-emacs@gnu.org; Sun, 09 Nov 2014 06:15:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnQSR-00075I-Rz for help-gnu-emacs@gnu.org; Sun, 09 Nov 2014 06:15:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnQSR-00075E-LA for help-gnu-emacs@gnu.org; Sun, 09 Nov 2014 06:14:59 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XnQSQ-0006rW-B1 for help-gnu-emacs@gnu.org; Sun, 09 Nov 2014 12:14:58 +0100 Original-Received: from cbg35-2-78-242-14-140.fbx.proxad.net ([78.242.14.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Nov 2014 12:14:58 +0100 Original-Received: from alan.schmitt by cbg35-2-78-242-14-140.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Nov 2014 12:14:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cbg35-2-78-242-14-140.fbx.proxad.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (darwin) Cancel-Lock: sha1:ix8bWnrIac0nRlOd51nFVZ63SBA= 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:100861 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Is it possible to use icicle to complete evil ex arguments? Concretely, assuming you have evil installed, if you type (to switch buffer) :b you get the usual completion list from emacs. Could it be possible to use icicle to complete this buffer argument? I took a quick look at the code, and currently in the minibuffer is bound to this function: #+begin_src emacs-lisp (defun evil-ex-completion () "Completes the current ex command or argument." (interactive) (let (after-change-functions) (evil-ex-update) (completion-at-point) (remove-text-properties (minibuffer-prompt-end) (point-max) '(face nil = evil)))) #end_src If I understand the `evil-ex-update' function, it parses the current command line in the minibuffer to set up things such that completion at point knows what kind of completion to do. I don't really know where to go from here =E2=80=A6 Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUX0ygAAoJEAQNCjtO0uXHafYH/2zJ8pE7atBe91nO0Kk+RYJN 9Bu7EtsosnV9nuSYlVivxQyjR5g7NKkosLztehqOJmjDIIwRzKfof4K4+4ZSTR+X lfC65kYq66ICHY2aSDmcRGaht+a1rpIVhOuhC0UagzM4PNPqOSeNPENXSMjcFJqi 2+zqJnMgOJftr+Qz94S9wfa9+OHSvTVFKN4PAphKey/JE34mAI+X6+E3NbCLhz+F boWBZiP4ivZXvmLbCfBU4i78peh2r9qFKB+mTrq3NV4unklmSCcIv7QlggHkEYRh +VyOiZTO7ibrFv0Rf4Tq6s33UuTzLmpOOuVD6cKPt45Xp97h3k6U3eJCrk97fLU= =/pu5 -----END PGP SIGNATURE----- --=-=-=--