GNU bug report logs - #5952
23.1.95; Some new ido features on top of virtual buffers

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Thu, 15 Apr 2010 10:55:01 UTC

Severity: wishlist

Tags: patch

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5952 in the body.
You can then email your comments to 5952 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5952; Package emacs. (Thu, 15 Apr 2010 10:55:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 15 Apr 2010 10:55:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: John Wiegley <jwiegley <at> gmail.com>
Subject: 23.1.95; Some new ido features on top of virtual buffers
Date: Thu, 15 Apr 2010 11:54:37 +0100
[Message part 1 (text/plain, inline)]
Hello John,

Thank you for the new feature 'virtual buffers' to ido.el in the devel
repo. I have been using a similar feature locally but since discovered
your patch, I switched to it.

Here are three patches that add three features:

1. make it possible to toggle the use of virtual buffers. Bind the
   command to C-o when switching buffer (o for 'old' buffers).

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.

3. automatically bring in virtual buffers when user input doesn't match
   existing ones.

[0001-New-function-ido-toggle-virtual-buffers-and-bind-to-.patch (text/x-patch, attachment)]
[0002-Use-parent-directory-for-files-with-same-base-name.patch (text/x-patch, attachment)]
[0003-Turn-on-virtual-buffers-automatically-when-no-matche.patch (text/x-patch, attachment)]
[Message part 5 (text/plain, inline)]

Leo

Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 15 Apr 2010 18:30:05 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 15 Apr 2010 18:30:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#5952; Package emacs. (Sat, 06 Jul 2013 12:59:02 GMT) Full text and rfc822 format available.

Message #12 received at 5952 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: 5952 <at> debbugs.gnu.org
Subject: Re: bug#5952: 23.1.95; Some new ido features on top of virtual buffers
Date: Sat, 06 Jul 2013 20:58:39 +0800
On 2010-04-15 18:54 +0800, Leo wrote:
> 1. make it possible to toggle the use of virtual buffers. Bind the
>    command to C-o when switching buffer (o for 'old' buffers).
>
> 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.
>
> 3. automatically bring in virtual buffers when user input doesn't match
>    existing ones.

Update: item 1 and 3 are done.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#5952; Package emacs. (Sun, 28 Feb 2016 05:54:01 GMT) Full text and rfc822 format available.

Message #15 received at 5952 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 5952 <at> debbugs.gnu.org, John Wiegley <jwiegley <at> gmail.com>
Subject: Re: bug#5952: 23.1.95; Some new ido features on top of virtual buffers
Date: Sun, 28 Feb 2016 16:22:56 +1030
Leo <sdl.web <at> gmail.com> 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<trunk> instead of <1>, so I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 5952 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 28 Feb 2016 05:54:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 27 Mar 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.