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: Trying to understand 'icomplete-in-buffer' Date: Thu, 01 Jul 2021 19:55:38 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7327"; 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 Fri Jul 02 01:04:40 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 1lz5jb-0001ci-4N for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Jul 2021 01:04:39 +0200 Original-Received: from localhost ([::1]:46118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lz5jZ-0007gK-Tt for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Jul 2021 19:04:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz5iu-00070P-5Q for emacs-devel@gnu.org; Thu, 01 Jul 2021 19:03:57 -0400 Original-Received: from mail-dm6nam11olkn2081c.outbound.protection.outlook.com ([2a01:111:f400:7eaa::81c]:60448 helo=NAM11-DM6-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 1lz5iq-00061M-2O for emacs-devel@gnu.org; Thu, 01 Jul 2021 19:03:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=InmceZ0thPYk+BsZ05oaVomSqmTIWBLEbTA2172qg9+fIDXWOCKpCFOt7ZYbyI94/1XwdPX5wXLREpBQZyeYE5duefV4qHolN+albceNpuiIu2J6aw7X99GJW+L+QBC3vRPRVsL9J81Z+D+Da4vUlE62JcGLNLz1yWMPXt/Qhj8ZiKhqFZIkgb4oDjnCm2oxHGZYH/2qwZIAd5Uk2dU1JLGOaZYGPd42BPqGm3417WnitvCHv4bG6CBO/NFQXW8LpaZM30+f1vnXj2xCgKtJn7UgJRVot+87CdT/T6sZ0Ye521m+ejjyUCSCjR1SDZFQrfOfJB6CrHhhvhGuqalpHQ== 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=e3vZIlYG1hwIzcxIAwls78og6CaOshFbAq8/fPpYZYI=; b=j/EBSKQzvdI6RQ2r5eU3OCWsv7mbyG1aiCSwhbm77lc9QjjVL6PaqahTW5Qp0cTsHofQ0kxaZq0d+mj6yOxQl945NTG5d7ucP1MtXnG9PwRoWQ6DUN1j8lpORATgt4r6s+P+311BnmDgX6yGwvWjsZE1q0CIthwhQ7zgH+ZTzFtotab5X6EefQtEX6pOrYqXVsSND+Of4K4gd2fTw2oFp5ke96kRutKVBmZEK86TdHjblroJjKx/WzVx9ez5Fz9CDBtKsAbOEsRHpv+2cQGh21o8dylYJ/2+Z+RTbBl0jn7ikv1IFDrwmF8XMzjCVSgviXPgSFfCo2Bu2gloogsTFw== 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=e3vZIlYG1hwIzcxIAwls78og6CaOshFbAq8/fPpYZYI=; b=vCumPQCnDM+mkvUwpJIaI1SQ2YhP1onZtPISeTHPrGkz57o1xcIz940Xc34/JK07uiV4m1Pw8kZIcvcudbjT4Cmzw8DGqEfa/ETbcbE0dUSW+fj9QfWXxDyBGX4Je46RIPG7OwIRQEFZn8amvAwrDTey9vL7Rho9UeAj5KruWrDipaKLnj0cptPiUPeOnuryv1U8SeykCo7tEtq5WB4oac8zMqYjc/WLHwGFkP/jK+kh9YJjNBfQeRhpKeOdL/vYvWiKzcfwg9IREVGOOLB8xB5qmeU+ZQixcOw63w/bzuUqicB2H/RELSN0Keehizjv45NycdpK8EvnQ0BKpC3kTw== Original-Received: from DM6NAM11FT048.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::52) by DM6NAM11HT046.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::329) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Thu, 1 Jul 2021 22:58:47 +0000 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com (2a01:111:e400:fc4d::50) by DM6NAM11FT048.mail.protection.outlook.com (2a01:111:e400:fc4d::370) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Thu, 1 Jul 2021 22:58:47 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B84129F6A7A21F9341341E170DF275F68EA4A470602580A197B34C9C361BD776; UpperCasedChecksum:80102BC4106EFE844D46D766C53EDF4FDD5E15AAF666B6BB06C53BC918512F14; SizeAsReceived:7253; Count:43 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182]) by CH2PR01MB5879.prod.exchangelabs.com ([fe80::5c64:1750:c3c7:c182%2]) with mapi id 15.20.4264.027; Thu, 1 Jul 2021 22:58:47 +0000 X-TMN: [AAwFwRYqINt/JCRQBK31HocfQiz3Kk8uk8Mw8htnIF4aIOjwsFM5AuIWCq6jM7er] X-ClientProxiedBy: CP2P152CA0036.LAMP152.PROD.OUTLOOK.COM (2603:10d6:101:15::22) To CH2PR01MB5879.prod.exchangelabs.com (2603:10b6:610:3c::12) X-Microsoft-Original-Message-ID: <87o8blod91.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from desktop (2804:431:c7f2:3723:2e97:3346:1d59:b110) by CP2P152CA0036.LAMP152.PROD.OUTLOOK.COM (2603:10d6:101:15::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.21 via Frontend Transport; Thu, 1 Jul 2021 22:58:46 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 43 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 07732bbf-0626-4e1b-9dba-08d93ce3c8aa X-MS-TrafficTypeDiagnostic: DM6NAM11HT046: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VIl5VBaIniUEXpPzQC7JIz341iwViZG5ePyHcWTXIMhHCsPTMqLIxh4QS3OCFLNrS5KaPkPrE4KL7deCbt6KuR24m/fGhQ/wkM9MVoRNoOAwFNeLcdNX/b5kxYo52erL3grsdIHaKYM41Do7DXrh1p77946aDMeCW70MJjoAOU86Z8tETOaM6+5Rcsp6nXSxwXocoHBi+hUNvuaxKYXej4f7V0XY9l07Is40wekUR7Pdcv+JU2Vfe3nJKjAdqB+x0iO/mc2dhRewwoy+NOiNbCenL4d1Z/78fXWpxZzpkiBZk2uFiyDUVaDtLJJ12qcJgKmr36D/J9fwnBNFMi+5beEcYrQ/Ph4FGfZFuy0phU/NcIjfRnKgD0aD+ZRxyxubN1ScGWomjiODhb63r3Bs+ORl3WsQX61TWr75pDHcffFelg6X4Z30r+txeBLLnhuFkVjDWD9ViXycemr3f1fXrvLCN5AAHvwvuK+HrInFlvxYRGPD6J0QW4t9rOUCjyWmT4IkgtfIzmR3e/4W8SaVrw== X-MS-Exchange-AntiSpam-MessageData: 8u/3ZZs+Y2OBZrWRkp/hcSHEnBsOOTcpy+YY0m0V/EBoRfstX4eC4zm+bD9NFXBP5o8C0VXfYVcnQxHPMIEe/5AinEv+g2oNQ9gegMs5okn/P5yA0Y6MKzAR1dQtV1GZbLqPFaXOI+kMgun1bdav8mfiUZ5RwFpvi6qcZfVIlw7YMb7tFvOUuvRblA4y16irPZF/qGf70h6ckI5nwe48xw== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07732bbf-0626-4e1b-9dba-08d93ce3c8aa X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2021 22:58:47.5590 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT048.eop-nam11.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: DM6NAM11HT046 Received-SPF: pass client-ip=2a01:111:f400:7eaa::81c; envelope-from=gabriel376@hotmail.com; helo=NAM11-DM6-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, 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:271096 Archived-At: Hi, I am trying to understand the variable 'icomplete-in-buffer' in lisp/icomplete.el. It's a defvar, but users continues to set this variable. I believe it's due to a lack of documentation or due to a lack of double-dash to mark it as internal. Some examples: [1] https://www.reddit.com/r/emacs/comments/fswt7c/using_icomplete_vertically/ [2] https://www.reddit.com/r/emacs/comments/ftq4pq/making_icomplete_more_modern/ [3] https://emacs.stackexchange.com/questions/63340/disable-icomplete-with-emacs-find-file The bug bug#41805 was opened because of this problem, and closed because it was a defvar, but there was no clarification regarding the use of this variable. Looking at the code, it was introduced in commit 504a03813b (8 years ago). There are only two references for this variable in the emacs source tree in the original commit and today: 1) the variable declaration with a nil value and 2) a condition on 'icomplete-mode' to add the the function 'icomplete--in-region-setup' to hook 'completion-in-region-mode-hook'. I could not find any external package that uses this variable. I tried many approaches to use this variable in combination with 'completion-at-point', but in all cases I got either no results or a hook error. Any help is welcome. Regards, Gabriel