From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7337 invoked by alias); 10 Dec 2017 23:46:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42104 Received: (qmail 26877 invoked by uid 1010); 10 Dec 2017 23:46:47 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f182.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.217.182):SA:0(-1.9/5.0):. Processed in 4.947341 secs); 10 Dec 2017 23:46:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dhtehennepe@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=93VAstZXaOj8Pj+8JdRxypKVlyPfjrgWAeDM8JVF8RI=; b=thZWoVfi6vW54KoAHX6zXzUvrwQOo2O5keY51IuqLkajraNBgz25O6y8viJmFEablX bZMARRnjGw7O0hJzoIl4AQ5haBExYP18BQl6TiWMPvCnAxIIecuyU8CxN1+AyN3W1YWn RUgJHMITgH0K9MB8BVGwliz+Cs1lpfrQpSucP+F/wEFR3s16Jw1mAueYxLM4PhZ5AxAI mqFa8hcwXGD8jvjHFTelA3ZGIvrHCA5pLnkFO2ReJh1ZUz2vn2qxx9puIzqlYgwTqE1s mc7s8EsQq+TR590E8u0dYhkdVF1h0J5zaenAWHsdO2HK1rHit3DHzm6yyubvr0I9ECW3 xq4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=93VAstZXaOj8Pj+8JdRxypKVlyPfjrgWAeDM8JVF8RI=; b=t8P2sQVOCOPvQWvkioZzhS+U6sxEhVbKRNAPntp7SOpslMjdygAY/QMW3eGJk+ZFHr OAZxIA8+sp8yKE16pm79Ax/OhP2gfFuYIcby6GsIm69lDQ/4Ay1hmls6bleoq3fdHsjn a/Maay+t/MAvhI2mROSyf/akF0qP7lwGJ9UkZcrCbDuBPCE+bu4I42bz+HJYAVCbHjp7 znVPXKjQWmBSnDdaDkR58MmILXWfj5JAvVAm8fTe3S1AiwIqfjaLbvriUEf0Aa95Szdo lJKBs+KrHoA0kfncoqvv8N7G7kJwSBmQbhsYGJjLfC1AHtA4DBZQb6JgAgzZ7JYcp0yh 7Vjw== X-Gm-Message-State: AKGB3mL4ukTI0Bftjxt4wFKFbiMXJFvVnb4gFMgyiMMtI3LR0q1Yf+uU u0ht5/RGNEeTtGtY1lKgkjpEA17//C31qaa4TnrL4A== X-Google-Smtp-Source: AGs4zMZR2M7BZKItLfRmMHsMYDhFqZuPHulstsgGkx9BI50+MiGPPseL0KKYud5cjeT2e65Cv1wMk4jvEL12H9UNLc4= X-Received: by 10.159.55.37 with SMTP id z34mr24976326uad.133.1512949598078; Sun, 10 Dec 2017 15:46:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Harm te Hennepe Date: Sun, 10 Dec 2017 23:46:27 +0000 Message-ID: Subject: Re: history-incremental-search-backward string argument regression To: "zsh-workers@zsh.org" Content-Type: multipart/alternative; boundary="001a1145c7b05b4c630560050741" --001a1145c7b05b4c630560050741 Content-Type: text/plain; charset="UTF-8" Thanks for your check. Somehow I completely forgot to run the code with 'zsh -f' :-( Seems that some other code in my .zshrc is interfering. I'll figure out what causes this, and let you know if I still believe it shouldn't happen. Harm On Sat, 9 Dec 2017 at 09:10 Bart Schaefer wrote: > On Mon, Dec 4, 2017 at 2:50 PM, Harm te Hennepe > wrote: > > > > I was trying to let ^r prefill the incremental search minibuffer with the > > current buffer contents. > > > > I've created a widget calling this, but the minibuffer stayed empty. > > Hmm, this is working for me (zsh-5.4.2-114-g45f3169): > > % setopt histnofunctions > % revsrch() { zle history-incremental-search-backward waggle } > % zle -N revsrch > % bindkey '^R' revsrch > % > failing bck-i-search: waggle_ > > > > I manually type something into the minibuffer, it does the usual search, > > but when I then press ^r again to find the next result, I get an empty > > minibuffer again, instead of the next result. > > There are a few reasons why repeating the binding might not repeat the > search when a user-defined widget is involved. Perhaps post your > function? > --001a1145c7b05b4c630560050741--