GNU bug report logs - #62732
29.0.60; uniquify-trailing-separator-p affects any buffer whose name matches a dir in CWD

Previous Next

Package: emacs;

Reported by: sbaugh <at> catern.com

Date: Sun, 9 Apr 2023 01:38:02 UTC

Severity: normal

Found in version 29.0.60

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #95 received at 62732 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: sbaugh <at> catern.com, monnier <at> iro.umontreal.ca, 62732 <at> debbugs.gnu.org
Subject: Re: bug#62732: 29.0.60; uniquify-trailing-separator-p affects any
 buffer whose name matches a dir in CWD
Date: Tue, 11 Jul 2023 18:31:07 +0300
> From: Spencer Baugh <sbaugh <at> janestreet.com>
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>,  sbaugh <at> catern.com,
>    62732 <at> debbugs.gnu.org
> Date: Tue, 11 Jul 2023 08:31:51 -0400
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> > My comments assumed that indeed we will (almost) always want to tell
> > create-file-buffer this is a directory.
> 
> One contribution, not intended to be exhaustive of all use cases, and
> not intended to be definitively a good idea: a user could want opened
> tar files with their file listing view to have a trailing slash, even
> though they aren't actually directories.

But users don't call create-file-buffer, do they?  So this is not
user-level option, at least not directly so.

> And with my approach that is possibly just by running
> file-name-as-directory over the name before passing it to
> create-file-buffer.

If you worry about users, they can be told to append a slash by hand,
when they mean a directory and that directory does not yet exist.  We
do this elsewhere in Emacs.




This bug report was last modified 1 year and 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.