zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: perl -d: completion bug
Date: Sat, 11 Oct 2008 11:02:36 -0700	[thread overview]
Message-ID: <081011110236.ZM18486@torch.brasslantern.com> (raw)
In-Reply-To: <20081011053503.GA93211@redoubt.spodhuis.org>

On Oct 10, 10:35pm, Phil Pennock wrote:
}
} There's a bug in the Perl completion.  perl -d:<tab> completes all Perl
} modules.  What it needs to complete is the sub-string of module names in
} the Devel:: namespace, after the Devel::.

If it were just a matter of restricting to the "Devel::" namespace,
you could change _perl to replace

    '-d\:-[run under control of a debugging/tracing module]:debugging/tracing module:_perl_modules' \

with

    '-d\:-[run under control of a debugging/tracing module]:debugging/tracing module:_perl_modules -F "( *~Devel\:\: )"' \

However, also stripping off the "Devel::" from the front of the matches
is a bit trickier.  What you want is something like "compadd -W" except
that works for things other than filename prefixes.

My best suggestion is to update _perl_modules to take an additional flag
that identifies the module namespace, and use that to change the name of
the caching policy, etc.  Unfortunately I don't have free time right now
to attempt to code it up.


  reply	other threads:[~2008-10-11 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-11  5:35 Phil Pennock
2008-10-11 18:02 ` Bart Schaefer [this message]
2008-10-12  8:58   ` PATCH: " Phil Pennock

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=081011110236.ZM18486@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).