From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6505 invoked by alias); 7 Feb 2017 07:48:47 -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: 40509 Received: (qmail 7306 invoked from network); 7 Feb 2017 07:48:47 -0000 X-Qmail-Scanner-Diagnostics: from sym2.noone.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(178.63.92.236):SA:0(0.0/5.0):. Processed in 4.438753 secs); 07 Feb 2017 07:48:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: abe@sym2.noone.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at sym2.noone.org does not designate permitted sender hosts) Date: Tue, 7 Feb 2017 08:48:27 +0100 From: Axel Beckert To: zsh-workers@zsh.org Subject: Fwd: Re: %N in prompt shows "_zsh_highlight_call_widget" on Ctrl-L instead of e.g. "/usr/bin/zsh" or "-zsh" since recently (#414) Message-ID: <20170207074826.GV27938@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: Linux 3.2.0-4-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.4.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.21 (2010-09-15) Hi, I'm not sure since when this happens, but that part of my prompt hasn't changed for quite a while and this happens for a few weeks now, maybe since the zsh-syntax-highlighting (z-sy-h) 0.5.0 release or since the zsh 5.3 release, but at least with the combination of z-sy-h 0.5.0 and zsh 5.3.1: Everytime I press Ctrl-L in my xterm, %N inside my prompt shows _zsh_highlight_call_widget instead of e.g. /usr/bin/zsh or -zsh: Normal prompt: !5334 Z5 ?0 L1 user@host:~ (pts/39 -zsh 5.3.1 stretch) 21:35:56 ~ → After Ctrl-L: !5334 Z2 ?0 L1 user@host:~ (pts/39 _zsh_highlight_call_widget 5.3.1 stretch) 21:36:18 ~ → Due to z-sy-h's widget name appearing in the prompt, I first reported this as issue against z-sy-h: https://github.com/zsh-users/zsh-syntax-highlighting/issues/414 But according to Daniel Shahaf, this difference is reproducible without z-sy-h. How to reproduce: ----- Forwarded message from Daniel Shahaf ----- Date: Mon, 06 Feb 2017 20:00:08 -0800 From: Daniel Shahaf To: zsh-users/zsh-syntax-highlighting Reply-To: zsh-users/zsh-syntax-highlighting Hello Axel! > ~ → zsh -f > host% . /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh > host% PS1='%N %% ' > zsh % ^L > _zsh_highlight_call_widget % I can reproduce this without z-sy-h: ```zsh $ zsh -f % clear-screen() { zle .$WIDGET -- "$@" } % zle -N clear-screen % PS1='%1N %# ' zsh % <^L> clear-screen % ``` That's with zsh master; with zsh 5.0.7 from debian stable, the last prompt says "zsh", … > should just use `$0` instead of `%N`. … so this is an upstream change. I am not sure whether it's a regression or a bugfix. Is a change on z-sy-h's side needed? (I quickly grepped upstream's git, but haven't found anything yet) ----- End forwarded message ----- Regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert, PGP: 612616B5 \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://arc.pasp.de/ | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)