From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel Newsgroups: gmane.emacs.devel Subject: Re: [GNU ELPA] New package proposal: aggressive-completion.el Date: Sat, 03 Apr 2021 17:02:06 -0300 Message-ID: References: <87o8evok58.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5126"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 03 22:18:18 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 1lSmio-0001EY-GL for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Apr 2021 22:18:18 +0200 Original-Received: from localhost ([::1]:42672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSmin-0000yF-It for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Apr 2021 16:18:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSmhq-0000Wx-AH for emacs-devel@gnu.org; Sat, 03 Apr 2021 16:17:18 -0400 Original-Received: from mail-oln040092011049.outbound.protection.outlook.com ([40.92.11.49]:4743 helo=NAM04-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSmho-0000MA-D8 for emacs-devel@gnu.org; Sat, 03 Apr 2021 16:17:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ELMdHHwd+8sj5x2iCCQBqm0zoVm2wz+/0ygSIZgaQJJQoVHbouuoNNjMdm4fFvHo5rJGWUPj3VEfaW6UCUSoS/R0jKZfR0CvQMPPm5xFHSJAqhpEJTg1YxEuCJOj0ncn30bS7Ht0UCkvhcmepGW0gb1n7jSWssnYZdhtHyzjfX0mCPHWM/lg0uEXW0XiQO9SGwtpvY0vwZyQbjH1RkR5Xtl2AoOLiZyf14lgxD38AbHhbQkWSh9cML6Ph7LSbC821yRFVsafuYlZDmQm75Fa5gUyQe7F6y04mhpBh3KVzFS4fG5ZfqT+F6accmbbr+0YZS9lWAljbrfgtkP+bLOZ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SnPyGGFGX/uH2/hEXhZspYzWrA9tW5jiZMebcmk4CpA=; b=jrPcWyUzusTTlFaGPob/ZbZ17cNZleXHsbIkJo3poQ6PIleGRGrQ/1JKIEH90oyj+KCToKcQTpt1jN+kDT2L99p0/+gwcQCGgo5xM5EXpV5FKON36Uh3KgFAZhJP81UtDfgGpr67o+DXDuN+zYI0ZAywpkyOgoOcwujXvRqoEJd4kdKz1fFYAeF041ibNbeoIqTtDQDhq8xEdYwlGRuTCbSoBjU78m0xWCzVg+0JmzUbmwomlQPRye/jqLIC8U/U7tgwXxgmkYsXnilfV4J3sbcDaS8UxMWDhlykiTzKolYCnrzGw1p075FG1VNzce2cFtEFkFxAWs94XVFh/1JgiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SnPyGGFGX/uH2/hEXhZspYzWrA9tW5jiZMebcmk4CpA=; b=VLv9h1viqG00Qyw5AG5oK5ES4t8kTK7Rh+jvOmLFhtKOyCOOjmn+sPxluVPWgiiM1f0m9Fa5GMYTStBUsWX2V4v6Pm56bFXCRGbezvarZ6T5YlbvowOud3MfQvAepqCo77M2AlH45uxzivQEgIr/7ibR+4kZdE+rX61evdEQRAbyMjBY7axNepRR9aw963BY3J7xd+GAJwGOjCxZk45wmP5ksiJoByovSA+Crs9kuZVH5jiAYJrakW1PJUpZpxegix5FLaS5FCQwMCXgxsQ1V2vdVox4O1c2CZCl30LFYH98HfgRwceFQ2Es3xo43y+Mn75udO9ymuBiq0vJmYJ6ew== Original-Received: from CO1NAM04FT004.eop-NAM04.prod.protection.outlook.com (10.152.90.52) by CO1NAM04HT024.eop-NAM04.prod.protection.outlook.com (10.152.91.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Sat, 3 Apr 2021 20:02:12 +0000 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com (2a01:111:e400:7e4d::52) by CO1NAM04FT004.mail.protection.outlook.com (2a01:111:e400:7e4d::121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Sat, 3 Apr 2021 20:02:12 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:DC985591D7DCBFAACAF0486024079F025F6F91AB45496D3692B4BBD91EE0D094; UpperCasedChecksum:CCE72D79AAA2FE84231127A1C4D02FF35C55A3A536BA5F7F6936E9C2EA970008; SizeAsReceived:7390; Count:45 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com ([fe80::3c0e:7:b580:cfdf]) by CH2PR01MB5879.prod.exchangelabs.com ([fe80::3c0e:7:b580:cfdf%6]) with mapi id 15.20.3999.032; Sat, 3 Apr 2021 20:02:12 +0000 In-Reply-To: <87o8evok58.fsf@gnu.org> (Tassilo Horn's message of "Sat, 03 Apr 2021 09:53:50 +0200") X-TMN: [S9yK9xXJLLC1Wzw0exhdV4/HAXRNe7VR4zJDvKLYEsF2EzD8X0FNy7IgO73okdGA] X-ClientProxiedBy: CP2PR80CA0039.lamprd80.prod.outlook.com (2603:10d6:102::25) To CH2PR01MB5879.prod.exchangelabs.com (2603:10b6:610:3c::12) X-Microsoft-Original-Message-ID: <878s5zf875.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from precision5540 (2804:431:c7f2:ec82:9de1:7557:a7d5:3984) by CP2PR80CA0039.lamprd80.prod.outlook.com (2603:10d6:102::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26 via Frontend Transport; Sat, 3 Apr 2021 20:02:10 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: f11009b7-04ea-4f99-5514-08d8f6db5e3c X-MS-TrafficTypeDiagnostic: CO1NAM04HT024: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LMFPq7OaJdt6IdFlTTn+MZwwHev0zoBIFy5eX341kJCfUsuTVJZ35hVQoGe9q8qA0CF7NUZD9rsH9aJtrEhWVMML3IcXaTM0T1STWgEgnVAMVJHqtZ9mKAQclBnaE2GjWCjUQ3kj0HWYQwARcrfC/yOG1kzLbYFeu83Ut/o3NelMpXdU0p5IHWKXACec7rrlNhACH0J5Na7COezLQXrMSaWgbf/g7TxF8m689QK4sSZNYJbBW7gmLXQiQaLVmWXg5Gfm8XII+b25FlvpuatAS2SDnyjhLx5O30PIpq0UEYT757136eWQvNJC8Mum0Pm7khLiGiNyBDeZbITv+9v7i2MO82r0cPtjMmZTEChWbCyXcwYNYI32LfuUrKWTY4Sxti3umyKAaDCHjeGbBk4zpA== X-MS-Exchange-AntiSpam-MessageData: gjZ+b7zjnspAT+HtZhkjK3cY1hU2nFGvtP60eHhxNtS7cJqrcHqy1Q+x9dePthqFgVIaPz3uWGXIWfQa/XqsIzsr5EA59pU6djF5CZAdtSl/aP9TiGKwesK4kiMWYYdUeSzS+kj+FEXr6OazdhyjRDWrRSNXmZF6epIiSYOw8sfakOHfnsYgHawBa57gxKX0yB7nq1bJvfpzrK/GtxyLmg== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: f11009b7-04ea-4f99-5514-08d8f6db5e3c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2021 20:02:12.5090 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: CO1NAM04FT004.eop-NAM04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM04HT024 Received-SPF: pass client-ip=40.92.11.49; envelope-from=gabriel376@hotmail.com; helo=NAM04-SN1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:267364 Archived-At: FWIW, this is something I have in my init.el. It ain't much, but it's honest work. Just 'emacs -q', 'M-x eval-buffer' and have fun. ;;;;;;;;;;;;;;;;; (defun auto-completion-list--setup () "Setup minibuffer for `auto-completion-mode'." (when minibuffer-completion-table (add-hook 'after-change-functions 'auto-completion-list--display-completions nil t) (minibuffer-completion-help))) (defun auto-completion-list--display-completions (beg end len) "Display completions." (minibuffer-completion-help)) (defun auto-completion-list--complete () "Complete the minibuffer contents." (interactive) (minibuffer-complete) (minibuffer-completion-help)) (defun turn-on-auto-completion-list-mode () "Turn on `auto-completion-list-mode'." (add-hook 'minibuffer-setup-hook 'auto-completion-list--setup) (define-key minibuffer-local-must-match-map (kbd "") 'auto-completion-list--complete) (define-key minibuffer-local-must-match-map (kbd "SPC") 'auto-completion-list--complete) (define-key minibuffer-local-completion-map (kbd "") 'auto-completion-list--complete) (define-key minibuffer-local-completion-map (kbd "SPC") 'auto-completion-list--complete)) (defun turn-off-auto-completion-list-mode () "Turn off `auto-completion-list-mode'." (remove-hook 'minibuffer-setup-hook 'auto-completion-list-setup) (define-key minibuffer-local-must-match-map (kbd "") 'minibuffer-complete) (define-key minibuffer-local-must-match-map (kbd "SPC") 'minibuffer-complete-word) (define-key minibuffer-local-completion-map (kbd "") 'minibuffer-complete) (define-key minibuffer-local-completion-map (kbd "SPC") 'minibuffer-complete-word)) (define-minor-mode auto-completion-list-mode "Toggle `auto-completion-list-mode'." :init-value t :global t (if auto-completion-list-mode (turn-on-auto-completion-list-mode) (turn-off-auto-completion-list-mode))) (auto-completion-list-mode 1) ;;;;;;;;;;;;;;;;;