From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13709 invoked from network); 16 Jan 1997 17:12:26 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 16 Jan 1997 17:12:26 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id MAA03913; Thu, 16 Jan 1997 12:14:34 -0500 (EST) Resent-Message-Id: <199701161715.MAA16230@hrothgar.gw.com> To: zsh-list@sterling.com Date: 16 Jan 1997 12:25:25 GMT From: Jari Kokko Message-ID: <5bl6nl$2j2$1@bilbo.ntc.nokia.com> Organization: Nokia Telecommunications Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: usenet@gw.com References: Subject: Re: How to kill string but leave it in history? Resent-To: zsh-workers@math.gatech.edu Resent-Date: Thu, 16 Jan 1997 12:15:57 -0500 Resent-From: Kimmo Suominen X-Mailing-List: archive/latest/2802 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu In article , Andrej Borsenkow wrote: pound-insert (unbound) (#) (unbound) If there is no # character at the beginning of the buffer, add one to the beginning of each line. If there is one, remove a # from each line that has one. In either case, accept the current line. The INTERACTIVE_COMMENTS option must be set for this to have any usefulness. So, just M-x pound-insert ENTER. Even on other shells, it is useful to ctrl-a, insert some character or perhaps ": " and press enter. Jari Kokko