zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: Use of named directories in completions broken.
Date: Mon, 30 Apr 2001 16:47:23 +0100	[thread overview]
Message-ID: <Tc0a88d01533c851c99@mailsweeper01.cambridgesiliconradio.com> (raw)
In-Reply-To: Your message of "Mon, 30 Apr 2001 11:37:27 BST." <Tc0a88d01533b695b1d@mailsweeper01.cambridgesiliconradio.com>

Still having problems with this...

% echo ~dev/<TAB>

does menu completion as expected.

% echo ~dev/sr<TAB>

should complete to ~dev/src/ but expands instead (then does completion on
that the next time round).  Similar problem with plain ~/ .  Here's the
_expand part of the trace for the first example.  Should that pattern on
line 36 begin (~*/*| rather than (~*/| ?

+_expand:10> setopt localoptions nonomatch
+_expand:12> [[ _matcher_num -gt 1 ]]
+_expand:14> local exp word sort expr expl subd suf=  force opt asp tmp opre pre epre
+_expand:16> ((  0  ))
+_expand:21> [[ _main_complete == _prefix ]]
+_expand:24> word=~dev/sr 
+_expand:27> [[ ~dev/sr == *$(|{[^}]#) || ~dev/sr == *$[a-zA-Z0-9_]## ]]
+_expand:35> zstyle -T :completion::expand::: suffix
+_expand:36> [[ ~dev/sr == (~*/|*$(|[=~#^+])[a-zA-Z0-9_[]]##[^a-zA-Z0-9_[]]|*${*}?) ]]
+_expand:40> zstyle -t :completion::expand::: accept-exact
+_expand:41> [[ 2 -eq 2 && ! -o recexact ]]
+_expand:50> exp=( ~dev/sr ) 
+_expand:56> [[  == *s* ]]
+_expand:57> zstyle -T :completion::expand::: substitute
+_expand:58> [[ ! -o ignorebraces && 0 == 0 ]]
+_expand:59> eval exp=( \~dev/sr )
+_expand:59> exp=( ~dev/sr ) 
+_expand:60> eval exp=( ${${(e)exp//\\[ 	
]/ }//(#b)([ 	
])/\\$match[1]} )
+_expand:60> exp=( ~dev/sr ) 
+_expand:69> [[ -z ~dev/sr ]]
+_expand:71> subd=( ~dev/sr ) 
+_expand:75> [[  == *g* ]]
+_expand:75> zstyle -T :completion::expand::: glob
+_expand:76> eval exp=( ${~exp//(#b)\\[ 	
]/$match[1]} ); exp=( ${(q)exp} )
+_expand:76> exp=( /home/pws/bc01/bc01/dev/sr ) 
+_expand:76> exp=( /home/pws/bc01/bc01/dev/sr ) 
+_expand:85> ((  1  ))
+_expand:87> [[ 1 -eq 1 && /home/pws/bc01/bc01/dev/sr == ~dev/sr(|(N)) ]]
+_expand:92> [[  == *o* ]]
+_expand:93> zstyle -t :completion::expand::: subst-globs-only
+_expand:96> zstyle -s :completion::expand::: keep-prefix tmp
+_expand:96> tmp=changed 
+_expand:98> [[ ~dev/sr == (~*/*|*$*/*) && changed == (yes|true|on|1|changed) ]]
+_expand:99> [[ ~dev/sr == *$* ]]
+_expand:102> opre=~dev 
+_expand:104> eval epre=( ${(e)~opre} )
+_expand:104> epre=( /home/pws/bc01/bc01/dev ) 
+_expand:106> [[ -n /home/pws/bc01/bc01/dev && 1 -eq 1 ]]
+_expand:107> pre=/home/pws/bc01/bc01/dev 
+_expand:108> [[ changed != changed || 1 -gt 1 || ~dev/sr != ~dev/sr ]]
+_expand:111> [[ 1 -eq 1 && /home/pws/bc01/bc01/dev/sr == ~dev/sr ]]
+_expand:116> zstyle -s :completion::expand::: sort sort
+_expand:118> [[  == (yes|true|1|on) ]]
+_expand:120> zstyle -s :completion::expand::: add-space tmp
+_expand:126> asp=file 
+_expand:131> ((  1 == 1  ))
+_expand:132> [[ -d /home/pws/bc01/bc01/dev/sr ]]
+_expand:134> [[ file == yes* || file == *file && -f /home/pws/bc01/bc01/dev/sr ]]
+_expand:138> suf= 
+_expand:142> [[ -z menu ]]
+_expand:151> _tags all-expansions expansions original
+_expand:193> compstate[insert]=menu 
+_expand:196> return 0

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


  parent reply	other threads:[~2001-04-30 15:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-30 10:37 Peter Stephenson
2001-04-30 11:08 ` PATCH: " Sven Wischnowsky
2001-04-30 11:19   ` Peter Stephenson
2001-04-30 11:25     ` Sven Wischnowsky
2001-04-30 15:47 ` Peter Stephenson [this message]
2001-05-02  8:57   ` Sven Wischnowsky

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=Tc0a88d01533c851c99@mailsweeper01.cambridgesiliconradio.com \
    --to=pws@csr.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).