GNU bug report logs -
#6847
23.2; ibuffer-filter-by-filename ignores buffer directory names
Previous Next
Reported by: Damyan Pepper <damyanp <at> gmail.com>
Date: Thu, 12 Aug 2010 10:17:02 UTC
Severity: normal
Tags: patch
Found in version 23.2
Fixed in version 26.1
Done: Stefan Kangas <stefan <at> marxist.se>
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 6847 in the body.
You can then email your comments to 6847 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6847
; Package
emacs
.
(Thu, 12 Aug 2010 10:17:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Damyan Pepper <damyanp <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 12 Aug 2010 10:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When using ibuffer.el if I set it to filter by filename then dired
buffers visiting directories are not included in the filter. This is
inconsistent with the way that ibuffer displays the buffers.
For example, if I start with emacs -Q, open a few buffers and run M-x ibuffer:
MR Name Size Mode Filename/Process
-- ---- ---- ---- ----------------
[ Default ]
README 5276 Fundamental c:/emacs-23.2/README
% emacs-23.2 857 Dired by name c:/emacs-23.2/
% etc 5627 Dired by name c:/emacs-23.2/etc/
% bin 1299 Dired by name c:/emacs-23.2/bin/
*scratch* 191 Lisp Interaction
* *Messages* 131 Fundamental
6 buffers 13381 4 files, no processes
and then press "/ f emacs" I get:
MR Name Size Mode Filename/Process
-- ---- ---- ---- ----------------
[ Default ]
README 5276 Fundamental c:/emacs-23.2/README
1 buffer 5276 1 file, no processes
Note that the emacs-23.2, etc and bin buffers all have an entry in the
"Filename/Process" column that is ignored by the filter.
In GNU Emacs 23.2.1 (i386-mingw-nt5.2.3790)
of 2010-05-08 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.2.3790
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENG
value of $XMODIFIERS: nil
locale-coding-system: cp1252
default enable-multibyte-characters: t
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#6847
; Package
emacs
.
(Sun, 04 Aug 2019 17:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6847 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tags 6847 + patch
quit
Damyan Pepper <damyanp <at> gmail.com> writes:
> When using ibuffer.el if I set it to filter by filename then dired
> buffers visiting directories are not included in the filter. This is
> inconsistent with the way that ibuffer displays the buffers.
>
> For example, if I start with emacs -Q, open a few buffers and run M-x ibuffer:
>
> MR Name Size Mode Filename/Process
> -- ---- ---- ---- ----------------
> [ Default ]
> README 5276 Fundamental c:/emacs-23.2/README
> % emacs-23.2 857 Dired by name c:/emacs-23.2/
> % etc 5627 Dired by name c:/emacs-23.2/etc/
> % bin 1299 Dired by name c:/emacs-23.2/bin/
> *scratch* 191 Lisp Interaction
> * *Messages* 131 Fundamental
>
> 6 buffers 13381 4 files, no processes
>
> and then press "/ f emacs" I get:
>
> MR Name Size Mode Filename/Process
> -- ---- ---- ---- ----------------
> [ Default ]
> README 5276 Fundamental c:/emacs-23.2/README
>
> 1 buffer 5276 1 file, no processes
>
>
> Note that the emacs-23.2, etc and bin buffers all have an entry in the
> "Filename/Process" column that is ignored by the filter.
I think this use case should be mostly covered by the recently added
ibuffer-filter-by-directory command:
commit 35aaa6b6aa9a2e7b42465603fb32355a009c510f
Author: Christopher Genovese <genovese <at> cmu.edu>
Date: Tue Dec 20 17:41:56 2016 +0900
ibuffer: New filters and commands
But it would seem that this command never got a key binding. This is an
excerpt from C-h f ibuffer-mode:
Filtering commands:
‘M-x ibuffer-filter-chosen-by-completion’ - Select and apply
filter chosen by completion.
‘/ RET’ - Add a filter by any major mode.
‘/ m’ - Add a filter by a major mode now in use.
‘/ M’ - Add a filter by derived mode.
‘/ n’ - Add a filter by buffer name.
‘/ c’ - Add a filter by buffer content.
‘/ b’ - Add a filter by basename.
‘M-x ibuffer-filter-by-directory’ - Add a filter by directory name.
‘/ f’ - Add a filter by filename.
‘/ .’ - Add a filter by file extension.
I suggest to add the keybinding "/ F" for ibuffer-filter-by-directory
and "/ SPC" for ibuffer-filter-chosen-by-completion. Perhaps "/ d" or
"/ D" would be more natural for the directory case, but alas they are
already taken.
Please see the attached patch.
Thanks,
Stefan Kangas
[0001-Add-key-bindings-for-ibuffer-filter-commands.patch (application/x-patch, attachment)]
Added tag(s) patch.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Sun, 04 Aug 2019 17:42:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#6847
; Package
emacs
.
(Sat, 14 Sep 2019 00:10:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 6847 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefan <at> marxist.se> writes:
> I suggest to add the keybinding "/ F" for ibuffer-filter-by-directory
> and "/ SPC" for ibuffer-filter-chosen-by-completion. Perhaps "/ d" or
> "/ D" would be more natural for the directory case, but alas they are
> already taken.
>
> Please see the attached patch.
Unless there are any objections, I'll commit this change in a couple of days.
Best regards,
Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#6847
; Package
emacs
.
(Thu, 26 Sep 2019 16:59:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 6847 <at> debbugs.gnu.org (full text, mbox):
fixed 6847 26.1
close 6847
quit
Stefan Kangas <stefan <at> marxist.se> writes:
> > I suggest to add the keybinding "/ F" for ibuffer-filter-by-directory
> > and "/ SPC" for ibuffer-filter-chosen-by-completion. Perhaps "/ d" or
> > "/ D" would be more natural for the directory case, but alas they are
> > already taken.
> >
> > Please see the attached patch.
>
> Unless there are any objections, I'll commit this change in a couple of days.
No comments in 12 days, so I've now pushed this as commit 9d002e5049.
This bug was technically already fixed already in 26.1, as mentioned
earlier. I'm therefore closing this bug as such.
Best regards,
Stefan Kangas
bug Marked as fixed in versions 26.1.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Thu, 26 Sep 2019 16:59:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
6847 <at> debbugs.gnu.org and Damyan Pepper <damyanp <at> gmail.com>
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Thu, 26 Sep 2019 16:59:03 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
.
(Fri, 25 Oct 2019 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.