From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#5952: 23.1.95; Some new ido features on top of virtual buffers Date: Sun, 28 Feb 2016 16:22:56 +1030 Message-ID: <8760x9v0sn.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456638861 26542 80.91.229.3 (28 Feb 2016 05:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2016 05:54:21 +0000 (UTC) Cc: 5952@debbugs.gnu.org, John Wiegley To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 28 06:54:10 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 1aZuIz-0000R4-Hv for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Feb 2016 06:54:09 +0100 Original-Received: from localhost ([::1]:57612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZuIy-0004vI-Sx for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Feb 2016 00:54:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZuIu-0004sA-Uq for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2016 00:54:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZuIr-0007lU-Pd for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2016 00:54:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZuIr-0007lQ-Ms for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2016 00:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZuIr-0007wn-Hq for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2016 00:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2016 05:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5952 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 5952-submit@debbugs.gnu.org id=B5952.145663881430496 (code B ref 5952); Sun, 28 Feb 2016 05:54:01 +0000 Original-Received: (at 5952) by debbugs.gnu.org; 28 Feb 2016 05:53:34 +0000 Original-Received: from localhost ([127.0.0.1]:49347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZuIQ-0007vo-K7 for submit@debbugs.gnu.org; Sun, 28 Feb 2016 00:53:34 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:34243) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZuIO-0007vf-RA for 5952@debbugs.gnu.org; Sun, 28 Feb 2016 00:53:33 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZuHz-0003Yp-De; Sun, 28 Feb 2016 06:53:08 +0100 In-Reply-To: (Leo's message of "Thu, 15 Apr 2010 11:54:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aZuHz-0003Yp-De MailScanner-NULL-Check: 1457243588.59076@3D5fmcCnzR18SA/t/ULMxA 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114012 Archived-At: Leo writes: > 2. handle files with same base names by appending one level of parent > directory. Some files may still be ignored but the chance is much > slimmer. [...] > +(defun ido-find-duplicate-basenames (files) > + "Find all the duplicate base names in FILES." > + (let ((names (mapcar 'file-name-nondirectory files)) > + dups head dup-p) > + (setq names (sort names 'string<)) > + (while names > + (setq head (pop names)) > + (while (string= head (car names)) > + (pop names) > + (setq dup-p t)) > + (when dup-p > + (push head dups) > + (setq dup-p nil))) > + dups)) [...] > + (let ((dups (ido-find-duplicate-basenames recentf-list)) > + name dir) > (dolist (head recentf-list) > (and (setq name (file-name-nondirectory head)) > (null (get-file-buffer head)) > + (if (not (member name dups)) > + t > + (setq dir head) > + (dotimes (__ 2) > + (setq dir (directory-file-name (file-name-directory dir)))) > + (setq name (file-relative-name head dir))) I don't think this is needed any more, since Emacs now creates buffers like foo.c instead of <1>, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no