From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Teach completion to insert a common prefix Date: Tue, 8 Aug 2023 13:19:19 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14298"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Spencer Baugh Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 08 08:20:17 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qTG4l-0003VK-RK for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Aug 2023 08:20:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTG4F-0003Jb-J3; Tue, 08 Aug 2023 02:19:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTG46-0003I2-23 for help-gnu-emacs@gnu.org; Tue, 08 Aug 2023 02:19:36 -0400 Original-Received: from mail-vk1-xa2e.google.com ([2607:f8b0:4864:20::a2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTG44-0004oM-CA for help-gnu-emacs@gnu.org; Tue, 08 Aug 2023 02:19:33 -0400 Original-Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-487179c285fso1782337e0c.1 for ; Mon, 07 Aug 2023 23:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691475571; x=1692080371; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V45coYQj7y1+5Bl5RBfYjyh1Ib/xW1iH4YuGAs0Sslw=; b=Y6Izp+iB5UNR8oCZbUQ3OabtTAzGR8fP7/XoRHQjyb2Fij1aEjKj6dDOhZ5B0UBGEW UqDB6R1mB/Q5VT/zrVo1MZP1v0VD+rvPOdzS59O2IXgMmwHYjmM/HnGXvexkOQFty1TX 0Isj8wczggBxgmQtsb9Zeupl0BFatUQah3WhfsxwKY7HiBbA28wLEmsiABeLChum2qI0 wJhGpUaCIV2ra+0+B8joke5oEjJA4oXUd5zEno+0nlj+XNYgITrWF6TW06UrULr/hgpy 08+vomJBnB3xBVV5RSZD3x2d9C+DSHTR+nnfA/xjYt32vQ8AafVfpLJQSodfuRmZzqhC dCWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691475571; x=1692080371; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V45coYQj7y1+5Bl5RBfYjyh1Ib/xW1iH4YuGAs0Sslw=; b=gXLmg4jMsngE4b0VdLcVTKWFtlwSK1swEejSfF+r7MlHqFA97AdQjsznFJYkX5lmZ1 7UoPP/CHRe/p3u/QAvlLAZikJOD98HLWYWONQsd9Cxxh8hwprFrWmI9lubq5m70TBoBG AhTCoo3IzT1OlDaocOAXUXsi0e2OxCR4VIj/AT1dz1EeR1KE0Figc7E8wTlg8F10fBAE 9jkC78qSGf+CB1w8IbWdwA39MOBiL6zsq/E1B8+knxWO6SOkvCih8GEitHmaNeM1bUd8 +y7nVo4XeGiT97bfqJeoGWwKkDGaJYdKz3G0MMi7NBJ8Z1TalIDErXW82vbTvivusiyr GZsg== X-Gm-Message-State: AOJu0YwkqdTgaSW+OPaCqTSlXSj1Gl0zaGFbdOxWrhebhUz/PpwUW4ho VQMRSPFxzSj/Z9hLELOyBQzh1J5Sl5rfSWeVr8yB6IF5 X-Google-Smtp-Source: AGHT+IGOcAX/zZtZuZbHCwhwztG5eVDQNqz/MhFMwUXW91VAeCKQiwiMUyaIV4tkWjP3UrwL2hIMRKgi2ppGliky2oY= X-Received: by 2002:a1f:4806:0:b0:487:1926:5aab with SMTP id v6-20020a1f4806000000b0048719265aabmr5394084vka.15.1691475570697; Mon, 07 Aug 2023 23:19:30 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a2e; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa2e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144677 Archived-At: On Tue, 8 Aug 2023 at 03:39, Spencer Baugh wrote: > Example in emacs -Q: > > C-h v -matching-lines- TAB > > All possible completions for -matching-lines- start with > list-matching-lines-. So there would be no harm in inserting "list" at > the start of the completion input. But Emacs does not do this. It does do that if you put the point at the start of line.