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 #59 received at 62732 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: sbaugh <at> catern.com
Cc: Eli Zaretskii <eliz <at> gnu.org>, 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: Sun, 09 Jul 2023 23:38:49 -0400
>> 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





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.