From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24250 invoked by alias); 5 Jun 2015 14:21:08 -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: 35394 Received: (qmail 2256 invoked from network); 5 Jun 2015 14:21:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1433513724; bh=fuJY/k+p5rnL6K7aegDBmP7G5JzbmJJdL455qlqeDaw=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=JBYTMRCUiwJ9RsaCIvYoZwHhMt/H5SiE542X0Lp700ZuJFO+BObyJaB4VfVir2xSFjTucDYM4opsB3MkAeK7oOpv9sZjaG63pS5yRA/EM91PBKEaJbnhvIrqxGtAuXwfM0iUTuhVC2WlLSV2BvVlhtvX59OZuDEIyqgIW3u75gFxcKCN7BWMRPI417zekzVyCIGOLsZgys+S1AFFcF2CFGFKgAQocd+qVQ/sO4vgWP3it6POIiQPn34EA9gGEuq2iEOTFrv2D+y6Gy3Sq+r2SnLWq+e3a4HnjhdHP9+EKW9xZK/TD1l0qxwL7o4uW+P4ymUp0AaGJhl2dq+uXPnslg== X-Yahoo-Newman-Id: 280839.87084.bm@smtp107.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: OtYeW0wVM1nVClDxuKLGkMxCxQdUw_gAC_eQVBQLHWL5DtU x4ajSXs1I17k0PWGjLa5U4faIX4op2JKEEwLnglM4G2_YORuLhICMlbHF93Y pAT8sm8TPQoCONaScfgmsy06.UL1_sfRVulFkAwsDzZSvgYXcg7zVixgYxPz igpEL9YkXVTNrdh9E3Seq8LdBrfSyZgVt9mQkpTXoTzHoJMuAof2KQ8qbmMf ilGidY3UP9x0Mx._WB79.hRBHuFfKcnaeXCXgI.ddpJ0PexeS3JsR0grJ9K4 TkClRqv85jz6t.L4viBDmn6ESVTE6CpR2YLFDTGJC3EVLheOne86121EGMYG AXwKAgRoVkziL1E08OkmFCl1WVom8UWPQRTsj4elMvA9tfc742T_Eb_5VGsz 6M8TMkiDTU12XpTHsU7b6xq2k51qFXZKLvdlCW5tpByBUuJWHlutqkYzB7Xd Z8uumjoFp_72wtSWWCgiZyOeK_ZBbLZvL4tSq5ATlIWw4kpLej4Fstyn08vj EnZzE3.y9.r2xyYQP07H3wm1JByhkpudk X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <20150604173222.5f571302@pwslap01u.europe.root.pri> From: Oliver Kiddle References: <20150601163926.55ddfc47@pwslap01u.europe.root.pri> <20150604173222.5f571302@pwslap01u.europe.root.pri> To: Zsh Hackers' List Subject: Re: PATCH: expand tabs MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3655.1433513723.1@thecus.kiddle.eu> Date: Fri, 05 Jun 2015 16:15:23 +0200 Message-ID: <3656.1433513723@thecus.kiddle.eu> Peter wrote: > I've added a -x option where this makes sense. This has propagated as > far up as allowing "zed -f -x 2" to edit functions in ZLE with the > indentation looking like it does for contributed functions. Is definitely nice to be able to get function definitions with just the two spaces of indentation. I have an expand-function zle widget which has had to pipe the output through expand. This will cause me to add a bunch of aliases to have -x2 be the default. Would it perhaps make sense to allow a default to be specified in a special variable. This could also affect the values for the functions association. It might also be more flexible in the long term if we want to allow more aspects of the output format to be customisable: different indentation for continuation lines, ksh style function definitions or whatever. Having the user's preference in one place might also be used in future for other contexts such as perhaps doing smart indentation from zle. Oliver