From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17970 invoked by alias); 23 May 2011 16:57:48 -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: 29362 Received: (qmail 24651 invoked from network); 23 May 2011 16:57:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110523095742.ZM15497@torch.brasslantern.com> Date: Mon, 23 May 2011 09:57:42 -0700 In-reply-to: <1306119311-25431-1-git-send-email-mikachu@gmail.com> Comments: In reply to Mikael Magnusson "Re: tab inserts literal tab instead of completing at beginning of line" (May 23, 4:55am) References: <110522192758.ZM718@torch.brasslantern.com> <1306119311-25431-1-git-send-email-mikachu@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: tab inserts literal tab instead of completing at beginning of line MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On May 23, 4:55am, Mikael Magnusson wrote: } } On 23 May 2011 04:27, Bart Schaefer wrote: } > You're running into a strange combination of effects. The completion } > internals initialize compstate[insert]=tab only when an actual tab is } > pressed, but the effect of explicitly assigning compstate[insert]=tab } > inside a completion function is to change the final keystroke into a } > self-insert. I'm trying to decide if this is worth documenting. } A tangent, I was just staring at these tests, and the (|[[:blank:]]*) } thing that appears on both sides, shouldn't the asterisk be to the left } of the blank when the thing is to the left of the word? I think you're correct about that. There may be a few places that need that change. The two patches at the end of your message look fine if you want to commit one or the other (the "empty" one needs doc added, of course).