From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25734 invoked by alias); 13 Dec 2011 16:24:11 -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: 30020 Received: (qmail 5654 invoked from network); 13 Dec 2011 16:24:09 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <111213082344.ZM3389@torch.brasslantern.com> Date: Tue, 13 Dec 2011 08:23:44 -0800 In-reply-to: <111212102145.ZM1937@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: adam2 prompt theme broken" (Dec 12, 10:21am) References: <111212102145.ZM1937@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: adam2 prompt theme broken MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 12, 10:21am, Bart Schaefer wrote: } } The promptsubst option is getting turned on and left that way by some } part of the preview system, so it tries to interpret the backtick. A couple of new things prompt_preview_theme needs to keep track of, so they aren't left set after the theme is previewed. Any more I haven't thought of? Index: Functions/Prompts/promptinit =================================================================== retrieving revision 1.7 diff -c -r1.7 promptinit --- promptinit 21 Dec 2010 16:41:15 -0000 1.7 +++ promptinit 13 Dec 2011 16:21:08 -0000 @@ -180,7 +180,8 @@ emulate -L zsh local -a psv; psv=($psvar); local -a +h psvar; psvar=($psv) # Ick local +h PS1=$PS1 PS2=$PS2 PS3=$PS3 PS4=$PS4 RPS1=$RPS1 - local precmd_functions preexec_functions + local precmd_functions preexec_functions prompt_opts + local -aLl +h zle_highlight print -n "$1 theme" (( $#* > 1 )) && print -n " with parameters \`$*[2,-1]'" -- Barton E. Schaefer