bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62732: 29.0.60; uniquify-trailing-separator-p affects any buffer who


From: Stefan Monnier
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
User-agent: Gnus/5.13 (Gnus v5.13)

>> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]