From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62700: 29.0.60; minibuffer-{previous,next,choose}-completion behave unintuitively when point is not at end of buffer Date: Thu, 06 Apr 2023 22:30:55 +0300 Message-ID: <83jzyoq040.fsf@gnu.org> References: <83r0swq39p.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12189"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62700@debbugs.gnu.org, juri@linkov.net To: Spencer Baugh , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 06 21:31:49 2023 Return-path: Envelope-to: geb-bug-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 1pkVKn-0002wm-G7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Apr 2023 21:31:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkVKF-0000dR-EX; Thu, 06 Apr 2023 15:31: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 1pkVK3-00007k-M8 for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 15:31:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkVK1-0002RD-Sw for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 15:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkVK1-0007Yx-Ne for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 15:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2023 19:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62700 X-GNU-PR-Package: emacs Original-Received: via spool by 62700-submit@debbugs.gnu.org id=B62700.168080943729036 (code B ref 62700); Thu, 06 Apr 2023 19:31:01 +0000 Original-Received: (at 62700) by debbugs.gnu.org; 6 Apr 2023 19:30:37 +0000 Original-Received: from localhost ([127.0.0.1]:55184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkVJc-0007YF-Ka for submit@debbugs.gnu.org; Thu, 06 Apr 2023 15:30:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkVJX-0007Xz-RK for 62700@debbugs.gnu.org; Thu, 06 Apr 2023 15:30:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkVJS-0002F5-20; Thu, 06 Apr 2023 15:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NqwcnP0gWs0EU5xTVeFExiZvSQM6g3o5I1EtzLtq4Cc=; b=SUD0dKBskuTz kOlAJ5RsnnsQkr/v9ZAzcQCJaovl7dd4J2XQyey4A63WTK7tY8MEYVRzI/eKFA6T4l4qrOhv6Jfv8 ycNizGTnR67ZRg5rk/xpqJBDKrHiI859H00dNDQWCWn1eK2JabPqPQOTUCHcRLGtv1ZPXCgWFi5bF gkvEJt5boBEjytWCgYTtiP0f5CBi1t430PjM+TOQZFLUaZ/oxgctqLCUO4OSJBI9c8HUzYCyasccL FCiBVNeJErBiDiHOCk62PgSBcRk6NvNY3zxlVOoASugcLEc0A4BlArSSywUO4Aay67vO2zf5iIUjD pIVOMYVHpvANTgxpuq+paA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkVJR-0005Js-Ig; Thu, 06 Apr 2023 15:30:25 -0400 In-Reply-To: (message from Spencer Baugh on Thu, 06 Apr 2023 14:58:42 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259352 Archived-At: > From: Spencer Baugh > Cc: 62700@debbugs.gnu.org, juri@linkov.net > Date: Thu, 06 Apr 2023 14:58:42 -0400 > > Eli Zaretskii writes: > > >> I think this is basically just a bug. > > > > I think it's the intended behavior. In this case, it looks not > > useful, because the string you typed before starting to use M- and > > M- happens to be at the end of each completion candidate. But > > this is not the only situation possible. Basically, completion always > > modifies only the text before point, leaving what's after point > > intact, so that the user could have after point stuff that completion > > should ignore, and that eventually will be appended to the selected > > candidate. > > Could you give an example of when this would be desirable? When completing on shell commands, for example: the text after point is usually the command-line arguments to the command, and the completion is on command names or on some file name. > >> If this is intentional for some reason, I think the behavior should > >> definitely be changed before Emacs 29 is released. Moving point around > >> in the minibuffer while completing is an important part of using the > >> default completion-styles > > > > It is? why? > > "basic" and "emacs22" are default completion-styles, and they both treat > text after point differently from text before point. This is intentional, AFAIK. > For example, suppose I wanted to wanted to complete filenames starting > with x and ending in .c. I don't think the default completion supports such functionality, at least not with the styles we have by default in completion-styles. But maybe I'm missing something; adding Stefan to the discussion.