zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Cc: "Johan Sundström" <johsu650@student.liu.se>
Subject: Re: zle -R glitch
Date: Thu, 13 Jan 2000 10:58:13 +0100 (MET)	[thread overview]
Message-ID: <200001130958.KAA06781@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Thu, 13 Jan 2000 10:20:32 +0100 (MET)


I wrote:

> =?ISO-8859-1?Q?Johan_Sundstr=F6m?= wrote:
> 
> > Hi!
> > 
> > I just had a peek at the new (to me, at least) widget system, and
> > impressed as I am, I found something that might need some fixing. As
> > an exercise, I tried implementing a "what-line" function:
> > 
> > function what-line () { zle -R "Line $HISTNO" }
> > zle -N what-line
> > ...
> 
> That's how it should be. Note that the manual says that the string is
> displayed in the status line which is used by widgets to display
> strings *while the widget is active* (like M-x and some others do it).

Oops. Leaving the string displayed was, of course, already possible. Kinda.

  function what-line () {
    local key
    zle -R "Line $HISTNO"
    read -k key
    zle -U "$key"
  }

Hm. But the -M option is probably still good to have.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-01-13  9:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-13  9:58 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-01-13  9:20 Sven Wischnowsky
2000-01-17 12:20 ` Johan Sundström
2000-01-13  4:00 Johan Sundström

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=200001130958.KAA06781@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=johsu650@student.liu.se \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).