From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: something really wrong with rpm -qf tab completion (24.0.95.1) Date: Fri, 06 Apr 2012 13:30:58 -0400 Message-ID: <6pfwcgaht9.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1333733468 13762 80.91.229.3 (6 Apr 2012 17:31:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2012 17:31:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Neal Becker Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 06 19:31:07 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SGD07-0006mg-HT for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2012 19:31:07 +0200 Original-Received: from localhost ([::1]:58206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGD06-0003bX-Oy for ged-emacs-devel@m.gmane.org; Fri, 06 Apr 2012 13:31:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGD02-0003aH-Tr for emacs-devel@gnu.org; Fri, 06 Apr 2012 13:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGD00-0001pq-5I for emacs-devel@gnu.org; Fri, 06 Apr 2012 13:31:02 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:49919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGD00-0001pY-28 for emacs-devel@gnu.org; Fri, 06 Apr 2012 13:31:00 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SGCzy-0002mx-7m; Fri, 06 Apr 2012 13:30:58 -0400 X-Spook: IMF IRA Axis of Evil virus Sundevil eternity server X-Ran: =IX*"qKNiEDhL>p/^e=F~dA]|I4N/yk/aad>A17moVJepYh(^Ir)jv(7{zq~AACT3Ef;gT X-Hue: magenta X-Attribution: GM In-Reply-To: (Neal Becker's message of "Fri, 06 Apr 2012 09:50:29 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149435 Archived-At: 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.