From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26144 invoked from network); 17 Sep 2007 00:36:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) 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.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Sep 2007 00:36:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 91269 invoked from network); 16 Sep 2007 22:49:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Sep 2007 22:49:20 -0000 Received: (qmail 23337 invoked by alias); 16 Sep 2007 22:49:14 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11849 Received: (qmail 23320 invoked from network); 16 Sep 2007 22:49:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Sep 2007 22:49:13 -0000 Received: (qmail 89999 invoked from network); 16 Sep 2007 22:49:13 -0000 Received: from py-out-1112.google.com (64.233.166.180) by a.mx.sunsite.dk with SMTP; 16 Sep 2007 22:49:07 -0000 Received: by py-out-1112.google.com with SMTP id y63so2700431pyg for ; Sun, 16 Sep 2007 15:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; 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=slYgt6UHiDHryGh0/19NrEvgCBPUNPxJ5Esvd0UcF3s=; b=lJg8eCEnGtRgbwE0EpArkzmpJft9BDmzrfyAp3h3Zztpr/1LShlViYYITUjMjisJObnJp5edGnyWx1yTfFW6641oC2YHfEEBLXiHxP0xiz4juuDniz4hz0weOoFhIfHym8YqSrSBgRAdHSJqZF/58nU8urFOyhjI9KtZe+PGldo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MIxYCbs8CwThXv/kdj7qTwy/+AZLm4qpmzeRMUfV4gupE+5Xe/vubXEdaxlgvJS/d7APTp5O1kyloTRhn4B0eV4W+RCs+NXNnZoCZSadYs5SVeAq6M9Wgx9YnyJNXDUFFFhF1TnIhflo1ZVMg4NVnMWszQ9qrPgDN76AbDK6eBk= Received: by 10.65.188.14 with SMTP id q14mr8910263qbp.1189982945343; Sun, 16 Sep 2007 15:49:05 -0700 (PDT) Received: by 10.65.107.13 with HTTP; Sun, 16 Sep 2007 15:49:05 -0700 (PDT) Message-ID: <2d460de70709161549o56ffc1ees5a9b1413fb1bb5c6@mail.gmail.com> Date: Mon, 17 Sep 2007 00:49:05 +0200 From: "Richard Hartmann" To: zsh-users@sunsite.dk Subject: Re: Support for inverting of options? In-Reply-To: <070916153114.ZM21571@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2d460de70709141729y392e7b2dmf137334dc2ee4eec@mail.gmail.com> <070914233613.ZM6486@torch.brasslantern.com> <2d460de70709161417x1e6557c0n4f9ee8a1b2f18df2@mail.gmail.com> <070916153114.ZM21571@torch.brasslantern.com> On 17/09/2007, Bart Schaefer wrote: > On Sep 16, 11:17pm, Richard Hartmann wrote: > } > } Of course, you will pretty much always know what a specific option > } is set to (at least if you touch it in your zshrc), but scripting and > } key-binding gets a lot easier if you use inversion. > > I might agree about keybinding, but I'd say scripting gets *sloppier*, > not easier, with inversion. Miss one inversion, whether by programming > mistake or by run-time error, and everything from then on is trashed. > Far better to explicitly set exactly the state you expect. Well, I meant scripts invoked by key bindings, so we actually agree :) > (Did you intend this to be off-list?) No. I really regret using GMail for my mailing lists, these days.. Disadvantages of your solution over a native invoption are that you can not use the normal setopt and that you can not tab complete on invoption without writing a new completion. Richard