emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: something really wrong with rpm -qf tab completion (24.0.95.1)


From: Glenn Morris
Subject: Re: something really wrong with rpm -qf tab completion (24.0.95.1)
Date: Fri, 06 Apr 2012 13:30:58 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Neal Becker wrote:

> emacs:  "24.0.95.1"
> fedora linux 16 x86_64
>
> In shell mode:
> rpm -qf /usr/lib64/pyth
> then hit tab.  cpu goes to 100%, emacs is unresponsive for a LONG time.

Thanks for the report. This should really have gone to bug list though.

Anyway, it's doing `rpm -q -a', which can be slow, depending on your
system. It's dumb, in that:

it should probably give an explanatory message before running that command

it doesn't try to cache the result of this slow command in any way (cf
eg woman)

it should not actually be running this command when the "-f" argument is
used (compare with rpm -q -f TAB), it should be doing filename
completion

if you use `rpm -q -f', it does better, doing filename completion, but the
results it presents are all files, rather than just *.rpm files.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]