zsh-users
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Takeshi Banse <thb@laafc.net>, zsh-users@zsh.org
Subject: Re: change in zstyle file-patterns handling between 5.5.1 & 5.6(.2)?
Date: Mon, 17 Sep 2018 16:09:35 -0500	[thread overview]
Message-ID: <55C711AB-99AB-4626-BB39-4D6FAA9040EF@dana.is> (raw)
In-Reply-To: <1537189264.3230152.1510729240.5AE4F7C2@webmail.messagingengine.com>

On 17 Sep 2018, at 08:01, Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
>I'm not sure, however, what that means in practice.  I *thought* that in
>compadd, when an option flag is repeated its last occurrence wins, but
>'compadd -ld foo -d bar' uses $foo, not $bar...

Yeah, it's been my experience that, with compadd options, it's usually the
*first* one wins. That's why the list-dirs-first thing is broken; the
_path_files call when that's enabled has gone from this...

  _path_files \
    -J directories -X 'completing directory:' \
    -g '*(-/)' \
    -J argument-rest -X 'completing files:'

... to this...

  _path_files \
    -g '*(-/)' \
    -J argument-rest -X 'completing files:' \
    -J directories -X 'completing directory:'

... and so it never adds that directories group.

dana


  reply	other threads:[~2018-09-17 21:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-16 11:50 ml.zsh-workers.454
2018-09-17  2:27 ` Takeshi Banse
2018-09-17  5:58   ` dana
2018-09-17 13:01     ` Daniel Shahaf
2018-09-17 21:09       ` dana [this message]
2018-09-25  0:13   ` dana

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=55C711AB-99AB-4626-BB39-4D6FAA9040EF@dana.is \
    --to=dana@dana.is \
    --cc=d.s@daniel.shahaf.name \
    --cc=thb@laafc.net \
    --cc=zsh-users@zsh.org \
    /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).