From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: History completion Date: Thu, 9 Dec 2021 08:51:07 +0100 Message-ID: References: <86mtlbvuq2.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23668"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 09 08:53:04 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvEEh-0005xb-Au for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 08:53:03 +0100 Original-Received: from localhost ([::1]:46062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvEEg-0003vL-3j for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 02:53:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvED2-0002Wh-OU for emacs-devel@gnu.org; Thu, 09 Dec 2021 02:51:20 -0500 Original-Received: from [2a00:c38:11e:ffff::a020] (port=62641 helo=confino.investici.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvECt-0006c1-TF for emacs-devel@gnu.org; Thu, 09 Dec 2021 02:51:20 -0500 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4J8mSC72v8z115n for ; Thu, 9 Dec 2021 07:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1639036267; bh=EK7yyi0GNr7LrcXnL1XZag60fHrsXU0zAvS4chny7kA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Ldkn+DdGuYYasaYyFn6ZmGD1aw62smZzojJAtv8BC1TpHcKfUMYrlllXQ8ByJX1D7 deElBLZ+iA4gAY7IaF01Nd0AiYblOXydLrQCdoD04TBimxW5s6R1erWKwdV52xNfVN aEjujC+cPnkb73KzvR1X4c6qZ0WOzpluhWfZs0ac= Original-Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4J8mSC6RGYz115m for ; Thu, 9 Dec 2021 07:51:07 +0000 (UTC) In-Reply-To: <86mtlbvuq2.fsf@mail.linkov.net> Content-Language: en-GB X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:c38:11e:ffff::a020 (failed) Received-SPF: pass client-ip=2a00:c38:11e:ffff::a020; envelope-from=manuel.uberti@inventati.org; helo=confino.investici.org X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.803, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281455 Archived-At: On 08/12/21 19:54, Juri Linkov wrote: > #+begin_src emacs-lisp > ;; Adapted from ‘minibuffer-complete’: > (defun minibuffer-complete-history () > (interactive) > (completion-in-region (minibuffer--completion-prompt-end) (point-max) > (symbol-value minibuffer-history-variable) > nil)) > (define-key minibuffer-local-map [C-tab] 'minibuffer-complete-history) > #+end_src FWIW, I am trying this and I find it very helpful. Thank you for sharing. -- Manuel Uberti www.manueluberti.eu