From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6802 invoked by alias); 3 Jun 2016 08:05:45 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21606 Received: (qmail 7899 invoked from network); 3 Jun 2016 08:05:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=po6aqC65nFK1zlXat1HVLDbh3B+nfzBEUziD0645KXg=; b=YlG4wJPYtacO8k7HN0Mo4FCEaQifldzAD9NlPpPTiYy4Xkuh1KPMh3cO30YVfi7+Ko PU7OdfRces5y0ZHO1lVm8rbua4qTEzHtRFf7L6yDACGxPW+dU/iPNBhEZY+8QzfIVDmc KADQow6pvJM9k/zalUd9Ku2fpDgl9+ISTCJLE+4VN7ndPcbYKgkGjXyGTFnBwKtYr+ok v7VVFGuKZPja6sHFrMu4oiwkbpnjYYrIkFWe06aHZbZhNlNxf1RSqiIcu5R3mMwjXMJI wmMo9zfWryWUwb2s1i07YkPUrBpJ8U5EgNlX1RaDYJaXFyaoMK3lWMSgxp/W5O+Vh/+D WoUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=po6aqC65nFK1zlXat1HVLDbh3B+nfzBEUziD0645KXg=; b=VGckmOyHX6Q7sS6qZMD6xYFI9KrUfvEuzA2mPSHen8CKUqA6IrG/D4HuotkredlEWL kPB9cL4Cx/rrqQoyy8p6dcqH9552fH4hRoqsxGwhBevM94RO5N6ut2dMjpgrtEBooCp/ YMKqFYisT+vt6TpbBj+bpcGYPCgNDEw45rXiymCTTu9zCbbrgmYnVccnK5YMEtNkAirP x0dWy4BSedV0Wv3/I9L6pBAGpexKDLqBn6gSoiZOyCv3iCIrmrQAyEblorufnphcj6AD xQJdaCKCcQUc4uSJxJwENEzHbzwIc8IXRwzRvmy6vqnVHjerE9IGkA08MRDrD0e2enPu jJjQ== X-Gm-Message-State: ALyK8tKYzCP22s5o9YpPk69llJuGaBEt1E5ghabuBClZBfYwe4ukTisLH0iySJFNX4/wbA== X-Received: by 10.66.161.2 with SMTP id xo2mr3587057pab.68.1464941140940; Fri, 03 Jun 2016 01:05:40 -0700 (PDT) From: Bart Schaefer Message-Id: <160603010540.ZM22519@torch.brasslantern.com> Date: Fri, 3 Jun 2016 01:05:40 -0700 In-Reply-To: <57500882.6090900@mathphys.fsk.uni-heidelberg.de> Comments: In reply to Paul Seyfert "[solved] Re: _gnu_generic for aliases" (Jun 2, 12:20pm) References: <573D7E67.10600@mathphys.fsk.uni-heidelberg.de> <160601223030.ZM14495@torch.brasslantern.com> <57500882.6090900@mathphys.fsk.uni-heidelberg.de> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: [solved] Re: _gnu_generic for aliases MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 2, 12:20pm, Paul Seyfert wrote: } } defaultprompt > fancy - } } nothing. Aha. The _set_command utility doesn't attempt to do anything with aliases, so it never finds a command to pass to _call_program as the thing to run to generate the --help listing, so there's nothing for _arguments to parse even though it *is* being called via _gnu_generic. } > This might work a lot of the time: } > } > _expand_alias_and_complete() { [...] } > } } > zstyle ':completion:*' completer _complete __expand_alias_and_complete Typo, should only be one leading underscore in _expand_alias_and_complete (my error). } I have that block commented out in testrc. Once I include it, it works! That has to be accidental, because _expand_alias_and_complete should work almost exactly like completion with complete_aliases NOT set. I don't think this is an actual solution. I think _set_command needs tweaking to handle [[ -o complete_aliases ]] but I can't look at this myself for a while.