From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: icomplete-vertical above prompt Date: Sun, 11 Apr 2021 14:58:39 +0000 Message-ID: <3755fe92dc7c2998a05d@heytings.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="iZl3xwLMZT" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34966"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 11 16:59:52 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 1lVbZ1-0008xI-6e for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 16:59:51 +0200 Original-Received: from localhost ([::1]:60608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVbZ0-0003ee-8a for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 10:59:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVbXx-0002zo-2V for emacs-devel@gnu.org; Sun, 11 Apr 2021 10:58:45 -0400 Original-Received: from heytings.org ([95.142.160.155]:38210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVbXu-0002Ad-Kq for emacs-devel@gnu.org; Sun, 11 Apr 2021 10:58:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1618153120; bh=ck6ZMjGC7MlugarmExrEDrBJLpiVGF5VcYrZE8klVJ4=; h=Date:From:To:cc:Subject:Message-ID:From; b=p8eO+ggVVRAyUoXFT7Os3D+rHAPJweSUu4dBgV7CgDjekAGJDunLQb/01PBYDaZ4Z gF/HxXCrzxshOp99KbKQriFswPqbaY6SQFLpOgnm3UJPwWZlEu2Syq66sHzJ57MtyL os0NEsmFP6JQD8n0MmVsbynG5rWrpHs/BhFHtgi2Kgzmmsqure/AYBD/LsDYk4PB3y qpZYj6vRP5kUY12pskQAnyc8/3z5XtvJMw2FjKtawQrw/HmLDfKdS2WVgyckfIH8D4 0P9ibK5kX6JSFQvuvDH5DEktdw8UeDGQH07iHSZZMgT0cWvJWE5KExYTn//SvJy+rL 1vgKbKR+Fyc2A== Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, 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.23 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:267884 Archived-At: --iZl3xwLMZT Content-Type: text/plain; format=flowed; charset=us-ascii > > I wonder how easy would be to improve Icomplete to display completions > in the standard buffer *Completions* instead of the minibuffer? Then > both use cases will be covered: > > 1. icomplete-vertical-mode for users who prefer vertical completions in > the minibuffer; > > 2. vertical completions in *Completions* for users who don't like when > the mode-line jumps up and down when completing. > Note that this doesn't happen with the default resize-mini-windows value, which is grow-only. It jumps up once, and will not jump down until the end of the completion. > > In this case the same icomplete keys could be used to navigate > completions in the *Completions* buffer from the minibuffer with > icomplete-forward-completions and icomplete-backward-completions, and > icomplete-force-complete-and-exit to accept the selected completion. > By popular demand (Stefan M asked for something similar some time ago IIRC), here is a patch that does what you want, but not exactly how you described it. It displays completion candidates above the prompt instead of below the prompt, and you can navigate them from the minibuffer. --iZl3xwLMZT Content-Type: text/x-diff; name=Add-option-to-display-candidates-above-prompt-with-i.patch Content-Transfer-Encoding: base64 Content-ID: <3755fe92dca8c3338813@heytings.org> Content-Description: Content-Disposition: attachment; filename=Add-option-to-display-candidates-above-prompt-with-i.patch RnJvbSBjNWJiNjI5MDNjNDk4NTE3MWY5ZWYzZjY1NGRlODk0NmZhZmE5N2U4 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogR3JlZ29yeSBIZXl0 aW5ncyA8Z3JlZ29yeUBoZXl0aW5ncy5vcmc+DQpEYXRlOiBTdW4sIDExIEFw ciAyMDIxIDE0OjIyOjE3ICswMDAwDQpTdWJqZWN0OiBbUEFUQ0hdIEFkZCBv cHRpb24gdG8gZGlzcGxheSBjYW5kaWRhdGVzIGFib3ZlIHByb21wdCB3aXRo DQogaWNvbXBsZXRlLXZlcnRpY2FsLW1vZGUNCg0KKiBsaXNwL2ljb21wbGV0 ZS5lbCAoaWNvbXBsZXRlLXZlcnRpY2FsLW1vZGUtYWJvdmUtcHJvbXB0LA0K aWNvbXBsZXRlLXZlcnRpY2FsLW1vZGUtYWJvdmUtcHJvbXB0LWhlaWdodCk6 IE5ldyB1c2VyIHZhcmlhYmxlcy4NCihpY29tcGxldGUtZXhoaWJpdCk6IENv bnNpZGVyIHRoZSBuZXcgdXNlciB2YXJpYWJsZXMuDQoNCiogZG9jL2VtYWNz L2J1ZmZlcnMudGV4aSAoSWNvbXBsZXRlKTogTWVudGlvbiB0aGUgbmV3IHZh cmlhYmxlcy4NCg0KKiBldGMvTkVXUzogTWVud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xl dGUtdmVydGljYWwtbW9kZS1hYm92ZS1wcm9tcHQpDQorICAgICAgICAgICAg ICAgIChsZXQgKChidWZmZXIgKGdldC1idWZmZXItY3JlYXRlICIgKkljb21w bGV0ZSBDb21wbGV0aW9ucyoiKSkNCisgICAgICAgICAgICAgICAgICAgICAg KGxpbWl0IChzdHJpbmctc2VhcmNoICJcbiIgdGV4dCkpKQ0KKyAgICAgICAg ICAgICAgICAgICh3aGVuIGxpbWl0DQorICAgICAgICAgICAgICAgICAgICAo bGV0ICgoY2FuZGlkYXRlcyAoc3Vic3RyaW5nIHRleHQgKDErIGxpbWl0KSkp KQ0KKyAgICAgICAgICAgICAgICAgICAgICAoc2V0cSB0ZXh0IChzdWJzdHJp bmcgdGV4dCAwIGxpbWl0KSkNCisgICAgICAgICAgICAgICAgICAgICAgKHVu bGVzcyAod2luZG93LWxpdmUtcCBpY29tcGxldGUtLWFib3ZlLW1pbmlidWZm ZXItd2luZG93KQ0KKyAgICAgICAgICAgICAgICAgICAgICAgIChzZXRxIGlj b21wbGV0ZS0tYWJvdmUtbWluaWJ1ZmZlci13aW5kb3cNCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAoZGlzcGxheS1idWZmZXINCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgYnVmZmVyDQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIGAoZGlzcGxheS1idWZmZXItaW4tc2lkZS13 aW5kb3cNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc2lk ZSAuIGJvdHRvbSkNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAod2luZG93LWhlaWdodA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAuICxpY29tcGxldGUtdmVydGljYWwtbW9kZS1hYm92ZS1wcm9t cHQtaGVpZ2h0KSkpKSkNCisgICAgICAgICAgICAgICAgICAgICAgKHdpdGgt Y3VycmVudC1idWZmZXIgYnVmZmVyDQorICAgICAgICAgICAgICAgICAgICAg ICAgKHNldHEtbG9jYWwgbW9kZS1saW5lLWZvcm1hdCBuaWwgY3Vyc29yLXR5 cGUgbmlsKQ0KKyAgICAgICAgICAgICAgICAgICAgICAgIChlcmFzZS1idWZm ZXIpDQorICAgICAgICAgICAgICAgICAgICAgICAgKGluc2VydCBjYW5kaWRh dGVzKSkpKSkpDQorICAgICAgICAgICAgICAgIChtb3ZlLW92ZXJsYXkgaWNv bXBsZXRlLW92ZXJsYXkgKHBvaW50KSAocG9pbnQpIChjdXJyZW50LWJ1ZmZl cikpDQorICAgICAgICAgICAgICAgIDs7IFRoZSBjdXJyZW50IEMgY3Vyc29y IGNvZGUgZG9lc24ndCBrbm93IHRvIHVzZSB0aGUgb3ZlcmxheSdzDQorICAg ICAgICAgICAgICAgIDs7IG1hcmtlcidzIHN0aWNraW5lc3MgdG8gZmlndXJl IG91dCB3aGV0aGVyIHRvIHBsYWNlIHRoZSBjdXJzb3INCisgICAgICAgICAg ICAgICAgOzsgYmVmb3JlIG9yIGFmdGVyIHRoZSBzdHJpbmcsIHNvIGxldCdz IHNwb29uLWZlZWQgaXQgdGhlIHBvcy4NCisgICAgICAgICAgICAgICAgKHB1 dC10ZXh0LXByb3BlcnR5IDAgMSAnY3Vyc29yIHQgdGV4dCkNCisgICAgICAg ICAgICAgICAgKG92ZXJsYXktcHV0IGljb21wbGV0ZS1vdmVybGF5ICdhZnRl ci1zdHJpbmcgdGV4dCkpKSkpKSkpDQogDQogOzs7XyA+IGljb21wbGV0ZS1j b21wbGV0aW9ucyAobmFtZSBjYW5kaWRhdGVzIHByZWRpY2F0ZSByZXF1aXJl LW1hdGNoKQ0KIChkZWZ1biBpY29tcGxldGUtY29tcGxldGlvbnMgKG5hbWUg Y2FuZGlkYXRlcyBwcmVkaWNhdGUgcmVxdWlyZS1tYXRjaCkNCi0tIA0KMi4z MC4yDQoNCg== --iZl3xwLMZT--