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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: sbaugh <at> catern.com
Cc: sbaugh <at> janestreet.com, monnier <at> iro.umontreal.ca, 62732 <at> debbugs.gnu.org
Subject: bug#62732: 29.0.60; uniquify-trailing-separator-p affects any buffer whose name matches a dir in CWD
Date: Thu, 13 Jul 2023 19:02:01 +0300
> From: sbaugh <at> catern.com
> Date: Thu, 13 Jul 2023 15:52:54 +0000 (UTC)
> Cc: monnier <at> iro.umontreal.ca, sbaugh <at> janestreet.com, 62732 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > So how about compromising on a variant of (2): we add an optional
> > DIRECTORY-P argument, and if FILENAME doesn't end in a slash, but
> > DIRECTORY-P is non-nil, create-file-buffer will append a slash?
> 
> Okay, so like this?

Looks like you sent an incorrect patch or something?

> BTW, would you be okay with moving uniquify-trailing-separator-p into
> dired, as I described in my other recent email?  Then create-file-buffer
> wouldn't need to check it, which would simplify its docstring slightly;
> instead dired would just decide whether to pass a directory name or file
> name based on uniquify-trailing-separator-p.  Since I'm changing this
> area anyway, now would be the time to make that change, as a nice
> cleanup which Stefan also likes.

I don't quite understand how can uniquify-trailing-separator-p be in
dired.el when the code which supports it is in uniquify.el.  What am I
missing?




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.