From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#41424: bug#41412: 27.0.90; Value of default directory in completions buffer Date: Sat, 23 Jan 2021 17:00:00 -0500 Message-ID: References: <87pnay7azg.fsf@penguin> <87k0s4wwbl.fsf@gnus.org> <87a6szv6c0.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22110"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Omar =?UTF-8?Q?Antol=C3=ADn?= Camarena , 41424@debbugs.gnu.org, 41412@debbugs.gnu.org, Stefan Kangas To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 23 23:01:20 2021 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 1l3Qy8-0005ft-FI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jan 2021 23:01:20 +0100 Original-Received: from localhost ([::1]:56048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3Qy7-0000Qy-Di for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jan 2021 17:01:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3Qxq-0000Qq-Q4 for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2021 17:01:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52181) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3Qxq-0005le-J7 for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2021 17:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l3Qxq-0003Yt-Hu for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2021 17:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jan 2021 22:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41424 X-GNU-PR-Package: emacs Original-Received: via spool by 41424-submit@debbugs.gnu.org id=B41424.161143921010604 (code B ref 41424); Sat, 23 Jan 2021 22:01:02 +0000 Original-Received: (at 41424) by debbugs.gnu.org; 23 Jan 2021 22:00:10 +0000 Original-Received: from localhost ([127.0.0.1]:35493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3Qwz-0002kY-OC for submit@debbugs.gnu.org; Sat, 23 Jan 2021 17:00:10 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3Qwy-0002as-3J; Sat, 23 Jan 2021 17:00:08 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 67429441010; Sat, 23 Jan 2021 17:00:02 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3CFDC441002; Sat, 23 Jan 2021 17:00:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1611439201; bh=3hnSgSdw95e16odUQSG1IJwFrNt0fZWfF5CGoPMKuWs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gQUbXBP4htzZDluoK57tu9h8N8NuVzvV3E4IEEPISLDNSuIfPkwUybG3LG4dK3QNk B9oIw+cTKcmLHRLlaLdwEf09GPFYD3WzGB1RtSQK3dkBgs1Yk5V+N1Oy1VDtr6WT5Z uWX1YURwurGZ0bi4aZFd+VXW5/jgh68jdeKGNBrQr+cnB4ppdg31XfnNtcpzI+Xg7G qdM02LH4cAkVDcO7L1NXHuRSagoX4KBC9wwLQ7eHbYG1N3agezqOBFVBsScbm/hA1i ket/prXsu3ETj1mzqCt+7+TSz1II59xLZSNsr8iV8f+t0MuJQoDmCKLqlOXrtS3ehz 6GtlpHHp4jTLg== Original-Received: from alfajor (65-110-220-188.cpe.pppoe.ca [65.110.220.188]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EE0081204FE; Sat, 23 Jan 2021 17:00:00 -0500 (EST) In-Reply-To: <87a6szv6c0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 23 Jan 2021 19:47:11 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:198473 Archived-At: > Aha. But then what would the correct fix now? I haven't tried the > proposed change (i.e., just change to `file-name-directory'), but it > sounds logical to me. That is, if the user has typed "~/foo/bar/zo" > then use "~/foo/bar" as the default directory. I think the correct thing to do is to look at the `(cdr (last completions))` where `completions` is what `completion-all-completions` returned. That gives what used to be called `completion-base-size`. Stefan