From: Adam Spiers <adam@spiers.net>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: improved _perl_modules
Date: Thu, 27 Apr 2000 00:59:42 +0100 [thread overview]
Message-ID: <20000427005942.B16378@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <200004250809.KAA01270@beta.informatik.hu-berlin.de>; from wischnow@informatik.hu-berlin.de on Tue, Apr 25, 2000 at 10:09:07AM +0200
Sven Wischnowsky (wischnow@informatik.hu-berlin.de) wrote:
>
> Adam Spiers wrote:
>
> > If Perl isn't found by the `which' below, it might be nice to warn the
> > user, but I don't know how to do that. I thought of _message but the
> > list of completions gets in the way ... Maybe it's not worth the
> > effort.
>
> I haven't tried, but _message should work under every circumstance. And
> from my experience with _arguments, it seems to. Could you give us a
> simple example?
Strange, it seems to work now.
Index: Completion/User/_perl_modules
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_perl_modules,v
retrieving revision 1.2
diff -u -r1.2 _perl_modules
--- Completion/User/_perl_modules 2000/04/26 08:36:44 1.2
+++ Completion/User/_perl_modules 2000/04/26 23:59:13
@@ -31,6 +31,7 @@
else
# If perl isn't there, one wonders why the user's trying to
# complete Perl modules. Maybe her $path is wrong?
+ _message "Didn't find perl on \$PATH; guessing @INC ..."
setopt localoptions extendedglob
inc=( /usr/lib/perl5{,/{site_perl/,}<5->.([0-9]##)}(N)
next prev parent reply other threads:[~2000-04-26 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-25 8:09 Sven Wischnowsky
2000-04-26 23:59 ` Adam Spiers [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-04-22 16:11 Adam Spiers
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=20000427005942.B16378@thelonious.new.ox.ac.uk \
--to=adam@spiers.net \
--cc=zsh-workers@sunsite.auc.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).