zsh-workers
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: cheer_xiao <xiaqqaix@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Slow completion when using aptitude
Date: Wed, 26 Jan 2011 15:55:26 +0100	[thread overview]
Message-ID: <87d3njemu9.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <AANLkTimKPLUHcHj_aZciwNLDt_+noEW0G=PEdYSVEL9b@mail.gmail.com> (cheer xiao's message of "Wed, 26 Jan 2011 22:21:18 +0800")

cheer_xiao wrote:
> On Wed, Jan 26, 2011 at 4:35 PM, Frank Terbeck <ft@bewatermyfriend.org> wrote:
>> [snip]
>> _aptitude does more than _apt-get. If the second <tab> doesn't take as
>> long as the first, you probably got caching enabled via zstyle.
>
> So the problem is, as I understand, the cache for apt-get is
> persistent, while that of aptitude isn't.
[...]

The difference is, that "aptitude install <tab>" lists uninstalled
packages, whereas "apt-get install <tab>" simply lists all available
packages. The former, while being more appropriate, also takes more
work.

I must admit, that I'm not quite familiar with how compsys' caching is
implemented. I may be giving wrong pointers here. So I should better be
quiet.

>> [snip]
>> Are you sure you don't have two competing versions of zsh installed?
>> Then it may be possible that "print $ZSH_VERSION" and "zsh --version"
>> would yield different results.
[...]
> xiaq@~> aptitude -h | grep build
> [no result]
> xiaq@~> apt-get | grep build
>   build-dep - Configure build-dependencies for source packages
>
>
> I doubt whether zsh's tab-completion of aptitude's(and other
> utilities') verbs works by looking at "aptitude -h" first to generate
> the verbs list. If so, the problem should be considered a bug of
> aptitude that ships with Ubuntu 10.04 instead of zsh. (This has been
> confirmed, so this minor bug belongs to aptitude instead of zsh.)

The aptitude completion *does* in fact look at "aptitude -h" to figure
out which sub-commands to offer. And my aptitude does include it in its
output. Are you sure that your aptitude supports `build-dep'? Because
its author claims the help message was updated the in the same version
the functionality was added:
    <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501998#10>

(Although I think I remember an aptitude that had `build-dep' and didn't
list it in -h output. But I'm not sure.)

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


  reply	other threads:[~2011-01-26 15:18 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-17  9:51 cheer_xiao
2011-01-19 12:33 ` Richard Hartmann
2011-01-26  5:11   ` cheer_xiao
2011-01-26  7:51     ` Julien Nicoulaud
2011-01-26  8:35       ` Frank Terbeck
2011-01-26 14:21         ` cheer_xiao
2011-01-26 14:55           ` Frank Terbeck [this message]
2011-01-26 17:05             ` Bart Schaefer
2011-01-26 17:29               ` Bart Schaefer
2011-01-30  2:49                 ` cheer_xiao
2011-01-30  5:16                   ` Bart Schaefer
2011-01-30  5:53                     ` cheer_xiao
2011-01-30  7:15                       ` Bart Schaefer
2011-01-30 10:40                         ` Julien Nicoulaud
2011-01-30 10:51                           ` Julien Nicoulaud
2011-01-30 11:18                             ` cheer_xiao
2011-01-31  0:02                             ` Bart Schaefer
2011-02-03 10:21                               ` cheer_xiao
2011-02-03 14:56                                 ` Bart Schaefer
2011-02-04  3:24                                   ` cheer_xiao
     [not found]                                   ` <AANLkTinfzf6gM5Z83_+iQqkc+QVzGGKa3yqbPTa+Wm3A@mail.gmail.com>
     [not found]                                     ` <110203193315.ZM22047@torch.brasslantern.com>
2011-02-04  3:44                                       ` cheer_xiao
2011-02-04  3:48                                         ` cheer_xiao
2011-02-04  4:29                                           ` Bart Schaefer
2011-02-04  5:46                                             ` cheer_xiao
2011-02-04 15:04                                               ` Bart Schaefer
2011-02-05  9:13                                                 ` cheer_xiao
     [not found]                                                 ` <AANLkTinftiPPV-TtNU5DQ1+TV6Tb5P6AprBsRGdjoamB@mail.gmail.com>
2011-02-05  9:21                                                   ` cheer_xiao
2011-02-05  9:30                                                 ` cheer_xiao
2011-02-05 17:12                                                   ` gi1242+zsh
2011-02-05 17:48                                                     ` Bart Schaefer
2011-02-05 18:40                                                       ` gi1242+zsh
2011-02-05 17:46                                                   ` Bart Schaefer
2011-02-03 10:23                         ` cheer_xiao
2011-02-03 14:51                           ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3njemu9.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=xiaqqaix@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).