From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23837 invoked by alias); 2 Sep 2014 08:38:30 -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: 33089 Received: (qmail 17317 invoked from network); 2 Sep 2014 08:38:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f156d0000063c7-ca-540581fb314e Date: Tue, 02 Sep 2014 09:38:19 +0100 From: Peter Stephenson To: Zsh Hackers' List Subject: Re: PATCH: evaluation depth in prompts Message-id: <20140902093819.0ba101cd@pwslap01u.europe.root.pri> In-reply-to: <140901140202.ZM14612@torch.brasslantern.com> References: <20140826174029.6478ee3a@pwslap01u.europe.root.pri> <20140826181055.59c99bdc@pwslap01u.europe.root.pri> <20140829171605.7bdac33b@pwslap01u.europe.root.pri> <140901140202.ZM14612@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e/4Zd3fjawhBts36FscbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujPuf17AUPGKvOHR5FnsD41y2LkZODgkBE4m+32eZIGwxiQv3 1gPFuTiEBJYySnTemAflLGeSOLK5lQWkikVAVeLznq9gNpuAocTUTbMZuxg5OEQEtCXaP4qB hIUF9CU+vF4PFuYVsJc4cjAdJMwpYCWxfut/ZoiRtxklzjZcBRvDD1R/9e8nqCPsJWZeOcMI YvMKCEr8mHwPrIZZQEti87YmVghbXmLzmrfMExgFZiEpm4WkbBaSsgWMzKsYRVNLkwuKk9Jz DfWKE3OLS/PS9ZLzczcxQkLwyw7GxcesDjEKcDAq8fC+WMgcIsSaWFZcmXuIUYKDWUmE90Ui a4gQb0piZVVqUX58UWlOavEhRiYOTqkGRrU1y7Y/T9eN2PZs4d28hlMP7vWeZ9Jp7ZH/kS5R nc/rtPoC43arbSGhJ26pWpzwmv7ROHO3z/HrQR85uPQ3J1/t5xI9enbh7nOLjvH6xT+89MN6 IkNqttMTJaMQXe96Zud1V4PCtk9u0ZJ/arbqoKT2mygu5tWXexd37Ppe783grf3BNGHXXiWW 4oxEQy3mouJEAHhf7R4fAgAA On Mon, 01 Sep 2014 14:02:02 -0700 Bart Schaefer wrote: > On Aug 29, 5:16pm, Peter Stephenson wrote: > } > } In case anyone's still following, here's the original script updated. > } This now gives reliable tracing of who's calling whom > > Here's a related idea/suggestion which adds indentation to the output > of _complete_debug. There's no convenient way to produce ${(%):-%e} > spaces for arbitrary depths without turning on promptsubst, so this > generates a bunch of %N(e. .) expressions and glues them together. > If completion goes more than 20 function calls deep there's probably > something wrong anyway. Seems reasonable --- it doesn't remove any of the existing information. A visual cue for calls should make it a lot clearer. > I couldn't decide whether to put the indentation after the leading "+" > or before it. This has it before. That makes it easier to strip the spaces if you happen to prefer it like that. pws