From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: PATCH: Fix IDO interaction with uniquify.el Date: Thu, 06 May 2010 18:56:03 +0200 Message-ID: <876331t1ek.fsf@kfs-lx.rd.rdm> References: <87k4vf1zdh.fsf@telefonica.net> <87d417h0z6.fsf@stupidchicken.com> <87tyujz57h.fsf@telefonica.net> <87ockrz4eu.fsf@telefonica.net> <87pr57uw25.fsf@stupidchicken.com> <878w7y6u92.fsf@telefonica.net> <87y6fy5bjl.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273171533 27894 80.91.229.12 (6 May 2010 18:45:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 May 2010 18:45:33 +0000 (UTC) Cc: Juanma Barranquero , Chong Yidong , emacs-devel@gnu.org, Leo , Stefan Monnier , Leo To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 06 20:45:30 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OA64e-00044i-GJ for ged-emacs-devel@m.gmane.org; Thu, 06 May 2010 20:45:28 +0200 Original-Received: from localhost ([127.0.0.1]:59572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OA4yq-00035a-UG for ged-emacs-devel@m.gmane.org; Thu, 06 May 2010 13:35:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OA4ND-0002XR-NH for emacs-devel@gnu.org; Thu, 06 May 2010 12:56:31 -0400 Original-Received: from [140.186.70.92] (port=60148 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OA4N8-0002RD-4b for emacs-devel@gnu.org; Thu, 06 May 2010 12:56:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OA4N2-0004gb-4a for emacs-devel@gnu.org; Thu, 06 May 2010 12:56:24 -0400 Original-Received: from ge0.mail1.hoer.dk.ip.fullrate.dk ([90.185.1.42]:52248 helo=smtp.fullrate.dk) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OA4N1-0004bq-MW for emacs-devel@gnu.org; Thu, 06 May 2010 12:56:19 -0400 Original-Received: from kfs-lx.rd.rdm.cua.dk (3008ds4-amb.0.fullrate.dk [90.184.173.162]) by smtp.fullrate.dk (Postfix) with SMTP id E92189D086; Thu, 6 May 2010 18:56:04 +0200 (CEST) In-Reply-To: <87y6fy5bjl.fsf@telefonica.net> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Wed, 05 May 2010 22:38:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.97 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124603 Archived-At: =C3=93scar Fuentes writes: > Stefan Monnier writes: > >>>> * One of those annoyances was changing the "next" item on the list of >>>> =C2=A0buffers once you kill the first one, something that I find >>>> =C2=A0confusing. Right now ido may change the order of the buffers aft= er a >>>> =C2=A0kill, but the previous second item appears as the first item on = the >>>> =C2=A0new list. >> >> I don't understand. So you're saying there's a problem (killing may >> change the order) but the current code has a fix for it (at least for >> the "first" element of the remaining list). Right? > > Yes. There is a long-standing and annoying bug in ido:=20 Depending on the ido settings, buffers available, and matching items, simply doing next or prev may change the order of the remaining items. I'm working on a fix, but this is unrelated to the current discussion. At least these versions seem to work better than before. (defun ido-next-match () "Put first element of `ido-matches' at the end of the list." (interactive) (if ido-matches (let ((next (cadr ido-matches))) (setq ido-cur-list (ido-chop ido-cur-list next)) (setq ido-matches (ido-chop ido-matches next)) (setq ido-rescan nil)))) (defun ido-prev-match () "Put last element of `ido-matches' at the front of the list." (interactive) (if ido-matches (let ((prev (car (last ido-matches)))) (setq ido-cur-list (ido-chop ido-cur-list prev)) (setq ido-matches (ido-chop ido-matches prev)) (setq ido-rescan nil)))) --=20 Kim F. Storm http://www.cua.dk