zsh-workers
 help / color / mirror / code / Atom feed
* Completion bug in 4.3.4
@ 2007-09-11 23:25 Peter Hosey
  2007-09-13 16:56 ` Peter Stephenson
  2007-09-26 15:20 ` Peter Stephenson
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Hosey @ 2007-09-11 23:25 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]

I'm not subscribed, so please address replies directly to me.

echo $ZSH_VERSION                                    %/Volumes/RAM  
Disk/test(0)
4.3.4
___
ls                                                   %/Volumes/RAM  
Disk/test(0)
wordpress-tagline-field-nq8.png         wordpress-tagline-field.png
___
du -b tagline                                        %/Volumes/RAM  
Disk/test(0)
[I hit tab after “tagline”]
du -b -wordpresstagline-field                        %/Volumes/RAM  
Disk/test(0)

Notice the appearance of the first hyphen in the wrong position.

I use the vi settings (EDITOR=vim). I'm running Mac OS X 10.4.10 on a  
Mac Pro two-by-two 2.66 GHz. I configured with:

	./configure --enable-pcre --enable-cap --enable-multibyte

PCRE information from /usr/local/include/pcre.h:

	#define PCRE_MAJOR          7
	#define PCRE_MINOR          2
	#define PCRE_PRERELEASE
	#define PCRE_DATE           2007-06-19

Also, I use zshcompsys. I can send you .zcompdump if you want it.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Completion bug in 4.3.4
  2007-09-11 23:25 Completion bug in 4.3.4 Peter Hosey
@ 2007-09-13 16:56 ` Peter Stephenson
  2007-09-13 17:18   ` Peter Hosey
  2007-09-26 15:20 ` Peter Stephenson
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2007-09-13 16:56 UTC (permalink / raw)
  To: Peter Hosey; +Cc: zsh-workers

Peter Hosey wrote:
> ___
> ls                                                   %/Volumes/RAM  
> Disk/test(0)
> wordpress-tagline-field-nq8.png         wordpress-tagline-field.png
> ___
> du -b tagline                                        %/Volumes/RAM  
> Disk/test(0)
> [I hit tab after tagline]
> du -b -wordpresstagline-field                        %/Volumes/RAM  
> Disk/test(0)
> 
> Notice the appearance of the first hyphen in the wrong position.

Can you post the output of "zstyle -L"?  It looks like you probably
have matcher-list or something similar set.

There were non-ASCII characters in you comment in square brackets, but I
presume the file names are plain ASCII.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Completion bug in 4.3.4
  2007-09-13 16:56 ` Peter Stephenson
@ 2007-09-13 17:18   ` Peter Hosey
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Hosey @ 2007-09-13 17:18 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]

On Sep 13, 2007, at 09:56:07, Peter Stephenson wrote:
> Can you post the output of "zstyle -L"?  It looks like you probably  
> have matcher-list or something similar set.

Yup:

zstyle -L                                            %/Volumes/RAM  
Disk/test(0)
zstyle :compinstall filename /Users/boredzo/.zshcomp
zstyle ':completion:*' use-compctl true
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' select-prompt %SScrolling active: current  
selection at %p%s
zstyle ':completion:*' menu 'select=1'
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'm:{a-zA-Z}= 
{A-Za-z} l:|=* r:|=*' 'm:{a-zA-Z}={A-Za-z} r:|[._-]=* r:|=*'
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the  
character to insert%s
zstyle ':completion:*' ignore-parents parent pwd directory
zstyle ':completion:*' expand prefix
zstyle ':completion:*' completer _expand _complete _correct _approximate

> … I presume the file names are plain ASCII.

They are.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Completion bug in 4.3.4
  2007-09-11 23:25 Completion bug in 4.3.4 Peter Hosey
  2007-09-13 16:56 ` Peter Stephenson
@ 2007-09-26 15:20 ` Peter Stephenson
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Stephenson @ 2007-09-26 15:20 UTC (permalink / raw)
  To: Peter Hosey, Zsh Hackers' List

On Tue, 11 Sep 2007 16:25:33 -0700
Peter Hosey <prh@boredzo.org> wrote:
> I'm not subscribed, so please address replies directly to me.
> 
> echo $ZSH_VERSION                                    %/Volumes/RAM  
> Disk/test(0)
> 4.3.4
> ___
> ls                                                   %/Volumes/RAM  
> Disk/test(0)
> wordpress-tagline-field-nq8.png         wordpress-tagline-field.png
> ___
> du -b tagline                                        %/Volumes/RAM  
> Disk/test(0)
> [I hit tab after “tagline”]
> du -b -wordpresstagline-field                        %/Volumes/RAM  
> Disk/test(0)
> 
> Notice the appearance of the first hyphen in the wrong position.

I can reproduce this, with the styles you sent, and I can vaguely see that
the struct cline list passed to cline_str in compresult.c is out of order
so that the function is inserting a "-" first, then the "worpress" chunk, etc.
However, that's already taken well over an hour and I currently haven't a
clue how it's got that way.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-26 15:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-11 23:25 Completion bug in 4.3.4 Peter Hosey
2007-09-13 16:56 ` Peter Stephenson
2007-09-13 17:18   ` Peter Hosey
2007-09-26 15:20 ` Peter Stephenson

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).