From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62732: 29.0.60; uniquify-trailing-separator-p affects any buffer whose name matches a dir in CWD Date: Sun, 09 Jul 2023 23:38:49 -0400 Message-ID: References: <87h6tpn8d5.fsf@catern.com> <87edotn7sx.fsf@catern.com> <87edlhm6wq.fsf@catern.com> <87o7kklf9c.fsf@catern.com> <87zg44jx0h.fsf@catern.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20762"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 62732@debbugs.gnu.org To: sbaugh@catern.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 10 05:39:43 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 1qIhkU-0005FJ-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jul 2023 05:39:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIhjr-00088M-9i; Sun, 09 Jul 2023 23:39:03 -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 1qIhjq-000884-Dh for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 23:39:02 -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 1qIhjq-00084E-63 for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 23:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qIhjp-00065s-N1 for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 23:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jul 2023 03:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62732 X-GNU-PR-Package: emacs Original-Received: via spool by 62732-submit@debbugs.gnu.org id=B62732.168896034023416 (code B ref 62732); Mon, 10 Jul 2023 03:39:01 +0000 Original-Received: (at 62732) by debbugs.gnu.org; 10 Jul 2023 03:39:00 +0000 Original-Received: from localhost ([127.0.0.1]:47360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIhjn-00065c-W1 for submit@debbugs.gnu.org; Sun, 09 Jul 2023 23:39:00 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIhjk-00065F-JX for 62732@debbugs.gnu.org; Sun, 09 Jul 2023 23:38:59 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1C5131000BA; Sun, 9 Jul 2023 23:38:51 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 269C2100091; Sun, 9 Jul 2023 23:38:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1688960330; bh=YETh5Bg67S2BjmLaURc2P2UOtP/lsY0qN+xXDJy0kL0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Uj6DrwjJv7g/9+wLe+i/tp1PzX2lIgBEBB8Aoa5Qz7oEVqAi3caP0pUwpfqFuamrO OvV1uNCvZknLi8N479NruDobmugc/+KpxPeMbtOeYP8YzVv/+L9QRzvrcl5A47g1dA JEs7tvjJhFq8oxOJhd74cZ0+patC0850MJq/tf9B0WLNdGODSqMd6ve+oMb/8MEwdM 5gf2LBuWeoiTQnvBN+1LMDLlnoWLkLNUPufLdyIE1ntGIL3LFQ4fI+9fs8Cx/UEsJb HlqOeDxRjMHoDAx0YdqntKEXJ37JtdcPm3yfd7yPtxyE/nx7LuqA8KC49uijS9WBIc lCFCbbYlMj8Ig== Original-Received: from pastel (unknown [24.140.234.50]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F33261200FC; Sun, 9 Jul 2023 23:38:49 -0400 (EDT) In-Reply-To: <87zg44jx0h.fsf@catern.com> (sbaugh@catern.com's message of "Mon, 10 Jul 2023 02:55:27 +0000 (UTC)") 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:264871 Archived-At: >> and since we know (directory-name-p filename), I'd be tempted to replace >> (file-name-as-directory lastname) with just `filename`. > > (file-name-as-directory lastname) and filename are different though: the > former is only the last component of filename, but as a directory name. Duh! You're right. > I agree that would be good (modulo that it does need to be > (file-name-as-directory lastname) rather than filename), but it would > change the existing behavior and not comply with the docstring of > `uniquify-trailing-separator-p'. (I think it would be a reasonable > change though, but probably as a subsequent change) Good point. Stefan