From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Rouleau Newsgroups: gmane.emacs.help Subject: Re: Teach completion to insert a common prefix Date: Wed, 9 Aug 2023 00:09:59 -0400 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="24796"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Spencer Baugh , help-gnu-emacs@gnu.org To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 09 06:10:53 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 1qTaX4-0006GX-7x for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Aug 2023 06:10:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTaWV-0004Ol-7N; Wed, 09 Aug 2023 00:10:15 -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 1qTaWT-0004OM-9V for help-gnu-emacs@gnu.org; Wed, 09 Aug 2023 00:10:13 -0400 Original-Received: from mail-vk1-xa2f.google.com ([2607:f8b0:4864:20::a2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTaWR-0007L2-GD for help-gnu-emacs@gnu.org; Wed, 09 Aug 2023 00:10:12 -0400 Original-Received: by mail-vk1-xa2f.google.com with SMTP id 71dfb90a1353d-48716a85f16so1985295e0c.3 for ; Tue, 08 Aug 2023 21:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691554210; x=1692159010; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QrpEPcQ++yDMmCFTWHTWnTDa/KrW5yjuyHJF4zMc2RQ=; b=Prx0zvxOOtIBCXJWItobt8QsflihUGV9gTxA/JnNcwNPRsqqkVajAK8vngJykBu8ES 3kFQHefegXrPM1/M8mVD/1wzJUkb53w2bkB58CJsZlrFxlTPXSpcSgSEeUUu2J3lldYA E8/xbvx0Ht70dLzqJVYwXXbqdy5hTyWf1jxJ8+I6WDYNp6Kmdd1d/nmTInok4HF3GlUV 6lRLwnq2vq3/ieTkRVjYRuRpFnTaROnv63LKuTit1UD1oOX6iI1Au/JMk+5Q1RRGwY1S 3wiOG3ZXjzB9dxeiluvSrAe2Fg38xNUhHEvbOmDw9SBulSrCV/tP8Fq25rtO8m14JIGM yFWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691554210; x=1692159010; 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=QrpEPcQ++yDMmCFTWHTWnTDa/KrW5yjuyHJF4zMc2RQ=; b=dc3gTl9efuVtrsbZY6Of6YqXlaxa2Lr1RwoN6Yn6gGR3XvwdJL/UyYOdVvWKbeSECH Wwx5/F5Phf5PkVXhUCfv0XpmFe+05oFJDduc+UJ0PI/7yyp8ylig55xT3qoP1YO5PR0V qZmYAhZ5IGjfFHL/xwXdxnxfLAm57dD3kyKVh2b7Y/QbNkOS+UFUNDeAL7P1c4tq4ZR2 Bxb1ZEUkxAH6FVZQrR9BTa7PsyDzMrBVIWv0aWDAgRFbH7KlOhrA5zznbbQ6fLdeOCEW d7rShO+3Imh63sOrnv47kc1Xs9MFx567U8L+NEb9v8yc/bKltp7Jb7WW1TdFP2u/oZkN dWoQ== X-Gm-Message-State: AOJu0YwinkC26gIyhQmbSBv2kiDoCn/ldy7WV4owjGK+UIw14lg3GpZN NFfG2S2FiKM6WEQGVXHtlSuK+i/zNBvLWbhG2dn8IWaZ X-Google-Smtp-Source: AGHT+IEdssvYPmgw0NxN15I5MrKNWxKaiD249eX7Jj+k9SLV48zhvR1waPGkClPpRTlw04GMAhmJB7ZfDy2ibICQ9Ns= X-Received: by 2002:a67:f783:0:b0:444:e9a0:13f7 with SMTP id j3-20020a67f783000000b00444e9a013f7mr1530591vso.5.1691554209971; Tue, 08 Aug 2023 21:10:09 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a2f; envelope-from=prouleau001@gmail.com; helo=mail-vk1-xa2f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:144709 Archived-At: > 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. > > Note that older versions of Emacs was also doing that even when point was at the end of the line, as in Emacs 26.3 Do you know when that changed and why? -- /Pierre