zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: globcomplete desctroys file completion
Date: Sun, 22 Feb 2009 18:25:19 -0800	[thread overview]
Message-ID: <090222182519.ZM5452@torch.brasslantern.com> (raw)
In-Reply-To: <slrngq3dr7.2hh.joerg@alea.gnuu.de>

On Feb 22,  8:36pm, ( Text in unknown character set UTF-8 not shown )  wrote:
} Subject: Re: globcomplete desctroys file completion
}
} Bart Schaefer <schaefer@brasslantern.com> wrote:
} > For example, T*/t*/t* should among other files match Tmp/texlive/tlpkg
} > and Tmp/texlive2008/tlpkg, but when you complete without globcomplete
} > you're offered Tmp/texlive/te as a unique prefix.  How can that be
} > correct?
} 
} Because the cursor is placed after texlive and I can select between
} texlive and texlive2008 before continuing.

That makes the cursor placement correct but the trailing "e" still not.
However, I think that's unrelated, so let's ignore it.
 
} I've put these two logs at
} http://alioth.debian.org/~jo-guest/zsh-with-globcomplete
} http://alioth.debian.org/~jo-guest/zsh-without-globcomplete

The line numbers of the functions differ a bit from what I've got out
of the latest CVS, but the problem appears to be the same as what I
outlined in my last two messages.

If I simply comment out the extra -s option in the tmp4 assignment,
then I get the correct completion but the wrong cursor placement:

torch% print T/t/t<TAB>
torch% print Tmp/texlive/t

Cursor is at the end, rather than on the last slash, so if I proceed
into menu completion with another TAB I'm not offered texlive2008 as
a possibility.  Of course that happens withOUT globcomplete as well,
but at least in that case the cursor is at the potential point of
ambiguity.

So there's something wrong with that "tmpdisp" branch of _path_files,
but I'm not yet seeing what.


      reply	other threads:[~2009-02-23  2:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-21 14:18 Jörg Sommer
2009-02-21 19:16 ` Bart Schaefer
2009-02-22  0:57   ` Bart Schaefer
2009-02-25 20:39     ` Peter Stephenson
2009-02-25 20:48       ` Peter Stephenson
2009-02-26  0:24         ` Jörg Sommer
2009-02-26  1:30         ` Bart Schaefer
2009-02-26  4:12           ` Bart Schaefer
2009-02-26 10:49             ` Peter Stephenson
2009-02-22 20:36   ` Jörg Sommer
2009-02-23  2:25     ` Bart Schaefer [this message]

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=090222182519.ZM5452@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).