From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: History completion Date: Thu, 09 Dec 2021 19:12:49 +0200 Organization: LINKOV.NET Message-ID: <861r2lspqo.fsf@mail.linkov.net> References: <86mtlbvuq2.fsf@mail.linkov.net> <87bl1qq30j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2427"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?Andr=E9?= A. Gomes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 09 18:22:12 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 1mvN7T-0000KM-3j for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 18:22:11 +0100 Original-Received: from localhost ([::1]:44016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvN7S-0003ls-3v for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 12:22:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvN6L-0002M3-3F for emacs-devel@gnu.org; Thu, 09 Dec 2021 12:21:01 -0500 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:43653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvN6H-0006up-4Q for emacs-devel@gnu.org; Thu, 09 Dec 2021 12:20:59 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id DB0EF20000A; Thu, 9 Dec 2021 17:20:52 +0000 (UTC) In-Reply-To: <87bl1qq30j.fsf@gmail.com> (=?iso-8859-1?Q?=22Andr=E9?= A. Gomes"'s message of "Wed, 08 Dec 2021 20:02:04 +0000") Received-SPF: pass client-ip=217.70.178.232; envelope-from=juri@linkov.net; helo=relay12.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:281517 Archived-At: > I think that such a completion should always be triggered by the user, > and not automatically. > > To cycle the history ring with a given prefix string, I suggest C-n/p. > The minibuffer is always a single line after all, or am I missing > something? This assumption is not always correct. Sometimes the minibuffer takes a few lines. > M-n/p can't be taken, and the same applies to C-M-n/p. Correct. > Another suggestion would be to follow comint mode's bindings: C-c M-r/s. > But, unlike comint's case, C-c M-p/n aren't being used so it's also an > option. Two key presses is not the most convenient to browse completions. Horizontal Icomplete uses ‘C-,’ and ‘C-.’.