zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
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)
Date: Tue, 7 Feb 2017 08:48:27 +0100	[thread overview]
Message-ID: <20170207074826.GV27938@sym.noone.org> (raw)

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 <notifications@github.com> -----
Date: Mon, 06 Feb 2017 20:00:08 -0800
From: Daniel Shahaf <notifications@github.com>
To: zsh-users/zsh-syntax-highlighting <zsh-syntax-highlighting@noreply.github.com>
Reply-To: zsh-users/zsh-syntax-highlighting
	<reply+0003adc668ce77949b9ad8968432beed62e5c54cae8f86bf92cf0000000114b1084892a169ce0c42c2fb@reply.github.com>

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)


             reply	other threads:[~2017-02-07  7:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-07  7:48 Axel Beckert [this message]
2017-02-10 17:59 ` Bart Schaefer
2017-02-14 15:32   ` Axel Beckert
2017-02-14 16:18     ` Axel Beckert
2017-02-14 16:40       ` Bart Schaefer
2017-02-15 16:52         ` Axel Beckert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170207074826.GV27938@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).