From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16422 invoked by alias); 23 Mar 2014 06:45:25 -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: 18659 Received: (qmail 25770 invoked from network); 23 Mar 2014 06:45:19 -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 autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140322234515.ZM9387@torch.brasslantern.com> Date: Sat, 22 Mar 2014 23:45:15 -0700 In-reply-to: <532E57E9.7000807@googlemail.com> Comments: In reply to m0viefreak "Re: [PATCH] _git: auto-removable '..' suffix: remove at the end of lines" (Mar 23, 4:41am) References: <532D99DE.6090503@googlemail.com> <1395506625-4132-1-git-send-email-m0viefreak.cm@googlemail.com> <140322103747.ZM9034@torch.brasslantern.com> <532E57E9.7000807@googlemail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: [PATCH] _git: auto-removable '..' suffix: remove at the end of lines MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 23, 4:41am, m0viefreak wrote: } } Thus `-S "=" -q' is the same as `-S "=" -r "= \t\n\-"'. } } Giving -q AND -r is superfluous, so I removed -q. Ah! Looking at the code in compresult.c and zle_misc.c, I believe it's the case that -q and -r are not merely superfluous, they ought to be mutually exclusive: -q is for all practical purposes ignored if -r is also given. It appears that -r also causes $ZLE_SPACE_SUFFIX_CHARS to be ignored (it is probably obvious that -r supplants $ZLE_REMOVE_SUFFIX_CHARS). The part about (not) boldfacing remains a mystery. In addition to _git, _nslookup also passes both -q and -r to compadd, so it presumably has similar breakage.