From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23634 invoked by alias); 5 Jun 2015 21:16:58 -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: 35398 Received: (qmail 29796 invoked from network); 5 Jun 2015 21:16:55 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 X-Originating-IP: [80.3.228.158] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=P+FLVI8RzFchTbbqTxIDRw==:117 a=P+FLVI8RzFchTbbqTxIDRw==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=BrDiTsk0AAAA:8 a=ulrScqIEUSKWlE_e2T0A:9 a=CjuIK1q_8ugA:10 Date: Fri, 5 Jun 2015 22:11:16 +0100 From: Peter Stephenson To: Zsh Hackers' List Subject: Re: PATCH: expand tabs Message-ID: <20150605221116.1fc62cf4@ntlworld.com> In-Reply-To: <3656.1433513723@thecus.kiddle.eu> References: <20150601163926.55ddfc47@pwslap01u.europe.root.pri> <20150604173222.5f571302@pwslap01u.europe.root.pri> <3656.1433513723@thecus.kiddle.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 05 Jun 2015 16:15:23 +0200 Oliver Kiddle wrote: > 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. Possibly, though it'll take some careful thinking to ensure this is easy to use an extensible. A special has would be the obvious choice. pws