From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15920 invoked from network); 16 Apr 2008 01:28:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Apr 2008 01:28:54 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 69424 invoked from network); 16 Apr 2008 01:28:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Apr 2008 01:28:48 -0000 Received: (qmail 20957 invoked by alias); 16 Apr 2008 01:28:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24820 Received: (qmail 20938 invoked from network); 16 Apr 2008 01:28:42 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 16 Apr 2008 01:28:42 -0000 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by bifrost.dotsrc.org (Postfix) with ESMTP id 377B18043AC7 for ; Wed, 16 Apr 2008 03:28:37 +0200 (CEST) Received: by rv-out-0506.google.com with SMTP id g37so933469rvb.21 for ; Tue, 15 Apr 2008 18:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=2+rXuDIaO1cMBpL2wkASYMfcwuD2CQPw3Z7knvXgsO8=; b=Md3TGX5sGuoIhIUb2/AYn7C697PF7ZMP3SAcHMBL8JwDEgvQtCHS7oBlSGvwtnqwUZv+LMQ+Y2K9/vMd8oDOzsmDkEEsTyimLvBzbgoUZLWvpu6mlsS3gP+mKBmDhteDRS8jFtHrO2NDhatax/nwtamynFV3ytpjXsY2HnSFrVY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lAbU9JZnbVIKHywtDF6vvZe0XsJohnHWZMB3jUMVZfGX6OAvf+r1S7iCl0/nGYIZi4veurj9rMUQfJgOWpi/VYkZxs/n4KM48kFmOUxO1bUtaGv4QeIDHsKkgaM/iTiQypMS9i0KmvQEuZd2XsTmn66hALk/2K6+WbSepBF0hLE= Received: by 10.140.201.1 with SMTP id y1mr4755493rvf.200.1208309315934; Tue, 15 Apr 2008 18:28:35 -0700 (PDT) Received: by 10.141.202.18 with HTTP; Tue, 15 Apr 2008 18:28:35 -0700 (PDT) Message-ID: <237967ef0804151828k4d09afc1p1a86283359d78d97@mail.gmail.com> Date: Wed, 16 Apr 2008 03:28:35 +0200 From: "Mikael Magnusson" To: "Zsh Hackers' List" Subject: Re: PATCH: (large) initial support for combining characters in ZLE. In-Reply-To: <20080415174645.0590d589@news01> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080413175442.0e95a241@pws-pc> <237967ef0804140634l7e02ce6fofff7f3f3ec6c8d7c@mail.gmail.com> <20080414145425.566bcb92@news01> <237967ef0804150658h1f8df5e5w422955fc6b92fe29@mail.gmail.com> <20080415174645.0590d589@news01> X-Virus-Scanned: ClamAV 0.91.2/6790/Wed Apr 16 02:21:40 2008 on bifrost X-Virus-Status: Clean On 15/04/2008, Peter Stephenson wrote: > On Tue, 15 Apr 2008 15:58:54 +0200 > > "Mikael Magnusson" wrote: > > > This is better, but I can still put the cursor between the a and the ~. > > > > % zsh -f > > > > % setopt combiningchars > > > > % print -z $'\u0342' > > > > the buffer should now contain an inverted <0342>, press left or ctrl-a > > > > or whatever to go to the start of the line and press 'a'. > > But instead of pressing a, type a '!' and go left again and press 'a', > > then press ctrl-d. (or ctrl-t) > > > OK, so we need to fix things up right at the end after an operation in case > it generated some combinations a sneaky way. Hence some more CCRIGHT()s. > > > > Another thing I noticed is that ctrl-t moves just the combining char, > > not the whole base+combiningchar, but that might already be on your > > todo as a subset of "fix widgets" :). > > > This should help with fixing the word stuff, when I get round to it... > > I'm fed up with the names zle_misc.c and zle_utils.c. I can never find > anything. I wonder if I'm just being evil now... zsh -f setopt interactivecomments function toggleopt() { #is there some easier way to do this? [[ $options[$1] = on ]] && setopt no$1 || setopt $1 } compdef _options toggleopt=setopt function _togglecombining() { toggleopt combiningchars } zle -N _togglecombining bindkey ^K _togglecombining print -z $'a\u0342' ... sorry :) -- Mikael Magnusson