zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: cleanup for _perldoc
Date: Tue, 23 Nov 1999 15:33:36 +0100 (MET)	[thread overview]
Message-ID: <199911231433.PAA09080@beta.informatik.hu-berlin.de> (raw)


I've forgotten to look at this again several times now...

Just a better tagification for _perldoc.

Btw, the pods tag is one of those I'd like to get rid off. Or maybe we 
want to keep all of them? Then we probably should think about using
more descriptive tag-names in other places, too (actually increasing
the number of tags). If not, we should probably try to reduce the
number of tags drastically.

And while I'm talking about administrative stuff anyway... did anyone
have the time to think about the suggested online-help thing? I think
_complete_help (or at least the mechanism it uses) may be a good
starting point. Probably that together with an utility function _help
which can be used by completion functions to `register' help texts.
These texts would be collected and functions like _complete_help could 
access them. We could also improve _complete_help by making functions
like _tags collect information about the function call stack (i.e.
just store ${(j.:.)funcstack[2,-1]} somewhere). I haven't done that
yet because I have no idea how interested users woould in informations 
like this. Will they ever have a look at the functions? Or will they
only `use' it, probably adding simple completion functions for their
environments?


Bye
 Sven

diff -u oldcompletion/User/_perldoc Completion/User/_perldoc
--- oldcompletion/User/_perldoc	Tue Nov 23 15:14:03 1999
+++ Completion/User/_perldoc	Tue Nov 23 15:24:43 1999
@@ -14,16 +14,10 @@
 }
 
 _perl_pods () {
-  local nm="$compstate[nmatches]"
-  local expl
-  
-  _perl_modules
-  _perl_basepods
-
-  _description expl 'Perl modules and .pods'
-  _files "$expl[@]"  -g '*.(pod|pm)'
-
-  [[ nm -ne "$compstate[nmatches]" ]]
+  _alternative \
+    'modules:: _perl_modules' \
+    'pods:: _perl_basepods' \
+    'files:Perl modules and .pods:_files -g \*.\(pod\|pm\)'
 }
 
 _perldoc "$@"

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~1999-11-23 14:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=199911231433.PAA09080@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --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).