zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: More _zmodload misbehaviour
Date: Fri, 7 Apr 2000 10:11:37 +0200 (MET DST)	[thread overview]
Message-ID: <200004070811.KAA23662@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Thu, 06 Apr 2000 19:45:40 +0100


Peter Stephenson wrote:

> zmodload now removes the .so suffix again, thanks.
> 
> I had a problem completing with . in my path in the Doc directory.  At
> first I get a sensible list of modules.  After I type zsh/, however, I get
> the list:
> 
> Completing module file
> CVS/
> 
> because it's looking in the Zsh subdirectory.  Fine, because I have case
> insenstive matching, except there aren't any .so files there, and there
> certainly are in /usr/local/lib/zsh/3.1.6-dev-21/zsh.  If there's no Zsh
> subdirectory it works OK; I get the list of modules I'm expecting.
> It seems to be preferring things it shouldn't be.

Indeed. Missing initialisation in the loop for the -W paths.

The thing in _main_complete is just a small optimisation.

Bye
 Sven

Index: Completion/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_main_complete,v
retrieving revision 1.4
diff -u -r1.4 _main_complete
--- Completion/Core/_main_complete	2000/04/05 10:50:08	1.4
+++ Completion/Core/_main_complete	2000/04/07 08:09:47
@@ -19,7 +19,7 @@
 setopt localoptions nullglob rcexpandparam extendedglob
 unsetopt markdirs globsubst shwordsplit nounset ksharrays
 
-local func funcs ret=1 tmp _compskip format _comp_ignore \
+local func funcs ret=1 tmp _compskip format \
       _completers _completer _completer_num curtag \
       _matchers _matcher _matcher_num _comp_tags \
       context state line opt_args val_args curcontext="$curcontext" \
@@ -29,7 +29,7 @@
       _saved_list="${compstate[list]}" \
       _saved_insert="${compstate[insert]}"
 
-typeset -U _lastdescr
+typeset -U _lastdescr _comp_ignore
 
 [[ -z "$curcontext" ]] && curcontext=:::
 
Index: Completion/Core/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_path_files,v
retrieving revision 1.5
diff -u -r1.5 _path_files
--- Completion/Core/_path_files	2000/04/05 11:07:26	1.5
+++ Completion/Core/_path_files	2000/04/07 08:09:47
@@ -247,6 +247,8 @@
   # in the following loop, which walks through the pathname components
   # in the string from the line.
 
+  skipped=
+  cpre=
   tpre="$pre"
   tsuf="$suf"
   testpath="$donepath"

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


                 reply	other threads:[~2000-04-07  8:12 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=200004070811.KAA23662@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).