zsh-users
 help / color / mirror / code / Atom feed
From: Roderick Schertler <roderick@gate.net>
To: Zefram <zefram@dcs.warwick.ac.uk>
Cc: zsh-users@math.gatech.edu
Subject: Re: How to kill string but leave it in history?
Date: Thu, 16 Jan 1997 12:41:40 -0500	[thread overview]
Message-ID: <15553.853436500@eeyore.ibcinc.com> (raw)
In-Reply-To: Your message of "Thu, 16 Jan 1997 16:37:52 EST."

On Thu, 16 Jan 1997 16:37:52 +0000 (GMT), Zefram <zefram@dcs.warwick.ac.uk> said:
> Roderick Schertler wrote:
>>>
>>> This is exactly what pound-insert is for.  I use it often.
>>
>> It doesn't work for multiline commands, though.
>
> Yes it does.  It adds a # at the beginning of each line.  Or do you
> mean continuation lines?  push-input may help here.

Right, I hadn't clued to the fact that it was continuation lines which
were the problem.  I also hadn't thought of using push-input to edit
back before a continuation, and I even regularly use push-input.
Thanks.  Here's a hint for the documentation which might save others
this trouble.

--- Doc/zshzle.man.~1~	Tue Dec 17 15:14:11 1996
+++ Doc/zshzle.man	Thu Jan 16 12:34:30 1997
@@ -653,6 +653,8 @@
 Next time the editor starts up or is popped with \fBget-line\fP, the
 construct will be popped off the top of the buffer stack and loaded
 into the editing buffer.
+This is currently the best way to edit text above a zsh-forced line
+continuation.
 .TP
 \fBpush-line\fP (^Q ESC-Q ESC-q) (unbound) (unbound)
 Push the current buffer onto the buffer stack and clear
--- Doc/zshparam.man.~1~	Tue Aug 13 16:24:13 1996
+++ Doc/zshparam.man	Thu Jan 16 12:35:52 1997
@@ -685,6 +685,8 @@
 Recognizes the same escape sequences as \fB$PS1\fP.
 The default is "%_> ", which displays any shell constructs or quotation
 marks which are currently being processed.
+The best way to edit the continuation text along with the initial part
+of the command is to use the \fBpush-input\fP editor command.
 .TP
 .B PS3
 Selection prompt used within a \fBselect\fP loop.

-- 
Roderick Schertler
roderick@gate.net


  reply	other threads:[~1997-01-16 17:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-16 10:59 Andrej Borsenkow
1997-01-16 12:15 ` Peter Stephenson
1997-01-16 13:36   ` Andrej Borsenkow
1997-01-16 13:54     ` Peter Stephenson
1997-01-16 14:02 ` Juergen Christoffel
1997-01-16 14:40 ` Zefram
1997-01-16 16:27   ` Roderick Schertler
1997-01-16 16:37     ` Zefram
1997-01-16 17:41       ` Roderick Schertler [this message]
     [not found]       ` <pws@ifh.de>
     [not found]         ` <roderick@gate.net>
     [not found]           ` <zefram@dcs.warwick.ac.uk>
1997-01-16 18:21             ` Bart Schaefer
1997-01-16 18:39               ` Zefram
1997-01-17  9:05                 ` Bart Schaefer
1997-01-16 19:21               ` Roderick Schertler

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=15553.853436500@eeyore.ibcinc.com \
    --to=roderick@gate.net \
    --cc=zefram@dcs.warwick.ac.uk \
    --cc=zsh-users@math.gatech.edu \
    /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).