From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: Completions and history Date: Tue, 12 Apr 2022 19:49:52 +0000 Message-ID: References: <20220411112901.kv3lsyvx6yxwjbph.ref@Ergus> <20220411112901.kv3lsyvx6yxwjbph@Ergus> <86sfqjzhgl.fsf@mail.linkov.net> <20220411174031.2yuh2je5fl3lej7i@Ergus> <87ilre5i5a.fsf@gmail.com> <86k0burxd4.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6132"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Daniel Mendler , Ergus , Augusto Stoffel , "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 12 21:58:59 2022 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 1neMfD-0001Qp-9e for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 21:58:59 +0200 Original-Received: from localhost ([::1]:53964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neMfC-0001Px-3z for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 15:58:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neMWg-0000SB-H0 for emacs-devel@gnu.org; Tue, 12 Apr 2022 15:50:11 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:20202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neMWd-0001cL-OH for emacs-devel@gnu.org; Tue, 12 Apr 2022 15:50:10 -0400 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 23CIvgJd008887; Tue, 12 Apr 2022 19:49:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=UQ8yK8YcqP9zFZgA21WgZuJPRP6qVv6GKFMv2Nn/Sks=; b=neKmkr3nPgAocsi3viNfa5u/Rc8oBgWtEItxT8hG3hHYv5B/wrtHftjg4g5gtRVZTIBx NQslCG9sQxgHEGpPwcXmros8HurGxJL/Q4vPp0L8weNsd+0DuF3sOquHC0epS2sF7Ue8 6i9jEuIiV+1RVOCeMQAwU9Zjwj6WqVS3cedD6ohDnU8ML+m1JRn1PXOAmu1P5i7pqGR5 frCWYYvzK1KCq97JeEhS0VSfWQTK5f2T+xoYARzZYiIXItZ/EJeykwyvG484Z0MjZaU4 erjmaCe+7XGJP9FUUoYWnEl4lMl9/gWe3jtx0RIOgDlF6uJy6rB08jswwRCnLMFjJAtQ CQ== Original-Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com with ESMTP id 3fb0x2fxu8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Apr 2022 19:49:57 +0000 Original-Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 23CJfkSo009311; Tue, 12 Apr 2022 19:49:56 GMT Original-Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2175.outbound.protection.outlook.com [104.47.57.175]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3fb0k3dxm8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Apr 2022 19:49:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PSysdtBU1Dz3KSlfB24GpefHjxDpz0B+LWLexUbvj5lYbMcQvLqLrA2PdbP0j78ktf8UnEI3tfQ2H9r9qS+n59gbraWpprQYlIo/dYP6aD0YjLIeL3noHNNkouhxoep32voHk0rUOeWow+JC2gWW7lQUnzuRsSrmTRg0XEiakNxKyfKulO5U/JTMzsptbWj2dRHOEqIGQitXeGpUMntYQSyqwHukJvSFCOgB/sU1GHS7fMQcxamSzERRyvWNMwW2u2WQ4kDVVMmBidZiExKj+8Heok4donuPtsKw8p7VO7tfaG34sYCChyMFNTtwhdZsitwEoOeRBkwyH/9pYfcPPg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UQ8yK8YcqP9zFZgA21WgZuJPRP6qVv6GKFMv2Nn/Sks=; b=ZHlFjswuVVAPj8IVvLdeC4zNXvC5KlVEuwG0XwB1pLK000yYibykdbhlzXsmGD/CSzjNq4mZxQgzLKr6Zm60mLIl86Yoo4O35K/DvTfW0SByvZPM+ftoIpKC+7gaxhYPr2o2Gc4ITLVK33PMvlOQoyrXxn4pzhuaq+PLEM/FGG3A/DbbHE59VrW5fWH+rzgMt3lQApngEdX7hIybhHrfneAwfgK88X9rltS9CKQ9ICHNXOVNjCnNoPFnnHBlWGO8+T7XZokJbPGMuF6JZacXbd+1PgTcQQLbOVPfu/4+7svjK+XtN0gLgKH/vCkw7GNKHehoiS1AGPcJQSzlQDHD1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UQ8yK8YcqP9zFZgA21WgZuJPRP6qVv6GKFMv2Nn/Sks=; b=0K0bWCuYAXUbRoxXm+I5U56TslRF1a/5HvPsAa92NggHzj6W5PuSRLRboME8RfUQLFE0UctIYlzrC/r9Bf8gfeC4B0J9cYozXRjXjWUVPEbs01uKY+8u/fsKsuvY1U33zMBoyFCWTYCH1GU4Sn5TYBIQrLMYhMCkPlOID8Z4tok= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB2453.namprd10.prod.outlook.com (2603:10b6:a02:b0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Tue, 12 Apr 2022 19:49:52 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123%7]) with mapi id 15.20.5144.030; Tue, 12 Apr 2022 19:49:52 +0000 Thread-Topic: [External] : Re: Completions and history Thread-Index: AQHYTpgis2Gozx1JyUa8fk54IWClpqzsqCtw In-Reply-To: <86k0burxd4.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 916a4659-a872-4f7a-d3ae-08da1cbd9c82 x-ms-traffictypediagnostic: BYAPR10MB2453:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JvgEtulLMatdanmgm5H2rdDmDfZwqpvkszzkMnQy6Z8i6WNDrpeQDvzxTIBea+3Yw8n+pe00uOmo2J+TmLyMj7PS1fZIYkzifmzD4SZl421AyBI6z//oJVYsMZ7itDnjFCJ/kIp1e1d9Wez98cTNE+XocFjopcnFxdHO1GNuf+voUYI0nVckD1TQxBhZo+A0rGqrdV6vZARNb7WQYKQOwJNu4oycS3zKEBH2HJy0xqTq4vPdLJGFHPy+jnFvayqf0R4JP3z5bPJzbrRLn+51Atipa5EiWozbjhUtRxgU6GZl0/7/JTea5QRDdinKSERk2iXCThb+J1ana41PFZWf28Ebx9Vrh64XaWvGXAsKPJfM6mU+OMmdVvXGRsXPtGa2MelcOPJZwjttCW4LuG0bAuaAfrCr8C7uZI6I2SVcHvMU9gbrLXzhmGUmbxPZzKpWg/7fx23xQmr200R8noSj5+Vg41oybEcTNrbHmpbOvM6WXiyI3kLm46OLpKnRfxakCjHlFlpTnWVrHQ31sylmAgh4/UmKFqtnLYvgscRqjfewZvlA1FrqQg+ybIDiLENvxmLuD1GV8zGGOf5RTEA6LXFAAEKjuIg6ASwP1pOB4XNLIly3g5RT1FUzfjunUoIsPtx7Yes2/LokOH3LgILCcDWBpQPcPqv9je5fFtYg/GbI4QbLIEbxAzUzVDjCt4srjuafOTwcRiarTkrKWxXzDNMhkGrF4pZe/K6FpNsvre4QUO+CaN/t1QEBkKSKs Y3S8WepLPtC4uTep7pq6MfFqeUmD923zTWAUPlUjUfWaIM= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(2906002)(54906003)(44832011)(38100700002)(66556008)(66946007)(76116006)(966005)(316002)(86362001)(64756008)(66446008)(4326008)(52536014)(6916009)(8676002)(508600001)(122000001)(83380400001)(66476007)(5660300002)(8936002)(71200400001)(38070700005)(26005)(6506007)(186003)(7696005)(33656002)(55016003)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?pmhNTAX1UmzuZeZffG75hxPg69VcM4dBfx2eGwoijIssTE/+FTmaQ0bao0++?= =?us-ascii?Q?bPKr/Anq1du+UEuoHvL6dflmFhbts6LmSz9jpOU2kEHZtPSVhAsmQX5GfyVu?= =?us-ascii?Q?DjJ41GtRto3J91s4ulUQJkj5P5FgCBMzfvWbqyGX+MtUJ4R4+5+peD8JOgSU?= =?us-ascii?Q?7sw8PV1Vn5VP1aPw+iUCbGiF+Pwpg3Ck2Q9Khq0S2U86qBs81xY2FJ6UYbxR?= =?us-ascii?Q?KMBDx2nHhtcFN9d0ceqE6hiYZAxuYwnrueNgkYvNiQzerQLb0VG/OGdOHApU?= =?us-ascii?Q?3CCqI1zLXiU331+w7PtmMak+kxCJtJhFlH647Bz+RVyXjPikTlWrTkbhXMnm?= =?us-ascii?Q?RbNiUbRDV8QKxDow//0xK2nhGgGuAnt3zVEcKW6bUZFJsArCR+TluYcwJ+4h?= =?us-ascii?Q?a5Hqb7d50ncKxGqrByl38A20qbQwuSSMgesTFhagyuTWo/OqBHfLMIErqltP?= =?us-ascii?Q?WLxJIaARgJT4d1bxOFY4OC52UpCZIGhS1jPuXGCFt2ZfnyemGvpZkxO8ChpK?= =?us-ascii?Q?xb2yMyimcfl7w7J5EbxhdNdAe6Z12uJE0YjSwryZK6oBTWKGl0O8lrEbfre1?= =?us-ascii?Q?RYFsTMBJJPWqztXCW3prsptq5VVjXRhJHDaY+KoEMv2S7B2PcYbkBv1FxXI4?= =?us-ascii?Q?oA X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 916a4659-a872-4f7a-d3ae-08da1cbd9c82 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2022 19:49:52.6094 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2HaKdlvvPJbodyC6aYIOknV8qbYRikFc9JH4o4LC47llN/U9Jn0sSfs74qVc+XxO6OfnnCMzNIf5nF67GuxsAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2453 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-04-12_06:2022-04-11, 2022-04-12 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 mlxscore=0 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204120092 X-Proofpoint-ORIG-GUID: DuUn4zQmsxFWDtNsyhs_gDIrXKb1VKed X-Proofpoint-GUID: DuUn4zQmsxFWDtNsyhs_gDIrXKb1VKed Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:288339 Archived-At: > Does Icicles support history completion in eshell and comint? Yes, I believe so. Command `icicle-comint-search': Use `icicle-search' to pick up a previous input for reuse. Use this in a `comint-mode' buffer, such as *shell* or *inferior-lisp*. This searches your interactive history in the buffer for a match to your current input, which you can change dynamically. When you choose a previous input, it is copied to the current prompt, for reuse. If the region is active, then only it is searched; otherwise, the entire buffer is searched. ... https://www.emacswiki.org/emacs/Icicles_-_Other_Search_Commands#IciclesShel= l Command `icicle-comint-command': Retrieve a previously used command. Use this in a `comint-mode' buffer such as `*shell*' or `*inferior-lisp*'. Option `icicle-comint-dynamic-complete-replacements': A list of function replacements, for `icicle-comint-dynamic-complete' to replace the functions in `comint-dynamic-complete-functions'. You can use this to provide Icicles completion for various modes that inherit from Comint mode. By default, it treats Comint mode and Shell mode. And there's some support for completion at point in these contexts. But in general, Icicles is about minibuffer completion, not so much buffer-text completion. https://www.emacswiki.org/emacs/Icicles_-_Defining_Completion_for_Comint_Mo= des ___ Anyway, my post was about _minibuffer_ history. And about the history of text you've had in the minibuffer at some point, but that you never entered as input (chose with `RET', as opposed to acted on in some other way or edited with). The latter is important in the context of completion and cycling, as I explained earlier. AFAIK, only Icicles gives you access to such a history. (I'll be pleased to learn that other libraries also offer this now.)