From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16646 invoked by alias); 23 Oct 2016 00:15:10 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39709 Received: (qmail 9098 invoked from network); 23 Oct 2016 00:15:09 -0000 X-Qmail-Scanner-Diagnostics: from mail-it0-f49.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.214.49):SA:0(0.0/5.0):. Processed in 0.391429 secs); 23 Oct 2016 00:15:09 -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=0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: xzeroknightx@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.214.49 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=FCb1bMajPQ3ypVWKjBDBJrUcLm5cHkRF6vHRUagHmSU=; b=xAM2GUxf/aiG0yAsKOMgafvsYL94bICg36EGcBCNWxn2CC/jp1Oxg+2uMRdFDQeEgF IcCXD8nHrjQAbheQ2kmQkrEnm3tRk3vDQ8XPEZNifOjShBn+R+uTi8N3RM85/KVHJoZ3 DZi87OSTk5MssWVfwmatwAc+O4pqDZBI50Ow2Yvy0yua11PrlNMwXE96E4ViQ/eKtU0C IWN98NOyLcnmC3PjmP9+JQdayzOy0nIbaWqPoq3u9LJQ+ZUdr9rlvBrW2KEY71oTLDm7 g4t/sAkK5BhZXzSU3RFC9NDdBmnK1y9R8TsFxHZ5L/NKXzCWLE5YqAi651VE6F0wIXZC 1IXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FCb1bMajPQ3ypVWKjBDBJrUcLm5cHkRF6vHRUagHmSU=; b=Li68ULaD8yfaJJkYNUO8M9Xcuu6tHtHZ51LaiwGbDqd0WNqyy8eelr5G0XriQfuA7M KhOsbZcZJs2jcLYZXMyMrsZ/6V8V4X8HXUZvP/kYr4mcn8f8uvUnRZbODQZX8I8F6hy5 a1gMqyF8u2mWR5g7Gv0QQq+b8uCTY0ap+mgr/mxkczhu1aAHL2E6eLf1iKSiZYG+QUMr ac4/+HY8uIC/DQ8P2isDilgQk6o7r6l5OMOvcGNh3pVBublAxk5OW3rNGQb1OenZ58fd uSp+lO6Zzvn1PTzEN40r/oKTe3pInDiXtINhuJZymkzEuUc4Q0mKIUororRNTTR4xYTQ MkTw== X-Gm-Message-State: ABUngvduML6L0BROSR+lrjP2pbU+e50Zib0ntEgdjdBEkjH6CkZ+55DOFL7LCGJUVRMCikjWv/Tbah4UO8mtGw== X-Received: by 10.36.23.20 with SMTP id 20mr5360589ith.26.1476915566431; Wed, 19 Oct 2016 15:19:26 -0700 (PDT) MIME-Version: 1.0 From: Alex George Date: Wed, 19 Oct 2016 22:19:15 +0000 Message-ID: Subject: [BUG] _expand completer's all-expansions tag format style does not expand %o To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=001a11444802b353ef053f3f33c6 --001a11444802b353ef053f3f33c6 Content-Type: text/plain; charset=UTF-8 I have found a bug with the _expand completer regarding the format style. zshcompsys(1) states the following about the _expand completer: The format string for all-expansions and for expansions may contain the sequence `%o' which will be replaced by the original string from the line. However, the all-expansions tag does not actually expand %o unlike the expansions tag. I am using zsh v5.2, but have confirmed the bug's presence upstream as well. This behavior can be reproduced as follows: * Include the _expand completer in your completer style * bindkey '^I' complete-word * zstyle ':completions:*:*expansions' format '>%d for [%o]' % cd $(mktemp -d) % touch foo bar % print * >expansions for [*] bar foo >all-expansions for [] bar foo I believe the problem is the lack of a _description all-expansions expl all-expansions "o:$word" line in Completion/Base/Completer/_expand. I was able to fix the issue by adding that line under line 210 of the _expand completer, but I don't know enough about the completion system guts to determine if this is the ideal solution or not. I don't believe I have received a subscription confirmation email yet, so would you kindly CC replies to xzeroknightx [AT] gmail [DOT] com ? Regards, Alex George --001a11444802b353ef053f3f33c6--