From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26164 invoked from network); 27 Oct 1999 15:59:44 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Oct 1999 15:59:44 -0000 Received: (qmail 28913 invoked by alias); 27 Oct 1999 15:52:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8446 Received: (qmail 28905 invoked from network); 27 Oct 1999 15:52:57 -0000 From: "Bart Schaefer" Message-Id: <991027155134.ZM3621@candle.brasslantern.com> Date: Wed, 27 Oct 1999 15:51:34 +0000 In-Reply-To: <199910271403.QAA16743@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: predict-on: suppress long listings" (Oct 27, 4:03pm) References: <199910271403.QAA16743@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: predict-on: suppress long listings MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 27, 4:03pm, Sven Wischnowsky wrote: } Subject: Re: PATCH: predict-on: suppress long listings } } May I pour some compconfig over this? Sure! I've been hoping you'd get interested. } Also, this didn't really work together with AUTO_MENU, it started that } too early (if it had just attempted completion). For now I've unset it } in predict-on and restore it in predict-off, but there must be a } better solution. There is -- just unset it inside insert-and-predict and let localoptions restore it when that exits. Does that not work? I'm not sure how to reproduce exactly the behavior you don't like, so I can't tell. } Also, with a global match spec with partial-word stuff, the behavior } of always returning to the previous cursor position was clearly } wrong. Ah, yes. It also does odd things with certain characters, like if you type $! you end up with $\! with the cursor on the backslash. Probably it should search rightwards until it finds the character you typed and stay there, going back again if it doesn't find that character. There's one other annoying thing if you can think of how to fix it. Example: zagzig% setopt automenu <-- type this and hit return zagzig% se <-- then type this zagzig% setopt automenu <-- history-searches to this Now you have "setopt automenu" on the command line with the cursor on the "t". If you press TAB, you get this: zagzig% setopt automenu <-- note two spaces with cursor on the second space. I don't want it to insert the space after the completion when there already is a space on the line! } I hope all this isn't completely the kind of stuff you didn't want to } have in predict-on... No problem. BTW, the keys I chose to bind this to are `^X/' (on) and `^X.' (off). Those are pretty obscure things in emacs (I'd never used them) and unused by default in zsh. I originally had it on ^X^R and ^X^T but one of the other completion widgets wants ^X^R. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com