From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25372 invoked by alias); 23 Jan 2015 05:55:00 -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: 34352 Received: (qmail 20155 invoked from network); 23 Jan 2015 05:54:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, T_FROM_12LTRDOM,T_MANY_HDRS_LCASE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=CoYIqc8G c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YNv0rlydsVwA:10 a=1ZpVjCCxZvmsc5FhBqAA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <150122215434.ZM28991@torch.brasslantern.com> Date: Thu, 22 Jan 2015 21:54:34 -0800 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: zmodload completion reveals _files bug ? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii _zmodload tries to complete module names by completing file paths in the $module_path and then removing the shared library suffix: _requested files expl 'module file' \ _files -W module_path -/g '*.(dll|s[ol]|bundle)(:r)' && ret=0 However, if the file-patterns style is set, that pattern passed to -g may be ignored. E.g. I have zstyle ':completion:*' file-patterns \ '%p:globbed-files *(-/):directories' '*:all-files' and the '*:all-files' pattern is applied in preference to %p, which breaks the zmodload completion. I presume this is because *(:r) are not actual file names, and/or because they are always prefixes of matches for *.