From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Order of items in ido selection list Date: Mon, 20 Jan 2014 08:22:01 +0100 Organization: WMI UAM Message-ID: <20140120082201.3307ab01@aga-netbook> References: <20140119192035.2b16f9fb@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390202540 26230 80.91.229.3 (20 Jan 2014 07:22:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 07:22:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 20 08:22:27 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 1W59Bj-0003Iq-KD for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 08:22:27 +0100 Original-Received: from localhost ([::1]:49109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W59Bj-00036b-3z for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 02:22:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W59BU-00036R-Ce for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 02:22:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W59BN-0005Rz-UM for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 02:22:12 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:45701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W59BN-0005Rf-N0 for help-gnu-emacs@gnu.org; Mon, 20 Jan 2014 02:22:05 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 8807865568 for ; Mon, 20 Jan 2014 08:22:03 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nhxv8Keh9c1C for ; Mon, 20 Jan 2014 08:22:03 +0100 (CET) Original-Received: from aga-netbook (101-138.echostar.pl [213.156.101.138]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 5781765562 for ; Mon, 20 Jan 2014 08:22:03 +0100 (CET) In-Reply-To: <20140119192035.2b16f9fb@aga-netbook> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.17; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 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:95507 Archived-At: Dnia 2014-01-19, o godz. 19:20:35 Marcin Borkowski (by way of Marcin Borkowski ) napisa=C5=82(a): > Hi all, >=20 > I'm using the yas-ido-prompt in Yasnippet. However, my entries seem > to be ordered alphabetically. Is there a way to have them listed in > order I specify in the snippet? OK, so I've figured it out. The point is, they were not sorted alphabetically, but *reversed*, since the choice list was processed by something like (dolist (choice choices) ...(push choice filtered-choices)) I sent a pull request (adding a single "reverse") to the developer of YASnippet. Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University