zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Cannot tell why POSTDISPLAY doesn't work
Date: Fri, 8 Jun 2018 16:10:49 +0100	[thread overview]
Message-ID: <20180608151052eucas1p14d1e9f07a274cf908b387a144da0d424~2N-XGwjGo2856728567eucas1p10@eucas1p1.samsung.com> (raw)
In-Reply-To: <CAKc7PVCPM6xK1YksSZVSZRw+MpeMwmPTtzyc3chOGU1H4uNGYg@mail.gmail.com>

On Fri, 8 Jun 2018 16:38:43 +0200
Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> On 5 June 2018 at 16:50, Sebastian Gniazdowski
> <sgniazdowski@gmail.com> wrote:
> > Hello,
> > I can use zle -M to show messages from zle widget. It's wrapped
> > normal widget, wrapping done by syntax-highlighting, and from the
> > wrapping code zle -M is called.
> >
> > But if I try to use POSTDISPLAY, it doesn't work, no message under
> > prompt is shown. Any idea why?
>
> Some more data on this, POSTDISPLAY works, but only *sometimes*

Actually, that's an accident.

"zle -M" *simply* prints a message.  It doesn't interact with
the normal editing buffer at all (which is the thing to which
POSTDISPLAY is appended).  So if you're seeing it it's because it's
not overridden by the message.

It's worth scanning the zshzle manual to see if you're doing something
that might be better dealt with by Zle -R, which does a normal
redisplay with an optional message --- this is commonly the case
when within widgets.

pws


  reply	other threads:[~2018-06-08 15:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-05 14:50 Sebastian Gniazdowski
2018-06-08 14:38 ` Sebastian Gniazdowski
2018-06-08 15:10   ` Peter Stephenson [this message]
2018-06-08 15:23     ` Sebastian Gniazdowski

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='20180608151052eucas1p14d1e9f07a274cf908b387a144da0d424~2N-XGwjGo2856728567eucas1p10@eucas1p1.samsung.com' \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@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).